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 ?


  • Seek assistance with WHMCS
    Cyberpanel Installation Service.
  • 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

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

    */5 * * * * /usr/bin/php -q /home/ >/dev/null 2>&1
  • How to set PHP version as default in CP?
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!