php return 500 error but no error log

后端 未结 12 1331
挽巷
挽巷 2020-11-30 05:29

I am having an issue when I have a php application that is returning an internal server error (500) however nothing is showing up in the error log.

Now I know there

12条回答
  •  孤城傲影
    2020-11-30 05:52

    In the past, I had no error logs in two cases:

    1. The user under which Apache was running had no permissions to modify php_error_log file.
    2. Error 500 occurred because of bad configuration of .htaccess, for example wrong rewrite module settings. In this situation errors are logged to Apache error_log file.

提交回复
热议问题