CyberHosting

Cron PHP Version Mismatch

In WHMCS -

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 ?

Comments

  • Seek assistance with WHMCS
    Cyberpanel Installation Service.

    https://forums.cyberpanel.net/discussion/3931/cyberpanel-installation-service
  • use full path to php binary , instead of php

    e.g.

    /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.
    https://forums.cyberpanel.net/discussion/comment/6193#Comment_6193

    Example with full path:
    */5 * * * * /usr/local/lsws/lsphp73/bin/php -q /home/example.com/public_html/whmcs/crons/cron.php >/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/example.com/public_html/whmcs/crons/cron.php >/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!