Objective
Following the steps in this article will allow for changing the PHP version used by a domain hosted on a cPanel webhosting account
Environment
Web hosting - cPanel
Before You Begin
Steps
- Navigate to 'MultiPHP Manager' via one of the following methods
- Type 'php' in the search bar in the upper right corner, select 'MultiPHP Manager' from the list of options that appear
- Go to Software >> MultiPHP Manager
- This will pull up a list of all domains setup on the account and the PHP version the domain is using. Take note of the PHP version that is being used prior to updating it
- Select the checkbox next to the domain(s) to change PHP on
- From the 'PHP Version' dropdown on the right side of the screen, select the desired version of PHP, then click 'Apply'
There is also the 'inherit' option. This will set the PHP version to the System PHP Version, displayed at the top of the MultiPHP Manager interface. The System PHP Version will be periodically updated as older PHP versions reach the end of their support cycle.
- Visit the website(s) the PHP versions were changed on to ensure they are working. If there are errors, or the site displays a blank white page, follow the above steps to revert back to the previous PHP version
Additional Info