SYmfony 2 apc错误

时间:2012-02-24 08:40:01

标签: php caching symfony apc

我正在使用symfony 2,当我在生产模式下启动我的应用时,我收到此错误

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://noupei.com/

The following error was encountered:

    Zero Sized Reply 

Squid did not receive any data for this request.

Your cache administrator is root. 

现在,当我检查错误日志时,我看到以下内容:

[apc-error] Cannot redeclare class noupei\websitebundle\dependencyinjection\noupeiwebsiteextension in /var/www/Symfony/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php on line 42.

1 个答案:

答案 0 :(得分:0)

打开app.php文件并搜索以下行:

$ kernel = new AppKernel('prod',false);

并更改为

$ kernel = new AppKernel('prod',true);