Centos 6.4 - 无法从共享对象映射段:权限被拒绝

人气:149 发布:2022-10-16 标签: centos passenger

问题描述

您好,我正在尝试安装 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

184