Configuring WordPress to work with php 7

1. Be sure to first configure your account to run php 7

2. Check your etc/php.ini and database password encryption method - this may need changed if you are running php7 for the first time!

3. Make changes (if needed) to wp-config.php

A change is often needed to your wp-config.php file. On phpwebhosting hosting servers, you should set the line:

define('DB_HOST', 'localhost');

to :

define('DB_HOST', 'localhost:3306');

or

define('DB_HOST', '127.0.0.1:3306');

(add ":3306" to the end of localhost). Depending upon how you initially configured WordPress, this may not be needed.

On some other hosts (in case you have found this guide via a search), you may need to change localhost to "127.0.0.1" or "127.0.0.1:3306"

Save the changes to wp-config.php and upload to your account.

Still not working?

If WordPress still is not loading, perform the php 7 hosting upgrade test and confirm php 7 itself is working.

Still need help? Enter a support ticket in your control panel - we are always here to help!