首页 > √linux > cannot restore segment prot after reloc: Permission denied
viyin.net

cannot restore segment prot after reloc: Permission denied

2009年12月17日 发表评论 阅读评论

[root@localhost sbin]# ./php-fpm restart
Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/zend/:  /usr/local/zend/: cannot restore segment prot after reloc: Permission denied
 done

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

解决办法:

关闭SELINX,执行: /usr/sbin/setenforce 0 (立刻生效不用重启)

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

[root@localhost sbin]# ./php-fpm restart
Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so:  /usr/local/zend/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
 done
[root@localhost sbin]# /usr/sbin/setenforce 0
[root@localhost sbin]# ./php-fpm restart    
Shutting down php_fpm . done
Starting php_fpm  done
[root@localhost sbin]# vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted – Only targeted network daemons are protected.
#       strict – Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
“/etc/sysconfig/selinux” 13L, 511C written

viyin.net
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.