Hi Maureen,maureenj wrote: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
I made the change to your .htaccess file in your toughprose.com hosting directory, but also ran into the "Error establishing database connection" error briefly due to the old password format mentioned in the previous post.
I fixed that and the site is running on PHP 5.6 now. We don't yet have PHP 7 without a "Custom Hosting" container ($38/mo), but Scott is working diligently on an upgrade to our general hosting cluster (no ETA yet).
Let me know if you run into any issues with the upgrade or have questions.
----
I'll add this here for reference in case people find it later. Fixing the password is possible if you have Sonic shell access.
To do so, edit the wp-config.php file to get your current database credentials. It may look like this:
Code: Select all
define('DB_NAME', 'username_oc_1'); // The name of the database
define('DB_USER', 'username_oc_1'); // Your MySQL username
define('DB_PASSWORD', '76f7c035e51e65479b19838160331b1b'); // ...and password
define('DB_HOST', 'b.custsql.sonic.net');
Run:
Code: Select all
mysql -u username_oc_1 -h b.custsql.sonic.net -p
Run:
Code: Select all
set password for 'username_oc_1'@'%' = PASSWORD('76f7c035e51e65479b19838160331b1b');
After performing this step, PHP can be updated to 5.6 by changing the .htaccess file.