24 hr Australian Support


How to set PHP Version and Settings in WHM or cPanel using MultiPHP


Note:
This guide is for VPS and Dedicated Server products with EasyApache 4. If you have Cloud Linux (you will see the word "Cloud Linux" in the top of WHM) click here for a guide on changing PHP settings and version.
If your server is using EasyApache 3 and you wish to upgrade to EA4 click here for the official cPanel guide, or submit a support ticket and we'll take care of it for you.

If you have a Personal, Business, Professional or Reseller hosting account click here for a guide on changing PHP settings and version.


A Note on PHP 7:

PHP 7 is a big leap from the 5 series and provides up to a 50% speed boost and 50% reduced memory usage. It is also more secure than PHP 5. Further to this, it is actively being worked on meaning it will continue to receive speed and security updates. Some older sites may have compatibility problems with PHP 7, while 5.6 is far more compatible. PHP 5 is no longer supported with security updates, as seen here. We recommend moving to 7 and if you have any incompatible themes/plugins you may want to look for alternates. PHP7 will make sure your website is faster, safer and more future proof.


WHM MultiPHP Guide
Step 1 - Log into WHM and search for 'multiphp'. You will find two options, MultiPHP INI Editor and MultiPHP Manager.





MultiPHP INI Editor


This is used to select the default PHP modules and values for a version of PHP. To use it, first select the version of PHP you want to edit.





Make the edits that you want, and click Apply. They will be applied immediately.




If the PHP options you're looking for aren't in the summary, you can use the Editor Mode, which will allow you to directly edit the php.ini file.
WARNING: Be very careful in editor mode as a single error can cause problems. Before making any edits we recommend copying the whole text document and saving it locally. This way you essentially have a clean backup of the php.ini file in case something breaks.





MultiPHP Manager


This tool allows you to set the PHP version used for each cPanel account and set the PHP handler for each PHP version.
To update the PHP Version, select the cPanel accounts you wish to set it for, chose the desired PHP version and hit Apply.





To set the PHP Handler, select PHP Handler from the top of the page then click Edit.





Select the PHP handler you want to set and click Apply.




cPanel MultiPHP Guide
Step 1 - Log into cPanel and find the MultiPHP Manager and MultiPHP INI Editor.




MultiPHP Manager


This allows you to set separate PHP versions for the primary domain, addon domains and subdomains.


Step 1 - Select the domain you would like to make the change for.

Step 2 - Select the PHP version from the dropdown list.

Step 3 - Click Apply.





MultiPHP INI Editor


This allows you to set and change PHP variables like max_execution_time, memory_limit and others.


Step 1 - Select which domain you want to edit the PHP settings for.





Step 2 (Optional) - If the PHP options you're looking for aren't in the summary, you can use the Editor Mode which will allow you to directly edit a local version of the php.ini file.
WARNING: Be very careful in editor mode as a single error can cause problems. Before making any edits we recommend copying the whole text document and saving it locally. This way you essentially have a clean backup of the php.ini file in case something breaks.





Step 3 - Perform the required edits, and click Apply.