Set PHP version for web hosting account in cPanel
Added: 10.03.2014 23:26:29 Last updated: 12.01.2017 00:38:55
The guide shows how to proceed to set the PHP version for the web hosting account with us, as well as how to configure PHP via cPanel.
Click on the icon for "Select PHP Version" as shown in the screenshot below:
- Choose the version of PHP you want to run on your web hosting account. "Native" will run the PHP version that is standard for the specific server your web hosting service is located on, and the version is listed in parenthesis (5.3).
- Click on the button "Set as current" to save the change.
- When you have chosen a version you can click on "Use defaults" the first time, to be sure that the most common modules have been added.
- You may now add/remove modules that should be run for PHP on your web hosting account, depending on your requirements.
- Click "Save" to start using the changes.
- To change the limits that are set via PHP you click on "Switch To PHP Options"
Via "PHP Options" you can adjust/change the most used limits that are set for PHP, and here we show only an example.
- memory_limit defines how much memory the php script can use.
- post_max_size specifies how much data can be loaded to the server via POST.
- upload_max_size defines how big a file uploaded to the server can be. post_ and upload_max should therefore both be increased if you get an error message when uploading, or need to upload large files.
- Click "Save" to start using the new limits that has been set for PHP on your account.
We have now been through how you can choose which PHP version you want to run .php files with in your web hosting account.