Bluehost Web Hosting Help
PHP Version Selection - PHP Config
Our servers support PHP 5.4, PHP 5.6, and PHP 7.0.
Consider using PHP 7, as it 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.
Standard Vs Single Vs FastCGI
Our System allows you to run PHP scripts a few different ways. You will see these options along side each PHP version on the version selection page.
Allows multiple php.ini files. This is allows you to control the php configuration on a directory by directory basis by placing a php.ini file in any folder.
All php.ini files except ~/public_html/php.ini will be ignored. This will make your php configuration more manageable as everything is controlled from a single file.
In some situations running in FastCGI can improve the performance of your website. FastCGI runs PHP scripts through mod_fastcgi which eliminates the startup overhead for each script.
How to Change PHP Versions
You can change your PHP version by following these steps:
- Log in to your Bluehost account.
- Under Programming click PHP Config.
- Select the version of PHP you're interested in using.
- Click Save Change
Things to Keep in Mind
While it is best practice to always use the most recent version of PHP, it is important to check the compatibility of your site against new versions of PHP before upgrading. Sites built with WordPress can use the PHP Compatibility Checker plugin.
Make sure any applications, themes, or plugins are up to date before upgrading PHP.
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.
If you are experiencing slowness in your site and you are using one of the FastCGI options, then you will want to change to another option as this can cause slowness in sites if not properly coded for using FastCGI.
Recommended Help Content
Adding Handlers to change your PHP Version
This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Change Your PHP Version - Dedicated and VPS Hosting
Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
This article will explain how to use Easy Apache to recompile Apache. This is useful if you want to change the version of PHP or change other PHP and Apache settings.
Related Help Content
Configure the PHP Environment with php ini
How do I change the PHP environment for my site with php.ini?
PHP Configuration for Addon Domain
How can I adjust the php settings specifically for an Addon Domain?
PHP PEAR Packages
This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
In the newer versions of PHP, they have included a new directive to control and handle remote includes. We disable this option, by default, which may affect some of your PHP scripts.
PHP information page
How do I view the php information page?
500 Internal Server Error when trying to install something with MOJO Marketplace
500 Internal Server Error when installing via the MOJO Marketplace installer.
How to Enable PHP FastCGI
This article explains how to enable FastCGI for PHP applications.
How do I redirect users to another page using PHP?