我在每个页面上都出现此错误,使用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权限。
这个错误可以从哪里来?
谢谢大家
答案 0 :(得分:0)
此处的问题是您chroot
的设置方式。
引起错误的是一个文件操作,需要lock
访问来写出该文件,并且与PHP本身是分开的。
最初尝试在chroot
监狱之外运行您的网络设置以使其正常工作并从那里逐步完成。
答案 1 :(得分:0)