24 hr Australian Support


How to update PHP Versions, Modules, and Settings in cPanel


This guide is for our Personal, Business, Premium and Reseller plans, as well as VPS and Dedicated Servers with CloudLinux.
If you're on a WHM/cPanel VPS or Dedicated Server without CloudLinux, click here for a guide on changing PHP settings.

What is PHP and why does it need to be updated or configured?
PHP is a scripting language that is generally used for websites. For web servers to execute the PHP code, they require a PHP interpreter to read and translate the PHP code for the server to understand and execute.
Over time, vulnerabilities are patched up and improvements are made to the PHP code base which requires PHP interpreters to also be updated.
We generally recommend that you keep PHP updated to the latest versions for improved performance and security of your website - follow this link here to find the latest supported versions of PHP.

Are there any risks in changing my PHP version?
Depending on how your website is coded, there is a chance that your website will not work on a different PHP version - newer versions of PHP often remove older functions and/or change how older functions operate to improve performance and security.
We recommend updating the PHP version, one version at a time and testing after every update - if the website loses functionality, then roll back the PHP version and update your website so it will be compatible with the new version.
If you are not confident with updating PHP, we advise getting in contact with your website developer for further assistance.


How can I change the PHP version, module or option on my cPanel account?

Step 1 - Log into cPanel and click on Select PHP Version.

ec4424e773bf59af95c59143102fd5216a8300d1?t=630aa953cd576c5e6c87e9ecc22fe909


Step 2 - Drop down the menu of PHP versions and select the PHP version that you wish to update to, then click on Set as current.

77d612a202e9e13c434cec03194957e75cc75ab3?t=9c1cf52716739029846318f1285744db


To enable a PHP module
: Tick the box for the module you want to enable.

1a55d6a0d1dea329181363423c884a811b8860f4?t=2df179c60e7198ad336eaa98f5cd6e9b


To change the PHP options such as max_input_time, post_max_size etc: First, click on the Switch to PHP Options link in the top right.

76d84ea90894b3cef4382daef129066d265ee346?t=afa8ca065c08ccf5fca20e3583eb0160

To edit a PHP setting
, click on the value you want to edit and change it.

7b6371b6f1d4a18abf727ff8bbb61b30595a70ac?t=109594003824639b4fe4d2f1f2af99fc
If you don't see the PHP setting in this area or if you want a higher setting than this area allows, you can also edit your PHP settings via the .htaccess file.


Did you find this article useful?