Sudo user uses PHP 5.4!

Started by fatihalp, January 30, 2021, 01:17:15 PM

Previous topic - Next topic

fatihalp

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

cinique

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.