Update: this is the original announcement for our APT repository. For the latest instructions, please visit the download page.

We are pleased to announce the availability of the official Phusion Passenger APT repository. This APT repository contains Phusion Passenger packages for multiple versions of Debian and Ubuntu. These packages are automatically built by our build server after we push out a source release, and thus are always up to date with the official source releases. Phusion Passenger Enterprise is also packaged.

The repository even includes an up-to-date version of Nginx (1.4.2 at the time of writing), compiled with Phusion Passenger support. Even if you do not use Phusion Passenger, this repository is an excellent way to get the latest version of Nginx. This Nginx package works even if Phusion Passenger is not installed. We will regularly update the Nginx package so that it stays up-to-date with upstream Nginx releases.

Distributions and architectures

Packages are built for x86 and x86_64. Currently supported distributions are:

Ubuntu 10.04 “Lucid”

Ubuntu 12.04 “Precise”

Ubuntu 13.04 “Raring”

Debian 6 “Squeeze”

Debian 7 “Wheezy”

Our policy is to support all Ubuntu LTS releases that are still supported by Canonical, plus the latest non-LTS Ubuntu release, plus all Debian releases that are still supported by Debian.

Installing packages

Open source

Then edit /etc/nginx/nginx.conf, and uncomment passenger_root and passenger_ruby. Finally, run sudo service nginx restart.

To install Phusion Passenger for Apache:

sudo apt-get install libapache2-mod-passenger

To install Phusion Passenger Standalone:

sudo apt-get install passenger

Enterprise

Before installing packages, download your license key from the Customer Area and save it as /etc/passenger-enterprise-license.

To install Phusion Passenger for Nginx:

sudo apt-get install nginx-full passenger-enterprise

Then edit /etc/nginx/nginx.conf, and uncomment passenger_root and passenger_ruby. Finally, run sudo service nginx restart.

To install Phusion Passenger for Apache:

sudo apt-get install libapache2-mod-passenger-enterprise

To install Phusion Passenger Standalone:

sudo apt-get install passenger-enterprise

Credits

Special thanks go to John Leach from Brightbox for helping us. John has been maintaining third-party Ubuntu packages for Phusion Passenger for years. It is with his help and knowledge of Debian packaging that we were able to setup this official APT repository. oss-binaries.phusionpassenger.com is hosted on a server by Brightbox.

Are you sure the ‘passenger’ package has a requirement like that? dpkg-query -p passenger tells me this:

Depends: …, libruby1.8 (>= 1.8.7.352)

Gabe Kopley

Hey cool packages! There is a subtle bug (somewhere), when using Ubuntu 12.04, where the symlink to enable the default nginx welcome page is broken. I use this as a sanity check and it took me a few minutes to debug 🙁

I followed the steps provided here in the post, but I sudo service nginx restart (or stop/start) apparently does nothing at all (and returns with 0 exit code). The only way to start nginx after installing via the package is via “sudo nginx”. I’m on Ubuntu precise.

If you google around, you find some posts about that you manually have to create files in /etc/init.d/ but I think they predate this post and the availability of ready-to-use Ubuntu packages.

Is there a possibility of seeing a development PPA? I would love to see nginx 1.5.7 with SPDY, I don’t know if this is something I could help with

Niels

Thanks for your great work. This eases nginx and passenger updates a lot!

I would really love, if passenger would respect the nginx setting “server_tokens off”. So it wouldn’t advertise the version number in every response. In addition i see the “X-Powered-By” setting as a duplicate, because it’s already added to the “Server” section.

“Phusion” and “Phusion Passenger” are registered trademarks of Phusion. “Rails”, “Ruby on Rails” and the Rails logo are registered trademarks of David Heinemeier Hansson. All other trademarks are property of their respective owners.