Selecting PHP Version

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


Steps

  1. Login to your Control Panel (i.e. www.yourdomain.com/cpanel ).
  2. click on PHP Config under Software/Services category

Selecting PHP Version from hosting cpanel (php config)


      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 Changes

Please note carefully the following:

  1. 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.
  2. 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.

 



 

Was this answer helpful?

 Print this Article

Also Read

How to Add an Addon Domain from Your cPanel

Very Important note: Before commencing with adding an addon domain, ensure you have registered...

Creating a New FTP Account

Steps below will guide you on how to create your new FTP account Login to your Control Panel...

How to Create a New Email Account

If you do not have an account, you can sign up here. This will allow you to pick your own custom...

Installing IonCube and/or other extentions

Note: Ioncube is already installed on all of our servers. Before your scripts may use Ioncube,...

How to check the amount of disk space you are using on your cpanel

       Steps   Login to your cpanel Navigate to the Files...

Powered by WHMCompleteSolution