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

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

问题描述

您好,我想安装Phusion Passenger。安装成功,但我在服务httpd开始

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#安装

或者在root中执行此命令以更改允许Apache执行的httpd_sys_script_exec_t的安全上下文。

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天全站免登陆