Skip to main content

Logging Errors on Different Sites

Comments

5 comments

  • cPanelMichael
    Hello :) You should see the "500" error message in the Apache error log: /usr/local/apache/logs/error_log Try uploading a PHP script that will produce a PHP error and see if it's logged to the error_log file within your account. Thank you.
    0
  • tomjung
    Hi! Thanks for the reply! I ran the page that is throwing the error (cart.php) and then opened up the error_log as instructed. There is no 500 error message in there for the domain that I am working on. It has a few errors from my other domain though... Any idea why I'm not getting them from the domain I'm working on?
    0
  • cPanelMichael
    Right, a "500" error message is an Apache error, not a PHP error. What I am saying is that you should upload a script that generates a PHP error. [url=http://php.net/manual/en/function.trigger-error.php]PHP: trigger_error - Manual Thank you.
    0
  • tomjung
    Oh! Got ya. That pointed me in the right direction. The only things that were showing in my log were: File does not exist: Directory index forbidden by Options directive: On my other sites it will log php syntax errors... even though I had log_errors on in my php.ini file, something else must have been messed up. I copied the php.ini from my working site over and it is logging the errors correctly now. Thanks for the help!
    0
  • cPanelMichael
    I am happy to see the issue has been addressed. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.