Bluehost Web Hosting Help

PHP Version Selection (PHP Config)

All our servers support (i.e. are capable of running) PHP 5.2, PHP 5.3 (with a few exceptions listed below) and PHP 5.4. The default version is 5.2.x but you can follow the directions below to use PHP 5.3.x or PHP 5.4.x instead.

Before switching, be aware of backwards compatibility issues with scripts: Older PHP coding may not be compatible with newer versions of PHP.

Please keep in mind: Using PHP 5.3 will break any sites requiring Zend or ioncube that were encoded with PHP 5.2. We recommend you check with the application developers to see if they have a 5.3 version available.

How to Enable

Follow the directions below for the hosting plan you have.

Shared and Reseller

We currently have 5.3.20 (or higher) installed on all servers. A handler for PHP 5.2 and PHP 5.4 is added to our shared and reseller servers for those who wish to utilize it. You can make these changes by doing the following :

  1. Login to your Bluehost Control Panel.
    cPanel Login
  2. Under Software/Service click PHP Config.
    PHP Config icon
  3. Select the version of PHP you're interested in using.
    • PHP 5.2

      All files with the extension .php will be handled by the PHP 5.2 engine.

      Legacy PHP with security updates. Compatible with most environments.

    • PHP 5.2 (Single php.ini)

      Same as PHP 5.2, except all subdirectories will use ~/public_html/php.ini

    • PHP 5.2 (FastCGI)

      All files with the extension .php will be handled by PHP 5.2 FastCGI processes.

      FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpreter on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.

    • PHP 5.3

      All files with the extension .php will be handled by the PHP 5.3 engine.

      Most reliable and compatible version of PHP.

    • PHP 5.3 (Single php.ini)

      Same as PHP 5.3, but all subdirectories will use ~/public_html/php.ini

    • PHP 5.4

      All files with the extension .php will be handled by the PHP 5.4 engine.

      Latest version of PHP.

      Note: Source Guardian and Zend Guard Loader not currently supported.

    • PHP 5.4 (Single php.ini)

      Same as PHP 5.4, but all subdirectories will use ~/public_html/php.ini

    • PHP 5.4 (FastCGI)

      All files with the extension .php will be handled by PHP 5.4 FastCGI processes.

      FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpreter on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.

  4. Click Save Changes

Things to Keep in Mind

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

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.

Knowledgebase Article 129,232 views bookmark tags: config php (updated 227 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Knowledgebase Article

How to Enable PHP FastCGI

This article explains how to enable FastCGI for PHP applications. (updated 436 days ago)

Knowledgebase Article

PHP Config

PHP vs PHP single php.ini vs PHP with FastCGI (updated 701 days ago)

Knowledgebase Article

FastCGI for PHP

What is FastCGI for PHP? (updated 257 days ago)

Related Help Content

Knowledgebase Article

Configuring the PHP Environment With php.ini

How do I change the PHP environment for my site with php.ini? (updated 257 days ago)

Knowledgebase Article

Password Protect a File

How do I Password Protect a single file on my website? (updated 631 days ago)

Knowledgebase Article

Cron Jobs with PHP and other File Types

This article will explain how to run php and other file types using Cron jobs. (updated 430 days ago)

Knowledgebase Article

PHP-Nuke prompts to enable cookies continually

Why do I keep getting "Please enable cookies to post on this site." when I try to login to my PHP-Nuke website? (updated 1652 days ago)

Knowledgebase Article

Upload File Size Limit

How do I increase my file size limit in my PHP application? (updated 187 days ago)

Knowledgebase Article

Mail List authentication failures (php/phplist)

I'm trying to configure an application (phpList) and it requires that I enter (in config.php) a username and password for a POP3 account to handle bounces. I keep getting a POP3 error and it can't log (updated 1669 days ago)

Knowledgebase Article

PHP Version

What version of PHP are you running? (updated 99 days ago)

Knowledgebase Article

Protecting the php.ini file from being viewed

The php.ini file can be viewed from a web browser. (updated 701 days ago)