HostMonster Web Hosting Help

PHP Version Selection (PHP Config)

All our servers support (i.e. are capable of running) PHP 5.2 and PHP 5.4. The default version is 5.4.x but you can follow the directions below to use PHP 5.2.X instead. However we are working on phasing out PHP 5.2.x from our servers as it is no longer supported by its developers.

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.2 and PHP 5.4 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.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.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 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.4, 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.4), or create a php.ini file that is compatible with PHP 5.4.

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.

DUMP: File "input text" line 67
provinfo = {
                  'address' => {
                                 'address1' => '560 Timpanogos Pkwy',
                                 'address2' => '',
                                 'city' => 'Orem',
                                 'country' => 'USA',
                                 'state' => 'UT',
                                 'zip' => '84097'
                               },
                  'affiliate' => 'partner.hostmonster.com',
                  'angularjs_version' => '1.2.25',
                  'box_prefix' => 'host',
                  'brand' => 'hostmonster',
                  'cdn' => 'hostmonster-cdn.com',
                  'code' => 'hm',
                  'copyright_current_year' => 2015,
                  'copyright_start_year' => '2005',
                  'current_site' => 'my.hostmonster.com',
                  'dedicated_phone' => '(855) 204-1149',
                  'domain' => 'HostMonster.com',
                  'domainuc' => 'HostMonster.com',
                  'features' => {
                                  'adwords' => 1,
                                  'aff_coupon_codes' => 1,
                                  'basekit' => 0,
                                  'boxtrapper' => 0,
                                  'catchall' => 0,
                                  'dedicated' => 1,
                                  'enom_domains' => 0,
                                  'plesk' => 0,
                                  'quickinstall' => 0,
                                  'reseller' => 0,
                                  'simplescripts' => 1,
                                  'site_backup_restore' => 1,
                                  'sitelock' => {
                                                  'basic' => 1
                                                },
                                  'ssh_access' => 1,
                                  'us_support' => 1,
                                  'vps' => 1,
                                  'weebly' => 1,
                                  'windows' => 0,
                                  'wire_transfer' => 0
                                },
                  'forum' => 'www.hostmonsterforum.com',
                  'ga_id' => 'UA-9156498-2',
                  'gateway' => 'Litle',
                  'gtm_id' => 'GTM-KG2H6M',
                  'jquery_ui_version' => '1.10.1',
                  'jquery_version' => '1.11.2',
                  'legal_name' => 'Hostmonster',
                  'mail' => 'HostMonster.com',
                  'mailuc' => 'HostMonster.com',
                  'media_base' => '//tutorials.HostMonster.com/help_media/',
                  'name' => 'HostMonster',
                  'ohwp' => undef,
                  'provider' => 'HostMonster.com',
                  'renew_email' => 'autorenew@hostmonster.com',
                  'reseller_extension' => '8942',
                  'reseller_host' => undef,
                  'reseller_phone' => undef,
                  'secure_site' => 'www.hostmonster.com',
                  'site_i_host' => 'i.hostmonster.com',
                  'site_login_host' => 'login.hostmonster.com',
                  'site_my_host' => 'my.hostmonster.com',
                  'site_www_host' => 'www.hostmonster.com',
                  'spoke_phone' => undef,
                  'support_email' => 'support@hostmonster.com',
                  'support_fax' => '801-765-1992',
                  'support_phone' => '(866) 573-4678',
                  'support_phone_direct' => '(801) 494-8462',
                  'support_phone_pretty' => '(866) 573-HOST',
                  'support_phones' => undef,
                  'underscore_version' => '1.6.0',
                  'vat_number' => 'EU826015180',
                  'vps_phone' => '(855) 204-1149',
                  'whois_email' => 'whois@hostmonster.com'
                };
        
Knowledgebase Article 187,383 views bookmark tags: config php (updated 102 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

PHP vs PHP single php.ini vs PHP with FastCGI (updated 1016 days ago)
Knowledgebase Article 134,068 views tags: configuration php server

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 1984 days ago)
Knowledgebase Article 68,629 views tags: list mail php phplist

What version of PHP are you running? (updated 416 days ago)
Knowledgebase Article 81,172 views tags: php

Related Help Content

Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations (updated 345 days ago)
Knowledgebase Article 7,249 views tags: easyapache php vps whm

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

How can I adjust the php settings specifically for an Addon Domain? (updated 954 days ago)
Knowledgebase Article 105,303 views tags: domain php

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages. (updated 504 days ago)
Knowledgebase Article 64,554 views tags: package pear php

How do I view the php information page? (updated 304 days ago)
Knowledgebase Article 67,955 views tags: php phpinfo

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. (updated 1936 days ago)
Knowledgebase Article 57,263 views tags: php remote url

500 Internal Server Error when installing via the MOJO Marketplace installer. (updated 599 days ago)
Knowledgebase Article 96,102 views tags: cpanel errors htaccess panel php script simpel

When creating a symlink to a php page, I get a 500 error. I am able to use symlinks to other files and folders fine. (updated 1727 days ago)
Knowledgebase Article 53,009 views tags: link php