How do I change server default PHP version in WHM ?
Linux Fully Managed Dedicated Server comes with full root access where you will be get a control to make any changes at anytime. You will also get a SSH access to manage via SSH. In this way you can easily change default system PHP version for all your domains under WHM.
PHP : [Hypertext Preprocessor] is an open source, popular general-purpose scripting language that is widely-used and best suited for developing websites and web-based applications.
Using below procedure you can change the PHP version of the system wide.
Via WHM:
1. Login to the WHM as a root
2. Go to “MultiPHP Manager” under Software option
3. Choose an PHP Version : System PHP Version
4. Click on Edit option
5. You can able to see PHP versions which are already enabled in the server.
Example :-
PHP 5.6 (ea-php56)
PHP 7.0 (ea-php70)
PHP 7.1 (ea-php71)
6. Choose the PHP version [Ex: PHP 7.0 (ea-php70) ] which you want to set for default version of server
7. Click On Apply
8. It will change PHP version for all the domains and show the result as “The system default PHP version has been set to “PHP 7.0 (ea-php70)”.”
Notes:-
- Currently, there are four supported versions of PHP, i.e PHP 5.6, 7.0, 7.1 and 7.2.
- PHP 5.3, 5.4 and 5.5 have all reached end of life; they are no longer supported with security updates.