How do I restart phusion passenger?

Tony picture Tony · Oct 22, 2010 · Viewed 9.7k times · Source
rails@george:/srv/fsg_distro$ sudo passenger-status
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux
# cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux
# /usr/bin/ruby '/usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/extconf.rb'
checking for alloca.h... yes
checking for ruby/io.h... no
creating Makefile
# make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby -DHAVE_ALLOCA_H    -fPIC -g -O2   -g  -c /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/passenger_native_support.c
gcc -shared -o passenger_native_support.so passenger_native_support.o -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic    
ERROR: Phusion Passenger doesn't seem to be running.

My set up was working just fine but for some reason the last time I deployed it killed phusion passenger and I'm not sure how to restart it. Any ideas?

I am running passenger as an apache module (mod rails). I have tried restarting apache and rebooting the server with no luck.

Thanks

Answer

pjmorse picture pjmorse · Oct 22, 2010

This thread and the initial error you're getting from passenger-status suggest something's wrong with your Passenger installation - missing libraries which need to be compiled. Is reinstalling Passenger a realistic troubleshooting step here?

(edited to actually suggest something useful :)