Passenger Issue - Apache

Running in a Linode slice with Ubuntu 10.04 LTS. I get 500 internal server errors.

The Apache log has:

Apache / 2.2.14 (Ubuntu) Configuring Phusion_Passenger / 2.2.7 - resume normal operations

caught sigterm by turning off

* Passenger cannot be initialized due to this error: server spawn server script, '/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/passenger- spawn-server', does not exist. Check if the "PassengerRoot" parameter is set correctly.

But when we run: sudo passenger-install-apache2-module. The passenger does not complain.

On restart, we get: Restart sudo / etc / init.d / apache2 * Restart the apache2 web server [Sat Oct 23 23:58:30 2010] [warn] user_module module already loaded, skipped ... waiting [Sat Oct 23 23 : 58: 31 2010] [warn] module passenger_module is already loaded, skipped ... done.

Any ideas?

Thanks in advance!

+4
source share
3 answers

Try (re) installing your own apache module (after installing the gem)

apt-get install libapache2-mod-passenger 

I think I had the same problem, and after that it worked.

Good luck

+11
source

I solved this before using:

 sudo a2dismod passenger sudo /etc/init.d/apache2 restart 
+8
source

It looks like your configuration file is not working. Have you followed the instructions that follow the installation? He seems to be complaining that you did not add the PassengerRoot directive to the apache configuration. To install a passenger, you need to add several lines to the Apache configuration file manually. On ubuntu installation, this is the apache.conf file: /etc/apache2/apache2.conf

Make sure you add lines

 LoadModule passenger_module /home/[username]/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0/ext/apache2/mod_passenger.so PassengerRoot /home/[username]/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0 PassengerRuby /home/[username]/.rvm/wrappers/ruby-1.9.2-p0/ruby 

It is assumed that you are using RVM. If not, the printout and the end of the installation will give you the correct path.

+1
source

All Articles