Cron PHP Version Mismatch


Your environment appears to be running a different PHP version (7.1.30) for the System Cron than the currently loaded PHP version (7.3.13). This may cause issues running your System Cron.

How to fix this ?

use full path to php binary , instead of php


/usr/local/lsws/lsphpXX/bin/lsphp /path/to/your/script.php

I also explained how to fix this in this thread via symlinking the main PHP version if your opposed to using the full path.

Example with full path:
*/5 * * * * /usr/local/lsws/lsphp73/bin/php -q /home/ >/dev/null 2>&1

Example with system PHP symlinked to the PHP73 so everything uses PHP73 by default

[root@wcloud:~]# ls -l /usr/bin/php
lrwxrwxrwx 1 root root 31 Sep 8 08:30 /usr/bin/php → /usr/local/lsws/lsphp73/bin/php

*/5 * * * * /usr/bin/php -q /home/ >/dev/null 2>&1


How to set PHP version as default in CP?