How to adjust PHP settings of your cPanel server within WHM
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.
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...
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...