I'm trying to install Passenger (mod_rails) on Apache2 server by using the command
1. gem install passenger
2. passenger-install-apache2-module
Passenger gets installed and i added the below line to my configuration file
LoadModule passenger_module /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/gems/pass enger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
PassengerRuby /home/ec2-user/.rvm/wrappers/ruby-1.9.2-p290/ruby
Once i finished all those steps and i started accessing of Apache2 server.
I got the following Passenger error:
[error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its exec utable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. Thi s probably means that your Phusion Passenger installation is broken or incomplet e, or that your 'PassengerRoot' directive is set to the wrong value. Please rein stall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is appl icable.
After getting this error, i re-installed Passenger
once again with those steps but still this problem remains the same.
Appreciate your help in resolving this issue.
First, let us make sure Watchdog is present on the system by running:
find / -name PassengerWatchdog
Then if it's an RVM issue, you can try a workaround of symliking Passenger's root to the location mentioned by apache:
On another hand, are you sure running
passenger-install-apache2-module
didn't raise any errors/warnings? including its output to the question could be helpfulI'm using the same config in Ubuntu and CentOS. Any chance there is an existing Passenger installation on the system that is interfering. If so, delete it and restart Apache.