How to change the PHP runtime configuration from WHM?

The PHP is configured with the default values of runtime variables in our Shared Linux Hosting and on VPS/Dedicated servers as well. If you need to change the default values, you will need to modify the php.ini file in the server.


Linux VPS/Dedicated Server Hosting

You can modify the PHP runtime configuration by editing php.ini file from WHM.

  1. Login to WHM with root user.
  2. Go to Home » Service Configuration » PHP Configuration Editor.
  3. Select the Advanced Mode.

    PHP Configuration Editor in WHM

  4. Make your desired changes in PHP configuration and Save the changes.

    PHP Configuration Editor

If you want to make changes for a single cPanel account, copy php.ini file under cpanel-user/public_html directory, make desired changes and save the php.ini file.

Linux Shared Hosting

We do have CloudLinux OS with LiteSpeed webserver on our SSD powered Linux Shared environment. In this environment, we do not offer a custom php.ini for the individual cPanel accounts. If you wish, you can change the PHP runtime configuration from the cPanel account. Here are the steps.

  1. Login to the cPanel.
  2. Click on Select PHP Version from Select Software and Services section.

  3. If you are using native version of PHP, change it to the other version and click on Set as current.


  4. Click on Switch to the PHP Settings.

    Switch to PHP Settings

  5. Click on the PHP variable value, you will get a drop down box with the different values. Select the appropriate value for the PHP variable and click on Apply

    Select Values

  6. Click on Save button to save the changes.

    Select PHP Version
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How do I enable ExecCGI via .htaccess file?

You can enable ExecCGI by going to your .htaccess and adding this line to the file: Options...

How to install Oscommerce manually in cPanel ?

Oscommerce is an open-source script. You can host the OsCommerce on cPanel or another hosting...

What are the differecnce between Sub-Domain, Parked Domain And An Add-on Domain?

SubDomain You can add additional sections to your main domain as a sub-domain. This will help to...

How to Restrict Addon Domains Folder Accessing from Main Domain in cPanel?

If you are running your websites under cPanel and have addon domains linked with subdomains and...

How to migrate the cPanel account to the DirectAdmin Panel?

As we know cPanel increased their pricing and now they are charging based on each cPanel account....