就在昨晚折腾 Permission denied: access to * denied
问题时,还有就是 ZendGuardLoader
无法安装,最开始怀疑是不是 XCache Zend Guard Loader Zend OPcache
在 php.ini
中顺序问题,结果调整后不是,查看日志:
Failed loading /usr/lib64/php/modules/ZendGuardLoader.so: /usr/lib64/php/modules/ZendGuardLoader.so: cannot enable executable stack as shared object requires: Permission denied
没有权限,为了把客户的WordPress缓存优化做到极致,不得不尝试各种方法,用 Chown 改变 apache或 root 权限,chmod 增加写入权限,还是不行,后来终于找到原因了,SELinux 的原因,需要把SELinux关闭,然后重启apache。
vi /etc/selinux/config
- 将
SELINUX=enforcing
改为#SELINUX=enforcing
/usr/sbin/setenforce 0
service httpd restart
这里虽然是安装 ZendGuardLoader.so 的时候发现的cannot enable executable stack as shared object requires: Permission denied的问题,网上搜索了很多,发现很多人安装其他软件的时候也会遇到,我建议也尝试将SELinux关闭后再安装。