Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: fatihalp on January 30, 2021, 01:17:15 PM

Title: Sudo user uses PHP 5.4!
Post by: fatihalp on January 30, 2021, 01:17:15 PM
Installed new fresh CWP. When I type sudo su on console:

[root@ip-172-31-26-130 public_html]# php -v
PHP 5.4.16 (cli) (built: Apr  1 2020 04:07:17)


I'm just using PHP 7.4 only actually
Title: Re: Sudo user uses PHP 5.4!
Post by: cinique on January 30, 2021, 01:56:41 PM
As stated, numerous times on this forum; CWP (CLI) and webserver PHP versions aren't the same thing, though may be set to be equal versions. In other words, there's system PHP and there's webserver PHP.
You can explicitly use a full path to the directory where a specific PHP version resides.