Php reports incorrect version

/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

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

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.

I just ran the upgrade script from: 02 - Upgrading CyberPanel - 01 - Install/Upgrade - Docs - CyberPanel Community

and saw that it actually changed the php file in real time.

The culprit is the upgrade script or one of the packages being installed.

Centos 7

Whats the output of ls -la /usr/local/lsws/lsphp74/bin/php

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

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

yum install lsphp74