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.
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...