1. bluehost knowledge base

PHP Version Selection


Our servers support PHP 7.0 and higher. PHP 7 offers a significant improvement to speed and memory usage over past versions of PHP. It also comes with better error handling and many bug fixes.

Before making the switch, you need to be aware of backwards compatibility issues with scripts: Older PHP coding may not be compatible with newer versions of PHP. Avoid skipping versions, and instead, make updates incrementally. 

The process for updating your version of PHP will depend on what type of account you have set up. Older accounts use the Legacy interface, while updated accounts will use the Rock interface.

Most customers should use Rock instructions. If you are not sure whether to use Rock or Legacy, please see Rock vs Legacy to learn more about the difference between the two interfaces.

How to Change Versions Using PHP Config (Legacy) 

You can change your PHP version in Legacy accounts by following these steps:

  1. Log in to your Bluehost account.
  2. Under the Hosting tab, click cPanel in the submenu.
  3. Scroll down and look for the programming section, then click the PHP Config.
    Time Zone
  4. Select the version of PHP you're interested in using.
  5. Click Save Change

How to Change Versions Using MultiPHP Manager (Rock)

You can change your PHP version in Rock accounts by following these steps.
  1. Log in to your Bluehost account.
  2. Click on the Advanced tab from the side navigation menu to the left.
  3. In the SOFTWARE section, click MultiPHP Manager.
  4. Check the box next to the website(s) this PHP version will apply to.
  5. Choose the PHP Version, then click Apply.
Please note: If a domain is set to Inherit, it will automatically take on whatever PHP setting is assigned to the main domain.

Generate php.ini

To generate a new php.ini file:

  1. Log in to your Bluehost control panel.
  2. Under Software click MultiPHP Manager.
  3. Select the version of PHP you're interested in using.
  4. Click Apply.
  5. You will now have a file inside the public_html folder named php.ini

If you have any further questions about configuring the php.ini file, there are extensive descriptions within the file itself. You may also find more help at: http://www.php.net/docs.php

Things to Keep in Mind

If you are using a custom php.ini file that references PHP modules that are not available in your selected version, your site may not work. Either remove the custom php.ini file (which will cause the server to use the default php.ini file), or create a php.ini file that is compatible with your selected version.