Apache 阿帕奇不会从乘客开始

Apache 阿帕奇不会从乘客开始,apache,centos,passenger,Apache,Centos,Passenger,在httpd.conf上添加ff行之后 LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13 PassengerRuby /usr/local/bin/ruby Apache将不再启动 [root@

在httpd.conf上添加ff行之后

LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13
PassengerRuby /usr/local/bin/ruby
Apache将不再启动

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]
这是从log那里得到的

[Thu Jul 12 11:26:58 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog (/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/agents/PassengerWatchdog): Permission denied (13)
[Thu Jul 12 11:26:58 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 12 11:26:58 2012] [notice] Digest: done
[Thu Jul 12 11:27:13 2012] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Thu Jul 12 11:27:13 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 12 11:31:56 2012] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Thu Jul 12 11:31:56 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 12 11:38:22 2012] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Thu Jul 12 11:38:22 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

请检查/usr/local/lib/ruby/gems/1.9.1/gems/passer-3.0.13/agents/passengerwatchlog上的文件权限,并确保您的apache用户具有运行该文件的权限。

我不是SELinux方面的专家,但这就是问题的原因。(作为apache用户对看门狗进程的权限和访问权)

试试看这里: