简体   繁体   English

在Centos 5.8上安装gitorious(乘客模块)

[英]Installing gitorious on Centos 5.8 (Passenger module)

I am trying to install gitorious on a Centos 5.8 box following this tutorial: http://gitorious.org/gitorious/pages/Rhel_Installation , but right after I install Passenger and add the suggested lines: 我试图在本教程之后在Centos 5.8盒子上安装gitorious: http ://gitorious.org/gitorious/pages/Rhel_Installation,但是在我安装Passenger并添加建议的行之后:

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

to my httpd.conf, apache is unable to start. 到我的httpd.conf,apache无法启动。

The error I'm getting is this: 我得到的错误是这样的:

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Ã]

I have allready tried chmod -R 777 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/ and still get this error. 我已经尝试了chmod -R 777 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/并仍然出现此错误。

Any help will be appreciated!!! 任何帮助将不胜感激!!! Thanks in advance guys!!! 先谢谢你们!

It turns out it didn't have anything to do with gitorious, but with the passenger module instead, the answer was here all along: Why is this permissions error occurring with mod_passenger.so? 事实证明它与gitorious没有任何关系,但是对于乘客模块而言,答案一直在这里: 为什么mod_passenger.so会发生这种权限错误?

This is what I ran to get apache to start: 这就是我为了启动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/

No errors! 没错! Thats whats up! 那是什么了!

This is the first time I work with rails so it got me for a newbie. 这是我第一次使用rails,这让我有了一个新手。

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM