Search Knowledge Base by Keyword

How to change PHP settings in cPanel

From time to time you may need to change the version of PHP to run with your website, or you may need to change some PHP resource limits. cPanel provides an easy-to-use interface for managing your PHP settings.

First, login to cPanel.

Now navigate to Select PHP Version.

Select PHP Version section in cPanel

You’ll now be taken to the PHP management screen for your hosting account.

PHP extensions selector in cPanel

Changing PHP Version

To change PHP version, just click the drop down menu beside PHP Version, select the version you want to change to, then click Set as current.

changing PHP version in cPanel

Enabling PHP Extensions

To enable a PHP extension, just tick the tick box for the PHP extension you wish to enable.

Note: You need to be using a non-native version of PHP in order to manage the PHP extensions.

enabling PHP extensions screen in cPanel

Changing PHP Options

To change PHP options, just click Switch to PHP Options.

changing PHP options screen in cPanel

Enter the new values for any of the PHP options and the change will then be applied to your hosting account.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?