Centos 6.4 - 无法从共享对象映射段:权限被拒绝 [英] Centos 6.4 - Failed to map segment from shared object: Permission denied

查看:24
本文介绍了Centos 6.4 - 无法从共享对象映射段:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试安装 Phusion Passenger.安装成功,但在执行 service httpd start

Hi, I am trying to install Phusion Passenger. Installation was successful but I am getting the following error on doing service httpd start

启动 httpd:httpd:/etc/httpd/conf/httpd.conf 的第 221 行语法错误:/etc/httpd/conf.d/passenger.conf 的第 1 行语法错误:无法加载/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so 进入服务器:/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so:无法从共享对象映射段:权限被拒绝 [FAILED]

推荐答案

您可以参考以下链接获取 Phusion Passenger 安装指南.http://www.modrails.com/documentation/Users%20guide%20Apache.html#安装

You may refer the following link for Phusion Passenger installation guide. http://www.modrails.com/documentation/Users%20guide%20Apache.html#installation

或者在root中执行这个命令来改变httpd_sys_script_exec_t"的安全上下文,允许Apache执行.

Or else execute this command in root to change the security context of "httpd_sys_script_exec_t" which allows Apache to execute.

chcon -R -h -t httpd_sys_script_exec_t/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so

这篇关于Centos 6.4 - 无法从共享对象映射段:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆