To change the PHP version for your web hosting account on servers running EasyApache 3, follow the steps below:
1. Log into your cPanel account.
2. Scroll down and find Software/Services section PHP Version.
3. You can change the PHP version for the whole public_html or for any other folder in public_html.
4. You can choose between PHP 5.3,5.4,5.5,5.6 and 7.
If you are on a server using EasyApache4 then you would need to follow the steps below. Under the Software section look for an icon MultiPHP Manager.
Once you click on it a new page will load which will allow you to set the global PHP version for your entire account. That will be the default PHP version used by all your domain names and subdomains except you didn’t choose a separate PHP version to be used for the specific web site. Look at the screenshot below.
The System PHP Version is the default version for your web hosting account. You can change that one by choosing one of the available PHP versions and clicking on the Apply button.
Altenratively, you can have a different PHP version for each of your web sites. To do that you need to select the web site from the list and then choose a PHP version for it from the drop down menu and click on the Apply button.
You can also control the settings of each PHP version. That is done by creating a custom php.ini file. You can create a global php.ini file or separate custom php.ini files for each of your web sites. That allows you to configure PHP as per your requirements so that your PHP application performs at its best. To learn more about how you can create and manage your custom php.ini files please read the article at https://www.scalahosting.com/kb/create-custom-php-ini-file/. Feel free to contact us if you have additional questions.