HostMonster 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 HostMonster 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,052 views bookmark tags: config php (updated 225 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article explains how to enable FastCGI for PHP applications. (updated 434 days ago)
Knowledgebase Article 58,572 views tags: fastcgi php

PHP vs PHP single php.ini vs PHP with FastCGI (updated 698 days ago)
Knowledgebase Article 108,827 views tags: configuration php server

What is FastCGI for PHP? (updated 255 days ago)
Knowledgebase Article 149,157 views tags: acceleration fastcgi php scripting

Related Help Content

How do I change the PHP environment for my site with php.ini? (updated 254 days ago)
Knowledgebase Article 253,517 views tags: configuration php server

How do I Password Protect a single file on my website? (updated 629 days ago)
Knowledgebase Article 79,517 views tags: file passwd password prompt protect secure single

This article will explain how to run php and other file types using Cron jobs. (updated 428 days ago)
Knowledgebase Article 165,872 views tags: cron file jobs php

Why do I keep getting "Please enable cookies to post on this site." when I try to login to my PHP-Nuke website? (updated 1649 days ago)
Knowledgebase Article 47,560 views tags: nuke php

How do I increase my file size limit in my PHP application? (updated 185 days ago)
Knowledgebase Article 170,670 views tags: optimize php upload uploads

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 1667 days ago)
Knowledgebase Article 61,126 views tags: list mail php phplist

What version of PHP are you running? (updated 97 days ago)
Knowledgebase Article 71,195 views tags: php

The php.ini file can be viewed from a web browser. (updated 698 days ago)
Knowledgebase Article 47,039 views tags: exploit hide php prevent