2012-06-11 79 views
3

我想下面这个教程上一个CentOS 5.8箱安装gitorious:http://gitorious.org/gitorious/pages/Rhel_Installation,但我安装乘客和建议行添加之后:在CentOS 5.8(乘客模块)安装gitorious

LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so 
PassengerRoot /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11 
PassengerRuby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby 

我httpd.conf,apache无法启动。

我得到的错误是这样的:

Iniciando httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-3.0.12/ext/apache2/mod_passenger.so into server: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-3.0.12/ext/apache2/mod_passenger.so: failed to map segment from shared object: Permission denied 
                 [FALLÃ] 

我已经试过媒体链接搭配chmod -R 777 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/,仍然得到这个错误。

任何帮助将不胜感激!在此先感谢球员!

回答

1

事实证明,它没有任何与gitorious,但与乘客模块代替,得到的答复是这里所有沿:Why is this permissions error occurring with mod_passenger.so?

这是我跑到获得Apache启动:

chcon -R -h -t httpd_sys_content_t /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ 

没有错误!多数民众赞成最新!

这是我第一次使用rails工作,所以它让我为一个新手。

希望这会有所帮助!