小编MJ *_*nto的帖子

无法写入缓存symfony2

RuntimeException in ClassCollectionLoader.php line 239: 

Failed to write cache file "/var/www/fareast/app/cache/dev/classes.php".
Run Code Online (Sandbox Code Playgroud)

我在symfony2中运行项目时出现此错误.我有nginx作为我的web服务器,centOS 7作为我的操作系统.我尝试手动删除缓存文件夹

php app/console cache:clear
Run Code Online (Sandbox Code Playgroud)

然后我做了一个不好的做法app/cache和app/logs

chmod -R 777 
Run Code Online (Sandbox Code Playgroud)

但我有同样的错误./var/log/nginx/error.log也是空的.你推荐其他解决方案吗?或者我是否必须为缓存安装一些php5库?

caching nginx symfony

2
推荐指数
1
解决办法
9122
查看次数

标签 统计

caching ×1

nginx ×1

symfony ×1