php return 500 error but no error log

后端 未结 12 1330
挽巷
挽巷 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:46

    Here is another reason why errors might not be visible:

    I had the same issue. In my case, I had copied the source from a production environment. Hence the ENVIRONMENT variable defined in index.php was set to 'production'. This caused error_reporting to be set to 0 (no logging). Just set it to 'development' and you should start seeing error messages in apache log.

    Turned out the 500 was due to a semi colon missing in database config :-)

提交回复
热议问题