Title: Parse error when trying to install
Last modified: August 31, 2016

---

# Parse error when trying to install

 *  Resolved [zelda013](https://wordpress.org/support/users/zelda013/)
 * (@zelda013)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/)
 * I’m trying to install wordpress on a new site. I first attempted to install manually,
   since I didn’t succeed I tried the automatic install proposed by my hosting service(
   online.net), but I still get the same problem, whenever I try to access the admin
   console via [http://lesbeauxebooks.com/wp-admin/](http://lesbeauxebooks.com/wp-admin/)
   i get a 500 error or else this message :
 * Parse error: syntax error, unexpected T_OBJECT_OPERATOR in index.php on line 
   103
 * I’ve tried deleting all the files and re-uploading them, both manually and via
   the installer, but I can’t get it to work, and I’ve checked the logs but there
   is no mention of error in them.
 * Please help, I’ve been going around in circles for 2 days now and I’m going crazy.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163615)
 * Internal server errors are usually described in more detail in the server error
   log. If you have access to your server error log, generate the error again, note
   the date and time, then immediately check your server error log for any errors
   that occurred during that time period. If you don’t have access to your server
   error log, ask your hosting provider to look for you.
 *  Thread Starter [zelda013](https://wordpress.org/support/users/zelda013/)
 * (@zelda013)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163668)
 * I have access to logs but there is no mention of errors in them. Below is the
   log for today.
 * The error I just got is not the basic 500 server error, the /wp-admin page sent
   me to this url :
    [http://lesbeauxebooks.com/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F](http://lesbeauxebooks.com/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F)
 * and i got this error :
 * **Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or
   T_FUNCTION or T_VAR or ‘}’ in entry.php on line 61**
 * No login was displayed or any legitimate page content at all so far.
 * Log : access.log obtained via ftp
 * >  [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80) 82.67.199.250––[
   > 11/Mar/2016:00:08:21 +0100] “GET /wp/wp-admin/install.php HTTP/1.0” 200 440“-”“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36”
   >  [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:00:08:27 +0100] “GET /wp/wp-admin/install.php
   > HTTP/1.0” 200 440 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36(
   > KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:01:02:01 +0100] “GET / HTTP/1.0” 200 723 “-”“
   > Mozilla/5.0 (Linux; U; Android 4.1.2; fr-fr; GT-I9100 Build/JZO54K) AppleWebKit/
   > 534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 151.80.31.125 – – [11/Mar/2016:06:30:59 +0100] “GET /robots.txt HTTP/1.0” 404
   > 474 “-” “Mozilla/5.0 (compatible; AhrefsBot/5.0; +http://ahrefs.com/robot/)”
   > lesbeauxebooks.com:80 45.79.89.188 – – [11/Mar/2016:09:21:41 +0100] “HEAD /
   > HTTP/1.0” 200 299 “[http://uptime.com/lesbeauxebooks.com&#8221](http://uptime.com/lesbeauxebooks.com&#8221);“
   > Mozilla/5.0 (compatible; Uptimebot/1.0; +http://www.uptime.com/uptimebot)” 
   > lesbeauxebooks.com:80 37.187.159.92 – – [11/Mar/2016:12:18:56 +0100] “GET /
   > wp-login.php HTTP/1.0” 404 472 “-” “Mozilla/5.0 (Windows NT 6.0) AppleWebKit/
   > 537.1 (KHTML, like Gecko) Chrome/23.0.1271.6 Safari/537.11” lesbeauxebooks.
   > com:80 37.187.159.92 – – [11/Mar/2016:12:18:56 +0100] “GET /administrator/ 
   > HTTP/1.0” 404 474 “-” “Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.1 (KHTML,
   > like Gecko) Chrome/23.0.1271.6 Safari/537.11” lesbeauxebooks.com:80 37.187.159.92––[
   > 11/Mar/2016:12:18:56 +0100] “GET /admin.php HTTP/1.0” 404 469 “-” “Mozilla/
   > 5.0 (Windows NT 6.0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/23.0.1271.6
   > Safari/537.11” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:14:52:29 +0100] “GET /wp/ HTTP/1.0” 302 356 “-”“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:14:52:30 +0100] “GET /wp/wp-admin/install.php
   > HTTP/1.0” 200 440 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36(
   > KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:14:52:30 +0100] “GET /favicon.ico HTTP/1.0” 
   > 404 475 “[http://www.lesbeauxebooks.com/wp/wp-admin/install.php&#8221](http://www.lesbeauxebooks.com/wp/wp-admin/install.php&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:14:53:09 +0100] “GET /wp/wp-admin/install.php
   > HTTP/1.0” 200 440 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36(
   > KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:14:53:09 +0100] “GET /favicon.ico HTTP/1.0” 
   > 404 475 “[http://www.lesbeauxebooks.com/wp/wp-admin/install.php&#8221](http://www.lesbeauxebooks.com/wp/wp-admin/install.php&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:35:50 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:35:51
   > +0100] “GET /favicon.ico HTTP/1.0” 200 366 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:15:37:24 +0100] “GET / HTTP/1.0” 200 723 “-”“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” [http://www.lesbeauxebooks.com:80](http://www.lesbeauxebooks.com:80)
   > 82.67.199.250 – – [11/Mar/2016:15:37:24 +0100] “GET /css/styles.css HTTP/1.0”
   > 200 1125 “[http://www.lesbeauxebooks.com/&#8221](http://www.lesbeauxebooks.com/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:37:31 +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:37:34 +0100] “GET /wp-admin/ HTTP/1.0” 200 340 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:37:34
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:38:16 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:38:17
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:38:18 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:38:18
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:38:20 +0100] “GET /wp-admin/ HTTP/1.0” 200 340 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:38:20
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:38:29 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:38:29
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:45:30 +0100] “GET /wp-admin/ HTTP/1.0” 200 340 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:45:30
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:15:45:34 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:15:45:34
   > +0100] “GET /favicon.ico HTTP/1.0” 500 815 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – –[
   > 11/Mar/2016:16:00:03 +0100] “GET /wp-admin/ HTTP/1.0” 500 815 “-” “Mozilla/
   > 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116
   > Safari/537.36” lesbeauxebooks.com:80 82.67.199.250 – – [11/Mar/2016:16:00:03
   > +0100] “GET /favicon.ico HTTP/1.0” 200 366 “[http://lesbeauxebooks.com/wp-admin/&#8221](http://lesbeauxebooks.com/wp-admin/&#8221);“
   > Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
   > Chrome/48.0.2564.116 Safari/537.36”
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163679)
 * try **MANUALLY** updating. Download a fresh copy of the WordPress .zip file to
   your computer, unzip it, and use that to copy up all files and folders **EXCEPT
   the wp-config.php file and the /wp-content/ directory.** You may need to delete
   the old wp-admin and wp-includes folders and files on your server before uploading
   the new ones. Read the Manual Update directions first.
    – **Backup: If you haven’t
   already done, always backup everything (including your database) before doing
   any actions, just in case something really goes wrong.**
 *  Thread Starter [zelda013](https://wordpress.org/support/users/zelda013/)
 * (@zelda013)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163682)
 * Thanks for all your help Tara. I did also try manually updating everything but
   the wp-config file, it didn’t help, but now i know why:
 * I contacted the support of my hosting company and discovered that although my
   console displayed “php 7” i was actually on a server using an old version of 
   php which is not compatible with wordpress. They moved my site to a different
   server and everything works fine now.
 * Lesson learned: call the hosting company first.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163686)
 * Glad to know it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Parse error when trying to install’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/parse-error-when-trying-to-install-1/#post-7163686)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
