Skip to main content

cronjob on php giving a 500 internal error

Comments

5 comments

  • quietFinn
    Something on that server is causing the 500 error and I can't for the life of me figure out what is causing it. Nothing is reported in the logs other than "500 internal server error"

    In what logs? I believe you'd see more than that in /etc/apache2/logs/error_log My 1st guess would problem with permissions.
    0
  • TechBill
    In what logs? I believe you'd see more than that in /etc/apache2/logs/error_log My 1st guess would problem with permissions.

    On this work server, I don't have access to that error log. Could there be a limit number of cron job per cPanel defined by WHM administrator? I never seen that setting in my private host WHM but I never really explored all the options in it either. My first thought would be permission and when I checked, it was set at 755 which I believe is the correct permission setting.
    0
  • TechBill
    Even with file on 644 still give the same error .. On my private server, 755 executes it fine. Is there a setting in WHM that my work server could have enabled to prevent or disallow cron jobs?
    0
  • andrew.n
    You should open a ticket with your hosting provider which has access to the logs and could let you know the exact reason for the error you are seeing.
    0
  • cPanelAnthony
    Andrew's suggestion is great! Could you see if your hosting provider can help with that?
    0

Please sign in to leave a comment.