HostMonster Web Hosting Help

PHP Version Selection (PHP Config)

All our servers support (i.e. are capable of running) PHP 5.4 and PHP 5.6.

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


How to Enable

Follow the directions below for the hosting plan you have.

Shared Standard and Pro

PHP 5.4 and PHP 5.6 are available on our shared servers. 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.4

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

      Legacy PHP with security updates. Compatible with most environments.

    • PHP 5.4 (Single php.ini)

      Same as PHP 5.4, except 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.

    • PHP 5.6

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

      Latest version of PHP.

    • PHP 5.6 (Single php.ini)

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

    • PHP 5.6 (FastCGI)

      All files with the extension .php will be handled by PHP 5.6 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 Change

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.6, 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.6), or create a php.ini file that is compatible with PHP 5.6.

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 267,742 views bookmark tags: config php


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

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.
Knowledgebase Article 17,172 views tags: htaccess php

What version of PHP are you running?
Knowledgebase Article 101,815 views tags: php

PHP vs PHP single php.ini vs PHP with FastCGI
Knowledgebase Article 175,342 views tags: configuration php server

Related Help Content

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
Knowledgebase Article 78,014 views tags: list mail php phplist

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.
Knowledgebase Article 5,943 views tags: apache build compile dedi dedicated easy modules version vps

PHP 5.2 support has been removed
Knowledgebase Article 2,183 views tags: php

Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
Knowledgebase Article 19,554 views tags: easyapache php vps whm

How do I change the PHP environment for my site with php.ini?
Knowledgebase Article 449,073 views tags: configuration php server

How can I adjust the php settings specifically for an Addon Domain?
Knowledgebase Article 120,399 views tags: domain php

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
Knowledgebase Article 75,484 views tags: package pear php

How do I view the php information page?
Knowledgebase Article 79,038 views tags: php phpinfo