【发布时间】:2012-03-25 22:30:01
【问题描述】:
我的 symfony 1.4 应用程序的生产环境产生 500 内部服务器错误。
尝试在我的本地机器上重现相同的错误,它基本上会产生 500 内部服务器错误以及以下消息:
500 | Internal Server Error | sfConfigurationException
You must provide a "file" parameter for this logger
at ()
in SF_SYMFONY_LIB_DIR/log/sfFileLogger.class.php line 48 ...
{
if (!isset($options['file']))
{
throw new sfConfigurationException('You must provide a "file" parameter for this logger.');
}
if (isset($options['format']))
访问了我的 apache 错误日志,它指出以下内容:
[client 127.0.0.1] 文件不存在:/Usrs,referer:http://localhost:8080/index.php
有人建议检查 apache rewrite_module 是否启用,访问我的 MAMP/conf/apache 文件夹中的 httpd.conf 文件时,有
LOADMODULE rewrite_module...
并且它没有注释,我推断它已启用。
在我的 index.php 中,我设置了: $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
我在哪里错过了一个技巧?欢迎并感谢您的回应和建设性批评!
谢谢! 帕里贾特
【问题讨论】:
标签: apache symfony-1.4 production-environment