Manage PHP settings for your cPanel hosting account
In your cPanel control panel you can manage the PHP settings for your website, including the PHP version, PHP extensions, and custom PHP variables like memory_limit and max_input_vars.
Almost all PHP settings can be managed via the cPanel control panel, without the need to manually create a php.ini configuration file.
Please follow these steps to enable a PHP version, PHP extension or custom PHP variable:
1) Login to cPanel control panel for your website.
Simply add /cpanel to your website address and this will bring up the cPanel login page.
2) Navigate to the Software menu and choose "Select PHP Version".
Clients with their own dedicated/cloud server may have a "MultiPHP" option instead.
3) On this page, you can select a PHP version
Currently 5.6, 7.0, 7.1, 7.2 and 7.3 are available from the dropdown menu. After selecting one, click 'Set as current'
Note - The 'native' (default) version on many of our servers is still PHP 5.6. However, work is scheduled for December 2019 to update the native PHP to 7.3.
4) After you set the PHP version, you can select the PHP extensions for your website.
For example, the 'mysqlnd' and 'mysqli' extensions are required by most websites, they enable MySQL access for PHP websites. The PHP extensions already selected by default will work fine for most websites.
If for some reason you find no PHP extensions are selected, this will cause an error on your website. For example WordPress will give an error: "Your PHP installation appears to be missing the MySQL extension which is required by WordPress". To fix this, please click on the button 'Reset to default' and this will populate the most popular PHP extensions.
Of course you can select any other PHP extensions from the list as required by your website software.
5) If your website requires custom PHP variables, you can set them here.
Please click on the 'Switch to PHP Options' button.
On the next page you'll see lots of PHP variables that you can customise for your cPanel hosting account. Here you can set upload_max_filesize, post_max_size, max_input_vars, memory_limit, allow_url_fopen and many others.
If there is a PHP variable that isn't on the list and you'd like to see it there, please contact our support team and request it.
6) All changes take effect instantly, so please test your website to make sure its working.
If you encounter any issues, please revert back to the old PHP settings, then contact our support team for assistance.