Skip to main content

Cron jobs problem - headers

Comments

3 comments

  • cPanelMichael
    Hello, Did this start happening after upgrading to EasyApache 4? If so, let us know if the following document helps: EasyApache 4 and the ea-php-cli Package - EasyApache 4 - cPanel Documentation Thank you.
    0
  • Piotr W.
    Thank you for your reply. No, I'm using EasyApache 4 from the beginning of my server (recent build) - EA4 was in beta then. It all worked fine until recent WHM autoupdate. I've tried things from given article: /usr/bin/php - did not work /usr/local/bin/php - works good now The question is - what changed? Before update simple 'php' worked fine. When I'm checking version of php (php --version) it shows the same version as /usr/bin/php, /usr/local/bin/php Is there a way to globally fix this? Some binding maybe? I have 50+ cron jobs, it would be huge pain to edit those one by one in cpanel.
    0
  • cPanelMichael
    Hello, Could you let us know which path you are using for PHP in the additional cron jobs? For instance, are they all configured to use "/usr/bin/php" instead of "/usr/local/bin/php"? If so, this command would update all instances of "/usr/bin/php" to "/usr/local/bin/php" in the cron jobs for all of your users:
    cp -a /var/spool/cron /var/spool/cron-backup replace "/usr/bin/php" "/usr/local/bin/php" -- /var/spool/cron/*
    Thank you.
    0

Please sign in to leave a comment.