Bluehost and PHP 7

Set PHP Version Per Domain in Bluehost

Now Bluehost provides a free SSL certificate on all WordPress downloads and configure the account to PHP 7.

For recently registered accounts, you can choose to use PHP 7.0 or PHP 7.1. For example, in Bluehost VPS, it's possible to choose your preferred PHP version by accessing WHM under "MultiPHP Manager."

Set PHP version per domain in Bluehost

To access WHM, you need to set the password for the root user in cpanel.

How to migrate EasyApache 3 to EasyApache 4 to enable PHP 7

If you have an existing Bluehost account and cannot choose PHP 7, you might need to migrate your EasyApache to version 4.

You can migrate EasyApache 3 to EasyApache 4 as follows:

1) First step is to ssh in - you can do this many ways
I would suggest logging into your hosting company:
Hosting > Performance > system console
Username: root
Password : [Set as you wish]

~ Do note this does not allow you to copy paste

2) Run the following command:

/scripts/migrate_ea3_to_ea4 --run

3) This prompt will come up:

Info [migrate_ea3_to_ea4] There is no default PHP set sobased on the ea3 profileit is being set to 5.6
Info [migrate_ea3_to_ea4] Configuring ea-php56 to use ea3a€?s SAPI setting: suphp
a?  As of cPanel & WHM version 58EasyApache 4 is stable and ready for production. For more informationread our EasyApache 4 documentation (go.cpanel.net/EA4).
By continuingyou agree that you understand the following information:
- While the system runs the migration scriptsome of cPanel & WHMa€?s features may not operate.
- Wait for the system to complete the script before you attempt any other actions on your server.
- If you revert to EasyApache3the system automatically rebuilds PHP. This may take 15 - 30 minutes or longer to complete.
- You are currently running PHP v5.6. Converting to EA4 will attempt to set your default PHP version to v5.6. Use the MultiPHP Manager in WHM to change this after the conversion.
- Do you wish to continue? [y/n]

Please type y and hit Enter.

3.5 ) Possible option) Next prompt MIGHT Come up if you are using Apache 2.2 (older version instead of 2.4)

Prompt:
Current profile has the following MPMs: ea-apache24-mod_mpm_worker
Warnings/Blockers from Vendor: Cpanel
Cpanel Migrate Blocker
Cpanel evaluates known issues such as network connectivity
WARNING a€?Cpanel::Easy::Apache::Accessa€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::Apache::AuthnAliasa€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::Apache::Fastcgia€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::Apache::Fileprotecta€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::Apache::FollowSymLinks_to_OwnerMatcha€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::ModCloudflarea€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::ModFastIncludea€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::PHP5::Fastcgia€? ignored since it does not have an RPM.
WARNING a€?Cpanel::Easy::PHP5::MailHeadersa€? ignored since it does not have an RPM.
WARNING EasyApache 4 does not support the requested Apache versionv2.2. The system will upgrade you to v2.4.
- Do you wish to continue? [y/n]

Please type y and hit Enter.

3.75) Possible option) Prompt:

>> NOTE: ! This will install a new version of Apache - this will take your sites off during this time for aprox 5-10 minutes !
EasyApache 4 Installing preliminary tools.
Current profile has the following MPMs: ea-apache24-mod_mpm_worker

EasyApache 4 converted your EasyApache 3 profilewith warnings.

a€?Cpanel::Easy::Apache::Accessa€? ignored since it does not have an RPM.
a€?Cpanel::Easy::Apache::AuthnAliasa€? ignored since it does not have an RPM.
a€?Cpanel::Easy::Apache::Fastcgia€? ignored since it does not have an RPM.
a€?Cpanel::Easy::Apache::FollowSymLinks_to_OwnerMatcha€? ignored since it does not have an RPM.
a€?Cpanel::Easy::Apache::Frontpagea€? ignored since it does not have an RPM.
a€?Cpanel::Easy::ModCloudflarea€? ignored since it does not have an RPM.
a€?Cpanel::Easy::ModFastIncludea€? ignored since it does not have an RPM.
a€?Cpanel::Easy::PHP5::Fastcgia€? ignored since it does not have an RPM.
EasyApache 4 does not support the requested Apache versionv2.2. The system will upgrade you to v2.4.

Type y and hit Enter.

4) In Step 4, please just wait:

A lot of things will go flying by and installing. Let this run for 15-20 minutes.

EasyApache 4 has successfully been installed.

5) Now please log into WHM.

5.5) Possible step) This will take you to a featured show case page - >
Scroll down to the bottom and click Exit to whm

6) Once logged in >
On the top left, do a search for "easy."

7) Select EasyApache 4 from the list on the left.

8) Under Available Profiles Section > All PHP Options + OpCache (First option) > click Provision.

9) It will take a minute to load. ONCE it does load, scroll down to the bottomfind the blue square button.

Click Provision.

Provision process started.

**** Wait 5 minutes ****

The provision process is complete.

10) Now - tricky thing took me a few attempts to find out.

Log out and log back into WHM. (Or a trick, just go into the address bar and reload the page.)

10.5 ) possible ) You might be taken back to featured show case. Click Exit to WHM.

11 ) search for php in the address bar on the top left > select "MultiPHP Manager".

12) Look in the first section > System PHP Version - you will see "ea-php##" (e.g. ea-php56.)

Select "Edit" next to that.

Select ea-php70 > select Apply.

13 ) Search for "php".  Select "MultiPHP INI Editor."

14 ) Within the first section "Configure basic settings of a PHP version", there is a drop down menu. Select ea-php70.

Change these options:

max_execution_time: 90
memory_limit : 256M
session.save_path : /tmp
upload_max_filesize : 20M (you can make this bigger)

Options change if you have a resource intensive theme:

max_input_vars: 3000

Click Apply at the bottem of the screen.

15) Congratulations You have installed php 7 on your sites.  Double check make sure everything is working!

I have been using Bluehost VPS which has been stable. After applying PHP 7, the performanace has been improved.


Leave a Comment