Error on “production” environment on Symfony2

你说的曾经没有我的故事 提交于 2019-12-23 07:03:20

问题


I´m currently developing a web site using Symfony2.

On 'dev' environment everything works just fine, but when I try to access to the system with the DEBUG parameter on FALSE (trough app.php wich invokes the appKernel with debugger disabled) the system throws a "500 Internal Server Error" when I try to load any section of the system.

I´ve already cleared the cache and warmed it up and this error keeps showing up. I'm working with the standard distribution of Symfony (didn't change anything but the bundle I created) and this server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 installed trough XAMPP

How can I make the production environment work keeping the debugger disabled?


回答1:


The config.yml has disabled debug by default in production enviroment, you can see what was wrong (errors ect.) in log files app/logs/prod.log



来源:https://stackoverflow.com/questions/8934462/error-on-production-environment-on-symfony2

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