2012-06-11 96 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工作,所以它讓我爲一個新手。

希望這會有所幫助!