There was a problem loading the comments.

How to adjust PHP settings of your cPanel server within WHM

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
  • 18/05/2020 8:40 PM

You may sometimes need to manually adjust the PHP settings on your cPanel server - for example if a site is hitting the PHP memory, or file size upload limit. WHM allows you to quickly change the settings of any PHP version installed on the server when needed, using the built in MultiPHP INI Editor.

Adjusting PHP settings:

Firstly, log into your server / WHM account. If you are unsure on how to do this, please view the following help article - 'How to log into WHM' Once logged in, from your WHM home screen type in 'PHP ini' within the search box, located in the top left of your WHM area, then click on 'MultiPHP INI Editor'
On the MultiPHP INI Editor page, you will be taken to the 'Basic Mode' tab by default, which will allow you to change the most commonly adjusted PHP settings. Note: In this guide we will be covering adjusting settings within the Basic Mode, however if you need to add custom PHP lines, or adjust other advanced settings, please use the 'Editor Mode' tab Click on the 'Select a PHP Version' drop down box, then select the PHP version that you would like to adjust the settings for.
The Page will then fill with a list of PHP settings that can be adjusted / toggled on or off. Take your time to read through these and adjust the settings that you require. The most commonly adjusted settings normally include 'memoy_limit' and 'upload_max_size', where you can adjust the limit in MB (MegaBytes). If you are unsure on any of the settings - Each line will have some basic information describing what the setting does. For settings that require a value to be set for them (for example: memory_limit), you will also find the PHP default value written underneath the value entry box, should you ever need to set it back to default. Once you've changed your required settings, click on the 'Apply' button at the bottom of the page.
If you haven't yet saved by clicking on the 'Apply' button, WHM will notify you with a blue notice in the top right hand corner of the page, to state 'You must click "Apply" to apply the new changes'.
Once you have clicked 'Apply' and WHM has saved the settings, this will then display a green 'success' notification in the top right corner of the page, to confirm that the PHP settings have been applied.

Share via
Did you find this article useful?  

Related Articles

© Eco Hosting