Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a sinatra app on passenger, and trying to hook it to nginx. The relevant part of my config looks like:

http {
    passenger_root /path/to/gem; #this is a valid path
    passenger_ruby /path/to/ruby; #ditto


    server {
        listen 80;
        root /path/to/stuff/public;
        passenger_enabled on;

Whenever I start nginx however, I get:

Starting nginx: [alert]: Phusion Passenger is disabled becasue the 'passenger_root' option is not set. Please set this option if you want to enable Phusion Passenger.

What am I missing here? Thanks!

share|improve this question
up vote 0 down vote accepted

I had the same issue as lowgain... using rvm + nginx, I installed passenger, which then recompiled nginx to include passenger stuff. Unfortunately, the old version was at /etc/nginx and the new version at /opt/nginx.

I had to remove nginx via apt:

sudo apt-get remove nginx

I also had to replace /etc/init.d/nginx with a new version. Once I was done with all that, it worked.

share|improve this answer

I had two installs of nginx after I rebuilt nginx with passenger support - the bash script was still reading from the old config!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.