Skip to main content

CronJob with php version 5.6

Comments

1 comment

  • cPanelMichael
    I tried to force cron to use php version 5.6 with /opt/php56/lib/php -q /home/xxxxxx/public_html/backend/cronjob/cron.php but I get the error /usr/local/cpanel/bin/jailshell: /opt/php56/lib/php: is a directory

    Hello, Please try using a command like this for your cron job if you are using EasyApache 4 with PHP 5.6 installed:
    /opt/cpanel/ea-php56/root/usr/bin/php-cgi /home/xxxxxx/public_html/backend/cronjob/cron.php
    You can find additional discussion of this topic at: EasyApache 4 Cron Issue Thanks!
    0

Please sign in to leave a comment.