On this page, we will install Passenger. After installing Passenger we can begin with deploying the app.

Table of contents

Loading...

Step 1: install Passenger packages

These commands will install Passenger + Nginx through Phusion's APT repository.
If you already had Nginx installed, then these commands will upgrade Nginx to Phusion's version (with Passenger compiled in).

Step 2: enable the Passenger Nginx module and restart Nginx

Edit /etc/nginx/nginx.conf and uncomment include /etc/nginx/passenger.conf;. For example, you may see this:

# include /etc/nginx/passenger.conf;

Remove the '#' characters, like this:

include /etc/nginx/passenger.conf;

If you don't see a commented version of include /etc/nginx/passenger.conf; inside nginx.conf, then you need to insert it yourself. Insert it into /etc/nginx/nginx.conf inside the http block. For example:

...
http {
include /etc/nginx/passenger.conf;
...
}

When you are finished with this step, restart Nginx:

$ sudo service nginx restart

Step 3: check installation

After installation, please validate the install by running sudo /usr/bin/passenger-config validate-install. For example: