Step 2: obtain your download token

Your download token is needed in order to install Passenger Enterprise. In the Customer Area, find your download token and copy it to your clipboard.

Exhibit of the download token in the Customer Area

From this point on, all commands that you run are supposed to be run on the production server, not on your local computer.

Step 3: install Passenger packages

These commands will install Passenger Enterprise + 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).
Replace YOUR_DOWNLOAD_TOKEN with the download token you obtained in the last step.

Step 4: 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 5: check installation

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