How to change PHP version from cPanel?

The latest version of cPanel/WHM (58.3.x) is shipped with the EasyApache 4.0. It allows you to install and run multiple versions of PHP side by side. If your WHM server is running with WHM 58.3.x or later version, you can install multiple PHP versions, and allow individual cPanel user to select/change PHP version of their website right from their cPanel account. Following tutorial will assist you to change the PHP version of your website and add a custom php.ini file via cPanel.


Change the PHP Version from cPanel

 

  1. Login into cPanel account via URL https://Server-IP-Address:2083.
  2. In cPanel, under Software section select MultiPHP Manager.

    Multi PHP Version

  3. On the next screen, select the website for which you want to change the PHP version.

    Select Website

  4. Select the PHP version from the drop down menu and click on Apply button.

    PHP Version Selection

 

Change PHP Directive Values by Creating Custom php.ini

 

  1. Login into cPanel account via URL https://Server-IP-Address:2083.
  2. In cPanel, under Software section select MultiPHP Manager.

    PHP.ini Editor

  3. Select the website from the dropdown for which you want to create a custom php.ini file.

    Configure PHP.ini

  4. Change the PHP directive values according to your requirements. Once you are done with the changes, click on Apply button and cPanel will create a custom php.ini file under the root directory of that website with custom changes you've just made to php.ini.

    Apply Settings
  5.  
  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How to add a record with the DNS Zone Editor in cPanel?

  How to add a record with the DNS Zone Editor in cPanelThis demo assumes you've already logged...

How to add an MX entry in cPanel?

  How to add an MX entry in cPanelThis demo assumes you've already logged in to cPanel, and are...

How to backup your website in cPanel?

  How to backup your website in cPanelThis demo assumes you've already logged in to cPanel, and...

How to Change PHP Directives Globally from WHM with EasyApache 4?

You can follow below steps to change the values of PHP directives for all the websites running a...

How to change the primary language in cPanel?

  How to change the primary language in cPanelThis demo assumes you've already logged in to...