We do support Round the Clock 24 x 7 x 365 (+91) 883 012 3924
 

How to change default PHP version on cPanel server through command line

How to change default PHP version on cPanel server through command line

In WHM, you can change the default PHP version through Multi-PHP Manager.
However, if you want to change the global default PHP version through command line you can follow below steps :

To display the current default PHP version :

# /usr/local/cpanel/bin/rebuild_phpconf –current

Above command is showing PHP 5.6 as default php version. Now we will change it to PHP 7.0 version with below command

# /usr/local/cpanel/bin/rebuild_phpconf –default=ea-php70

Leave a Reply

Your email address will not be published. Required fields are marked *