Error installing WordPress: 'Parse error: syntax error ...'

Web hosting discussion, programming, and shared and dedicated servers.
1 post Page 1 of 1
by Sean » Mon Jul 20, 2015 12:21 am
I established a domain hosted by Sonic.net, selected the Value Hosting option, created a MySQL database, downloaded the latest WordPress version (4.2.2) tar.gz file, expanded it into a subdirectory (wp/) under the root directory of the Value Hosting installation , updated the wp-config.php to reflect the MySQL database info, then attempted to access the WordPress URL (http://www.example.com/wp/) to cause WordPress to go into its installation function.

Instead I ran into an error:

The full text of the error is:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/www/WWW_pages/smbutler/nokensingtonrecall.org/wp/wp-includes/locale.php on line 21

Solution: you have to have PHP version 5.2.4 or greater running (recommended: PHP 5.4 or greater) to execute the 4.2.2 version of WordPress. By default the PHP version you get with Value hosting from Sonic.net is currently 4.4.7

This can be fixed as described here:
https://wiki.sonic.net/wiki/Php5

I can't be the first one to run into this. You are welcome, all of you who discover this post.

-Sean
1 post Page 1 of 1

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 2877 on Wed Sep 25, 2024 9:53 pm

Users browsing this forum: No registered users and 5 guests