php return 500 error but no error log

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

    If you still have 500 error and no logs you can try to execute from command line:

    php -f file.php
    

    it will not work exactly like in a browser (from server) but if there is syntax error in your code, you will see error message in console.

提交回复
热议问题