Tutorials • cPanel
Changing the PHP version in cPanel on shared hosting packages
Learn how to change the PHP version in cPanel on shared hosting. Follow the simple steps to adjust the PHP settings and the extensions required for your applications.
1
Views 1507Updated 1 anPublished on 19/09/2017by Sebastian Szlivka
Introduction
- cPanel provides the option to change the PHP version at the account level. Depending on the requirements of the installed applications or the created websites, you can choose between major PHP versions such as: 5.5, 5.6, 7.0, 7.1, 8.0. This change will affect all domains added to the cPanel account, both the primary and the addon domains.
Requirements
- To modify the PHP version of the account, we will need the cPanel login credentials provided in the administration details email.
Steps
- First, we will log in to the cPanel control panel using the authentication details.

- Once we have logged in to the control panel, we will go to the Software section and click on Select PHP Version.

- In the next window, we will have the possibility to change the PHP version and to enable or disable various PHP extensions.

- In the image above, the selected PHP version is PHP 5.6, as can be seen at Current PHP version. As an example, we will change the current version to version 7.1.
- We will select the desired version from the dropdown menu on the right PHP Version and select 7.1, after which we will click on Set as current.

- After this action, the window will refresh, and the selected version will be the desired one.
- Depending on the selected PHP version, the list of available extensions will be updated. To enable or disable a PHP extension, we will check/uncheck the box to the right of the extension name and click the Save button at the bottom of the list.