Check out Brightbox Cloud - our new cloud service with £20 free trial credit: click here
 

Phusion Passenger / mod_rails

We maintain Ubuntu packages for Phusion Passenger - the Apache 'mod_rails' hosting solution written by the team at Phusion.

Apache

Brightbox Passenger APT Repository

Our packages are now hosted on Launchpad. It's focused just on Passenger, so doesn't have our other packages.

You can add our repository very simply:

sudo apt-add-repository ppa:brightbox/passenger
sudo apt-get update

Ubuntu 8.04 Hardy

If you're on the older Ubuntu 8.04 Hardy release, the apt-add-repository command isn't available so you have to install the repository and the key by hand:

sudo sh -c 'echo "deb http://ppa.launchpad.net/brightbox/passenger/ubuntu hardy main" > /etc/apt/sources.list.d/brightbox-passenger.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3173AA6
sudo apt-get update

Installation

sudo apt-get install libapache2-mod-passenger

And reload apache and you're ready to go.

NGINX

We have a separate repository for the nginx packages:

sudo apt-add-repository ppa:brightbox/passenger-nginx
sudo apt-get update

Then installed nginx:

sudo apt-get install nginx-full

You’ll then need to enable the Passenger module, which can be usually done like this:

cat <<EOF > /etc/nginx/conf.d/passenger.conf
passenger_root /usr/lib/phusion-passenger;
EOF

Ruby Enterprise Edition

To take full advantage of Passenger, you should consider installing our Ruby Enterprise Edition packages.

PHP Compatibility

Whilst Passenger works perfectly with the Apache prefork mpm, we recommend using the event mpm. The event mpm is incompatible with mod_php, but you can very easily run PHP in FastCGI mode alongside Passenger. See our PHP docs for more information.

docs/phusion-passenger.txt · Last modified: 2012/04/13 12:38 by johnleach