CyberPanel Community

Php reports incorrect version

SD
SaJeTek Developer #1

/usr/local/lsws/lsphp74/bin/php -v reports the php version as PHP 7.1.33

This causes conflicts when running cron jobs for applications which require php 7.4
Tested on multiple servers

6 replies
sh
shoaibkk #2

which command you ran before that seem 7.1 files are copied in 74 directory

SD
SaJeTek Developer #3

I have done some work but nothing pertaining to the /usr/local/lsws/lsphp74/bin/ directory.
I’m seeing that all my servers that run cyberpanel and openlitespeed has this issue but only with php 7.4.

I checked my server running Cyberpanel Enterprise but the issue does not occur there.
I’m not sure what caused the issue.
I’m seeing that the file was modified july and others August around the time that I usually run cyberpanel updates so i’m not sure if it’s linked.

SD
SaJeTek Developer #6

I re-ran the update script this morning as I had replaced the file with the correct version.
After running the upgrade script, this is he output of ls -la /usr/local/lsws/lsphp74/bin/php

-rwxr-xr-x. 1 root root 5178224 Aug 10 12:25 /usr/local/lsws/lsphp74/bin/php

UTC time

RA
Raheel Ahmad #7

I was facing the same issue,
fixed it with Re Install

yum install lsphp74

Sign in to reply