燕之庐网站建设 - 优质网站设计公司

linux

2010/01/26

CentOS: cannot restore segment prot after reloc

Tags:

最近在研究CentOS,用xampp装一套集成的LAMP环境,结果在启动Apache的时候报错:

cannot restore segment prot after reloc: Permission denied

原因是 modules/mod_perl.so 不能加载。

查了一下可能是SELINUX的问题,有一个解决方法:

用 chcon -t texrel_shlib_t 命令修改文件属性。

例如我遇到的情况:

shell> chcon -t texrel_shlib_t /opt/lampp/modules/mod_perl.so

然后立刻就好啦~~~

http://www.yanzhilu.com

请您留下评论

本文评论的 RSS feed。 引用消息(Trackback) URL

您必须 登录 才能发表评论。