How to change PHP Versions and PHP Settings in cPanel

In some cases, correct functioning of your website depends on a PHP version installed on the server.  WebHostNepal Hosting servers support multiple versions of PHP.  This guide describes how to change php version on Shared Hosting and Cloud Hosting from WebHostNepal. To change the PHP version used for your account, follow these steps:

  • Log into your cPanel account.
  • Scroll down to the Software/Services section of the cPanel home screen, click Select PHP Version:

cPanel displays the current PHP version.  Here you will see the list of available modules and extensions.  If you do not need to change the PHP version and just want to turn on/off specific extensions, you can do this by checking/unchecking the corresponding boxes.  Use the PHP Version drop-down box to select the required version, click on Set as current in order to apply the changes.

NOTE: The ‘native’ PHP version does not allow changing any options. You can set the desired values using a php.ini file:

 

  • To change individual settings within the PHP version in question, click on Switch to PHP Settings.

    By clicking on one of the options in grey, you will be presented with a drop-down list to change specific settings. Hit Apply to implement the settings:

  • Save your settings

NOTE 1: It is recommended to update your website scripts and use PHP 5.6. If the latest software you run for your websites is not yet compiled for PHP 5.6, please contact the script vendor for a compatibility patch. 

NOTE 2: If you used a php.ini file for editing your account PHP configuration before, you will need to replicate the custom values using PHP Selector tool. 

NOTE 3: In order to increase the max upload size, make sure to modify both post_max_size and upload_max_filesize values.

Drop Your Comments Below

Leave a Reply