How to debug “internal server error”?

余生颓废 提交于 2019-12-01 18:34:16

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.

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