New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

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.