1

After adding the ff lines on httpd.conf

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 won't start anymore

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]

Got this from 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)
Lee
  • 768
  • 1
  • 11
  • 29

2 Answers2

0

Check the file permission on /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.13/agents/PassengerWatchdog and make sure that your apache user has permission to run it.

Jenny D
  • 1,225
  • 9
  • 20
0

I'm not an expert in SELinux, but that's the cause of your problem. (Permissions and access to the watchdog process as the apache user).

Try looking here: Passenger/mod_rails fails to initialize in Fedora 12 when starting Apache

Community
  • 1
  • 1
James Boutcher
  • 2,593
  • 1
  • 25
  • 37