“生产”错误Symfony2上的环境 [英] Error on "production" environment on Symfony2

查看:65
本文介绍了“生产”错误Symfony2上的环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Symfony2开发一个网站。

I´m currently developing a web site using Symfony2.

在开发环境中,一切正常,但是当我尝试使用<$ c $访问系统时 FALSE 上的c> DEBUG 参数(通过app.php通过禁用调试器调用appKernel),系统抛出 500内部服务器错误当我尝试加载系统的任何部分时。

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 which invokes the appKernel with debugger disabled) the system throws a "500 Internal Server Error" when I try to load any section of the system.

我已经清除了缓存并对其进行了预热,并且此错误不断出现。
我正在使用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

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?

推荐答案

默认情况下,config.yml在生产环境中已禁用调试,您可以看到出了什么问题(错误等) 。)在日志文件app / logs / prod.log

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

这篇关于“生产”错误Symfony2上的环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆