Author Topic: Sudo user uses PHP 5.4!  (Read 2150 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Sudo user uses PHP 5.4!
« 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

Re: Sudo user uses PHP 5.4!
« Reply #1 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.