使用Bolt cms,我在每个页面上都得到了这个错误:
Error: Uncaught exception 'Symfony\Component\HttpKernel\Exception\HttpException' with message
'Error opening file Could not lock app/cache/config_cache.php for writing!
Try logging in with your ftp-client and check to see if it is chmodded to be readable by the webuser (ie: 777 or 766, depending on the setup of your server).
Current path: /chroot/home/alumctr/[intentionally hidden]/html.' in vendor/silex/silex/src/Silex/Application.php:378
Stack trace:
#0 src/Library.php(319): Silex\Application->abort(401, 'Error opening f...')
#1 src/Config.php(753): Bolt\Library::saveSerialize('/chroot/home/al...', Array)
#2 src/Config.php(44): Bolt\Config->saveCache()
#3 src
File: vendor/silex/silex/src/Silex/Application.php
Line: 378缓存文件夹为空,权限为777。
这个错误可能来自哪里?
谢谢大家
发布于 2015-05-30 04:45:02
这里的问题是chroot的设置方式。
错误是由一个文件操作引起的,该文件操作需要lock访问权限才能写出该文件,这与PHP本身是分开的。
最初,试着在chroot监狱外运行你的web设置,让它正常工作,然后从那里逐步完成。
发布于 2016-09-29 22:34:43
https://stackoverflow.com/questions/30537195
复制相似问题