Symfony2上的“生产”环境出错

时间:2022-10-22 18:18:14

I´m currently developing a web site using Symfony2.

我目前正在使用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.

在'dev'环境中,一切正常,但是当我尝试使用FALSE上的DEBUG参数访问系统时(通过禁用调试器调用appKernel的app.php)系统会在我发出“500 Internal Server Error”时抛出尝试加载系统的任何部分。

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

我已经清除了缓存并加热了它,这个错误不断出现。我正在使用Symfony的标准发行版(除了我创建的包之外没有改变任何东西)和这个服务器:Apache / 2.2.17(Win32)mod_ssl / 2.2.17 OpenSSL / 0.9.8o PHP / 5.3.4 mod_perl /2.0.4通过XAMPP安装Perl / v5.10.1

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

如何使生产环境保持调试器禁用?

1 个解决方案

#1


24  

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

在生产环境中,config.yml默认禁用了调试,你可以在日志文件app / logs / prod.log中看到错误(错误等)。

#1


24  

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

在生产环境中,config.yml默认禁用了调试,你可以在日志文件app / logs / prod.log中看到错误(错误等)。