Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Passenger - Apache

Running in a Linode slice with Ubuntu 10.04 LTS. I am getting a 500 Internal Server Error.

The Apache log has:

Apache/2.2.14 (Ubuntu) Phusion_Passenger/2.2.7 configured -- resuming normal operations

caught SIGTERM, shutting down

* Passenger could not be initialized because of this error: The Passenger spawn server script, '/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/passenger-spawn-server', does not exist. Please check whether the 'PassengerRoot' option is specified correctly.

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

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

Any ideas?

Thanks in advance!

like image 679
rparra Avatar asked Dec 01 '22 09:12

rparra


2 Answers

Try (re)installing the native apache module (after installing the gem)

apt-get install libapache2-mod-passenger

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

Good luck!

like image 195
Iskren Ivov Chernev Avatar answered Dec 04 '22 04:12

Iskren Ivov Chernev


I solved this previously using:

sudo a2dismod passenger
sudo /etc/init.d/apache2 restart
like image 25
Marcos Avatar answered Dec 04 '22 03:12

Marcos