How to debug “internal server error”?

你说的曾经没有我的故事 提交于 2019-12-31 00:28:20

问题


When you do changes to .htaccess files and something is wrong with it you get "Internal server error". That doesn't help me. How can I find out what's the actual error?


回答1:


Error cause should be saved in server logs. Where it's exactly depends on your server and settings.

Eg. in apache2 log file is defined in ErrorLog in your config or in virtual host.




回答2:


In the case it is a syntax error, enabling debug may not help you. If you can, run built-in php syntax checker to ensure your file is free from errors:

>> php -l path/to/your/file.php


来源:https://stackoverflow.com/questions/19455322/how-to-debug-internal-server-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!