HostMonster Web Hosting Help

PHP Version Selection - PHP Config

Overview

Our servers support PHP 5.4, PHP 5.6, and PHP 7.0.

Consider using PHP 7, PHP 7 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.

Standard

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.

Single php.ini

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.

FastCGI

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 Enable

You can change your PHP version by following these steps:

  1. Log in to your HostMonster account.
  2. Under Programming click PHP Config.
  3. Select the version of PHP you're interested in using.
  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 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.

Knowledgebase Article 357,954 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 80,150 views tags: htaccess php

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

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

Related Help Content

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 21,003 views tags: apache build compile dedi dedicated easy modules version vps

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

How can I adjust the php settings specifically for an Addon Domain?
Knowledgebase Article 139,084 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 88,940 views tags: package pear php

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.
Knowledgebase Article 81,086 views tags: include php remote url

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

500 Internal Server Error when installing via the MOJO Marketplace installer.
Knowledgebase Article 136,115 views tags: cpanel errors htaccess panel php script simpel

This article explains how to enable FastCGI for PHP applications.
Knowledgebase Article 81,437 views tags: fastcgi php