Change the PHP version in SSH in CPanel

by Stanley Ngumo   Last Updated November 08, 2018 21:04 PM - source

I've developed a PHP/MySQL system which runs on PHP 7.0 but when I access it to my remote CPanel via SSH and check the php version php -v it show that Im using version 5.4 how can I change this to 7.0 for SSH usage?

Thanks

Tags : php cpanel


Answers 1


If I get it right, you have running app on php7 and php5 in shell.
Its possible to have different php versions on same server. CLI(in ssh terminal) version can be other then apache's mod_php. If php -v shows not the same as webpage's phpinfo() function then this is your case. If you not planning to run console scripts(like some jobs in cron), and webpage with phpinfo() function shows needed version, all fine. If not, - you need to reconfigure/upgrade your server, doing this vary on distribution. If its not your own server, then only hosting provider can do that, ask him for help, or you may change hosting provider to who provide needed version.

LeonidMew
LeonidMew
November 09, 2018 22:02 PM

Related Questions


cPanel - Change theme back from x2 to x3

Updated April 30, 2015 21:01 PM



CPanel IP Blocker - Block all IP addresses?

Updated July 23, 2015 13:01 PM