php return 500 error but no error log

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

    Copy and paste the following into a new .htaccess file and place it on your website's root folder :

    php_flag  display_errors                  on
    php_flag  display_startup_errors          on
    

    Errors will be shown directly in your page.

    That's the best way to debug quickly but don't use it for long time because it could be a security breach.

提交回复
热议问题