我有一個Centos 6-Apache-Passenger-Ruby的組合。按照說明here進行安裝。我也有whm,這意味着必須通過點擊來更改httpd.conf。雖然試圖包括/etc/httpd/conf.d/*.conf
,告訴我,因爲有一個錯誤:Cannot load /usr/local/apache/modules/mod_passenger.so into server.
mod_passenger.so,yum安裝在哪裏?
問題是這條線在/etc/httpd/conf.d/passenger.conf
:
LoadModule passenger_module modules/mod_passenger.so
最後判決的一部分,應該指向實際mod_passenger.so
,是不是裏面/etc/httpd/modules
。問題是它在哪裏?
我安裝了通過yum,這意味着:
sudo yum install -y epel-release pygpgme curl
sudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
sudo yum install -y mod_passenger
當我運行sudo /usr/bin/passenger-config validate-install
,不要緊在安裝Apache(已運行它們),說以下內容:
You did not specify 'LoadModule passenger_module' in any of your
Apache configuration files. This means that Phusion Passenger
for Apache is not installed or not active. Please run the
Phusion Passenger Apache module installer:
/usr/bin/ruby /usr/bin/passenger-install-apache2-module --apxs2=/usr/bin/apxs
我運行安裝程序,說一切正常,但從來沒有工作...
我知道我必須指定位置的位置是這樣的:
LoadModule passenger_module /path/to/the/module
但是我找不到它。找到mod_passenger.so不起作用。我不能去.rvm的位置,因爲不在那裏。乘客不是安裝爲寶石,但通過百勝...
任何詭計找到哪裏乘客定位mod_passenger.so
?謝謝。
我找到了解決方案find/-type f -name mod_passenger.so ...感謝http://serverfault.com/questions/139790/apache2-server-does-not-start-cannot-pen-shared-object-file – Dieglock
'find'很不錯和徹底的,但它比我下面顯示的'rpm'解決方案消耗更多的I/O,CPU和時鐘時間。 – chicks