Where can I change PHP Versions, Modules, and Settings in cPanel?

  Print

Where can I change PHP Versions, Modules, and Settings in cPanel?

This guide is for our Personal, Performance, and Reseller plans, as well as VPS' with CloudLinux.
If you're on a WHM/cPanel VPS 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, it requires a PHP interpreter to read and translate the PHP code for the server to understand and execute.
Overtime, 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 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.
If you are not confident with changing the PHP, we always advise getting in contact with your website developer for further assistance if your website is not compatible with a new PHP version.

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

Step 1 - Once you have logged into your cPanel account, under the heading of Software, 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



Did you find this article useful?  

Related Articles

© Crucial