gpt4 book ai didi

php - CakePHP 错误 : cake_core_ cache was unable to write 'cake_dev_en-us' on Centos

转载 作者:太空宇宙 更新时间:2023-11-04 10:16:35 27 4
gpt4 key购买 nike

我几乎尝试了所有方法来解决这个问题,但仍然没有用 :(。下面是错误。

`Warning: _cake_core_ cache was unable to write 'cake_dev_cs' to File cache in /var/www/html/orangescrum/lib/Cake/Cache/Cache.php on line 325

Warning: /var/www/html/orangescrum/app/tmp/cache/persistent/ is not writable in /var/www/html/orangescrum/lib/Cake/Cache/Engine/FileEngine.php on line 384

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/orangescrum/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/html/orangescrum/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/orangescrum/app/Config/core.php(292): Cache::config('_cake_core_', Array) #2 /var/www/html/orangescrum/lib/Cake/Core/Configure.php(72): include('/var/www/html/o...') #3 /var/www/html/orangescrum/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/html/orangescrum/app/webroot/index.php(77): include('/var/www/html/o...') #5 {main} thrown in /var/www/html/orangescrum/lib/Cake/Cache/Cache.php on line 181`.

最常见的建议(文件夹 -/var/www/html/orangescrum/... 的权限问题应该使用以下方法解决:

chmod -R 777 /var/www/html/orangescrum

为了确保,有一个权限检查:

[root@hubud0635 orangescrum]# stat -c %a app
777
[root@hubud0635 orangescrum]# cd app
[root@hubud0635 app]# ls -a
. Config Controller index.php Locale Plugin tmp View
.. Console .htaccess Lib Model Test Vendor webroot
[root@hubud0635 app]# stat -c %a tmp
777

缓存中的子文件夹已存在:

[root@hubud0635 tmp]# cd cache
[root@hubud0635 cache]# ls -a
. .. models persistent views

我为应用程序 Orangescrum 创建了一个主机文件。该文件的内容如下。

<VirtualHost *:80>
DocumentRoot /var/www/html/orangescrum
ServerName localhost
ServerAlias localhost
<Directory /var/www/html/orangescrum>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

如果还有其他问题,请问我。非常感谢您!

最佳答案

CentOS 默认启用 SElinux。

sestatus

将显示它是否真的处于事件状态。

如何停用它:

vi /etc/sysconfig/selinux
update line to: SELINUX=disabled
reboot

关于php - CakePHP 错误 : cake_core_ cache was unable to write 'cake_dev_en-us' on Centos,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45892830/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com