PHP update needed

Web hosting discussion, programming, and shared and dedicated servers.
59 posts Page 1 of 6
by bnoble@sonic.net » Tue May 07, 2019 3:23 pm
Hi,
I need to update my php to 5.6 since 7.3 isn't available yet on Http://bobseyes.net .
I was going to try to do it but there's a note from Drew.Philips at the top of .htaccess that I don't understand so could someone at Sonic.net have a look and take care of it.
Thanks,
Bob
by drew.phillips » Tue May 07, 2019 4:44 pm
Hi Bob!

I made the changes so your site is now using PHP 5.6. The "cgi wrap" configuration that dictates the PHP version in your case is not accessible from FTP or shell.

Let me know if you spot anything strange as a result of the change.
Drew Phillips
Programmer / System Operations, Sonic.net
by soldata » Tue May 14, 2019 10:04 am
Hi Drew:

I have a somewhat similar problem.

I updated the php version on my client's website soldata.com to 5.6.34, screenshot attached of phpinfo.php.

I also used a debug plugin, screenshot also attached. It shows php version 5.3.29

Trying to update to WordPress 5.2, but it says that my php version of 5.3 is insufficient.

Thoughts? Thanks for your help!

Regards, Ned

Attachments

by drew.phillips » Tue May 14, 2019 11:07 am
soldata wrote:Hi Drew:

I have a somewhat similar problem.

I updated the php version on my client's website soldata.com to 5.6.34, screenshot attached of phpinfo.php.

I also used a debug plugin, screenshot also attached. It shows php version 5.3.29

Trying to update to WordPress 5.2, but it says that my php version of 5.3 is insufficient.

Thoughts? Thanks for your help!

Regards, Ned
Hi Ned,

Thanks for the details and screenshots. The .htaccess file in your site's root directory has the correct "Action" directive to switch to PHP 5.6, but there is also a .htaccess file in the /wordpress/ directory which is still using 5.3 and is taking precedence over the one in the root.

I would suggest leaving the .htaccess in the root as-is, so PHP files there or in other subdirectories without .htaccess files use 5.6. Once /wordpress/.htaccess is updated to use 5.6 as well, Wordpress itself will see the updated version and you should be able to upgrade WordPress to 5.2.
Drew Phillips
Programmer / System Operations, Sonic.net
by soldata » Tue May 14, 2019 12:11 pm
Thanks Drew -- that did the trick!

Regards, Ned
by zoka » Tue May 28, 2019 2:12 pm
I also need a PHP upgrade so that I can update my WordPress installation:

"You cannot update because WordPress 5.2.1 requires PHP version 5.6.20 or higher. You are running version 5.3.29."

Please advise.

Thanks.
MZ
by zoka » Tue May 28, 2019 3:11 pm
zoka wrote:I also need a PHP upgrade so that I can update my WordPress installation:

"You cannot update because WordPress 5.2.1 requires PHP version 5.6.20 or higher. You are running version 5.3.29."

Please advise.

Thanks.
MZ
Okay, I added the .htaccess file for PHP 5.6 to the top level of my WordPress directory ("/home/WWW_pages/username/example.com") per this article:

https://help.sonic.com/hc/en-us/article ... 69193-PHP5

But now when I go to my site I get a database error:

"Error establishing a database connection"

i don't have access to any other directories on the server, so I think this is all I can do on my own for now.
by drew.phillips » Tue May 28, 2019 4:08 pm
zoka wrote:
zoka wrote:I also need a PHP upgrade so that I can update my WordPress installation:

"You cannot update because WordPress 5.2.1 requires PHP version 5.6.20 or higher. You are running version 5.3.29."

Please advise.

Thanks.
MZ
Okay, I added the .htaccess file for PHP 5.6 to the top level of my WordPress directory ("/home/WWW_pages/username/example.com") per this article:

https://help.sonic.com/hc/en-us/article ... 69193-PHP5

But now when I go to my site I get a database error:

"Error establishing a database connection"

i don't have access to any other directories on the server, so I think this is all I can do on my own for now.
Hi MZ,

In this case, the MySQL password hash for your account needed to be updated to work with the newer PHP version. This Wordpress install must have been created quite a while ago since it was using MySQL's "old_password" format.

I've gone ahead and fixed the hash so your site should now be working properly. Let me know if it's still having trouble connecting.

Other than that, the article you found referenced the right information and the steps were followed perfectly.

Drew
Drew Phillips
Programmer / System Operations, Sonic.net
by zoka » Tue May 28, 2019 5:04 pm
Thanks, Drew! This did take care of the PHP upgrade issue. The new version of PHP also took care of the problem I was having activating the Wordfence plugin.

MZ
by maureenj » Thu Jun 06, 2019 10:11 am
I need to upgrade my PHP to PHP 7.2 or newer, but at the minimum I need to update to PHP 5.6.
I can't update my Wordpress site, which I have hosted with Sonic for years, until PHP is updated.
I just called customer support, and the guy I spoke to there refused to help me and sent me to forums. I see on the forums that Drew has helped several other people with this, and I hope he will please help me too. I freelance, and not updating my website now is becoming expensive.
I do not see a way to do it myself.
toughprose.com, and a redirect from prosehaven.com
Thanks very very much.
Maureen
59 posts Page 1 of 6

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 7 guests