How to debug 500 Error in Symfony 2

梦想与她 提交于 2019-11-30 08:23:45

First, look at the logs in app/logs depending on your environment — dev.log for development, prod.log for production, etc.

If the code crashes before Symfony has a chance to run, check the logs of your web server — e.g. nginx.

If you have a symfony flex project, it is also possible that you forgot to install monolog ;) Run:

composer req log

An even better way to improve your Symfony debugging process is to have Monit monitor your Symfony and Apache logs for any errors and send you emails whenever something bad happens: http://intelligentbee.com/blog/2016/01/12/how-to-monitor-symfony-and-apache-logs-with-mmonit/

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