Skip to main content

PHP-cli error

Comments

5 comments

  • JacobPerkins
    Hi, Instead of calling 'php' via the cron', instead call '/usr/local/bin/php'. This is the CLI variant. I hope this helps!
    0
  • canou83
    Thanks Jacob cP. I convey our developer. Hope it will help
    0
  • canou83
    One thing, if we run this command from the command line via SSH it works perfectly. But not automatic task. In automatic Error: You are using PHP for CGI. To execute cron_run_alljobs.php from command line, you must use PHP for CLI mode.
    0
  • cPanelMichael
    Hello @canou83, Updating the PHP command for this cron job to "/usr/local/bin/php" should address the issue. You may also find the following document helpful: EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation Thank you.
    0
  • canou83
    Work fine. Thanks all.
    0

Please sign in to leave a comment.