ngixn 无法加载zend [Linux]

分类:服务器| 发布:camnprbubuol| 查看: | 发表时间:2011/9/21

Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so: /usr/local/zend/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied

动态链接库加载出错:cannot restore segment prot after reloc: Permission denied

执行:/usr/local/php/sbin/php-fpm restart

提示:

Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
done

原来这是SELinux搞的鬼,解决办法:

关闭SELINX,执行:/usr/sbin/setenforce 0

禁止掉SELinux
更改/etc/sysconfig/selinux 文件的内容为 SELINUX=disabled

当然不想关闭SWlinux,我们可以这样:chcon -t textrel_shlib_t /usr/local/zend/ZendOptimizer.so

365据说看到好文章不转的人,服务器容易宕机
原创文章如转载,请注明:转载自郑州网建-前端开发 http://camnpr.com/
本文链接:http://camnpr.com/server/438.html