`
avalon0406
  • 浏览: 7183 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

cannot restore segment prot after reloc: Permission denied

阅读更多
环境:Linux localhost.localdomain 2.6.18-92.el5PAE
apache2+php4整合完毕后启动apache 时报错
root@localhost fgn]# /usr/local/apache/bin/apachectl restart
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so: cannot restore segment prot after reloc: Permission denied
解决:
这是因为SELINUX的问题,需要关闭SELINX,执行:/usr/sbin/setenforce 0
引用:


When packaging an application on RHEL or CentOS, you may receive the following error:

cannot restore segment prot after reloc: Permission deniedThis is likely due the the SE Linux setting being set to "enforcing"
.
To Temporarily disable enforcement on a running system

/usr/sbin/setenforce 0
To permanently disable enforcement during a system startup
change "enforcing" to "disabled" in ''/etc/selinux/config'' and reboot.
.
By default, CentOS 5 has the SE Linux feature set to "enforcing". We are looking into ways to removing these steps.
分享到:
评论

相关推荐

    jre-7u5-linux-i586.tar.gz

    error :/usr/lib/libjvm.so: cannot restore segment prot after reloc: Permission denied . use the command: chcon -t textrel_shlib_t /usr/lib/libjvm.so 这是官方的提示 简单的做法是 setenforce 0 ok,java...

    sqlplus libclntsh.so.11.1 Permission denied 解决方法

    在尝试运行 SQL Plus 工具时,可能会遇到一个错误提示:“cannot restore segment prot after reloc: Permission denied”,这通常发生在尝试加载 Oracle 的客户端库 `libclntsh.so.11.1` 时。此错误表明系统拒绝了...

    Linux 5.5 +oracle 11gR2 sqlplus error

    具体错误信息为:“sqlplus:error while loading shared libraries:/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1:cannot restore segment prot after reloc: Permission denied”。本篇文章将...

    fedora校园上网指导

    4. 如果出现“./xrgsu: error while loading shared libraries: /usr/lib/libpcap.so.0.6.2: cannot restore segment prot after reloc: Permission denied”的问题,需要编辑/etc/sysconfig/selinux文件,将...

    Oracle11g客户端安装与配置(在Linux系统上).pdf

    - 如果出现“sqlplus: error while loading shared libraries: /usr/local/oracle/libnnz11.so: cannot restore segment prot after reloc: Permission denied”的错误,可以尝试将SELinux设置为Permissive模式: ...

    linux错误乱码的具体解决方法

    最后,文章提到了安装 Zend Server CE for Linux 时遇到的问题,即`cannot restore segment prot after reloc: permission denied`错误。这通常与SELinux策略有关。有两种解决方法:一是临时关闭SELinux(风险较高)...

    linux安装myeclipse教程

    如文档中提到的“cannot restore segment prot after reloc: Permission denied”错误,就是由于Linux的安全策略SELinux阻止了JVM加载必要的库文件。通过使用`chcon`命令改变文件的安全上下文,可以解决这类权限问题...

    webstorm linux5上安装失败

    - 如果出现权限错误,例如 “cannot restore segment prot after reloc: Permission denied”,则需要进一步调整 SELinux 设置。 ##### 步骤 3: 配置 SELinux 1. **编辑 SELinux 配置文件**: - 使用文本编辑器...

    Hadoop学习文档

    - **问题描述**: 安装完成后,可能会遇到权限相关的问题,例如`cannot restore segment prot after reloc: Permission denied`。 - **解决方案**: 1. 编辑`/etc/selinux/config`文件,将`SELINUX=enforcing`修改为`...

    freeradius mysql搭建

    - 如果启动失败并提示权限问题,如`error while loading shared libraries: cannot restore segment prot after reloc: Permission denied`,则需要修改SELinux配置。具体操作为将`/etc/selinux/config`文件中的`...

Global site tag (gtag.js) - Google Analytics