Phusion white papers Phusion overview

Phusion Blog

Phusion Passenger 3.0.9 released

By Hongli Lai on September 4th, 2011

Phusion Passenger is an Apache and Nginx module for deploying Ruby web applications. It has a strong focus on ease of use, stability and performance. Phusion Passenger is built on top of tried-and-true, battle-hardened Unix technologies, yet at the same time introduces innovations not found in most traditional Unix servers. Since version 3.0 it can also run standalone without an external web server, making it not only easier for first-time users but also ideal on development environments.

Recent changes

Phusion Passenger is under constant maintenance and development. We are pleased to announce Phusion Passenger version 3.0.9. This is a bug fix release.

  • [Nginx] Fixed a NULL pointer crash that occurs on HTTP/1.0 requests when the Host header isn’t given.
  • Fixed deprecation warnings on RubyGems >= 1.6.
  • Improved Union Station support stability.

How do I upgrade to 3.0.9?

Via a gem

First install the gem with the following command:

gem install passenger

If you’re using Phusion Passenger for Apache or for Nginx, then re-run the Apache or Nginx module installer, whichever is appropriate:

passenger-install-apache2-module
passenger-install-nginx-module

At the end the installer will tell you to paste a configuration snippet into your web server config file. Replace the old snippet that you already had with this new one.

Phusion Passenger Standalone users don’t need to run anything else. Whenever you type

passenger start

it will automatically upgrade itself.

Via Ubuntu packages

John Leach from Brightbox has kindly provided Ubuntu packages for Phusion Passenger. The package is available from the Brightbox repository which you can find at:

http://apt.brightbox.net

Add the following line to the Third Party Software Sources:

deb http://apt.brightbox.net hardy main

(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run ‘apt-get update’).

Once you’ve done this then you can install Phusion Passenger by running:

sudo apt-get install libapache2-mod-passenger

-or-

sudo apt-get install nginx-brightbox

(Note that John is currently packaging 3.0.9, so it might take a while before this release shows up in the apt repository.)

Via RedHat/CentOS packages

YUM repositories with RPMs are maintained by Erik Ogan and Stealthy Monkeys Consulting. Please note that Erik is currently packaging 3.0.9, so it might take a while before this release shows up in the yum repositories.

Step 1: install the release package

The easiest way to install Phusion Passenger and keep it up to date is to install the passenger-release package from the main repository:

Fedora Core 15:

yum install http://passenger.stealthymonkeys.com/fedora/15/passenger-release.noarch.rpm

Fedora Core 14:

yum install http://passenger.stealthymonkeys.com/fedora/14/passenger-release.noarch.rpm

RHEL 5 / CentOS 5 / ScientificLinux 5:
(Note: these packages depend on EPEL.)

rpm -Uvh http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm

RHEL 6 / CentOS 6 / ScientificLinux 6:

yum install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm

Step 2: use Yum

From there you can use Yum to install packages. For example, try one of these:

yum install nginx-passenger

or

yum install mod_passenger

or

yum install passenger-standalone

Building your own packages

There are instructions for building your own packages and Yum repositories in the rpm directory ReadMe within the GitHub repository.

Final

Phusion Passenger is provided to the community for free. If you like Phusion Passenger, please consider sending us a donation. Thank you!

  • Irfan

    I run yum install mod_passenger and got the following error, is it possible to help me kindly I am badly in need of help

    yum install mod_passenger
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * passenger: mirror.hmdc.harvard.edu
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package mod_passenger.x86_64 1:3.0.8-1.el5 set to be updated
    –> Processing Dependency: rubygem-passenger-native-libs = 1:3.0.8-1.el5 for package: mod_passenger
    –> Processing Dependency: httpd for package: mod_passenger
    –> Finished Dependency Resolution
    1:mod_passenger-3.0.8-1.el5.x86_64 from passenger has depsolving problems
    –> Missing Dependency: httpd is needed by package 1:mod_passenger-3.0.8-1.el5.x86_64 (passenger)
    1:mod_passenger-3.0.8-1.el5.x86_64 from passenger has depsolving problems
    –> Missing Dependency: rubygem-passenger-native-libs = 1:3.0.8-1.el5 is needed by package 1:mod_passenger-3.0.8-1.el5.x86_64 (passenger)
    Error: Missing Dependency: rubygem-passenger-native-libs = 1:3.0.8-1.el5 is needed by package 1:mod_passenger-3.0.8-1.el5.x86_64 (passenger)
    Error: Missing Dependency: httpd is needed by package 1:mod_passenger-3.0.8-1.el5.x86_64 (passenger)
    You could try using –skip-broken to work around the problem
    You could try running: package-cleanup –problems
    package-cleanup –dupes
    rpm -Va –nofiles –nodigest
    The program package-cleanup is found in the yum-utils package.

  • http://www.jux.com/ Tim

    The download source link at http://www.modrails.com/install.html still points to version 3.0.8

  • http://temporadalivre.com Felipe

    Guys, I’m having tons of erros like this in my logs, and when browsing my site I get a 502 nginx error in the browser every now and then. All the forums tell me it’s Passenger’s fault and that there’s no fix avaliable … can u guys give us some light ? I’m running 3.0.9.

    2011/10/11 04:45:48 [error] 20980#0: *1286871 upstream prematurely closed connection while reading response header from upstream,

  • Tim Broad

    I am having trouble with this command. Passenger is looking in /usr/bin for ruby. ruby is actually installed in /usr/local/bin. Is there a way to indicate this to passenger? Any help would be greatly appreciated.

    [root@autodev19 ad19]# yum install mod_passenger
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package mod_passenger.x86_64 1:3.0.12-1.el5.centos set to be updated
    –> Processing Dependency: rubygem-passenger-native-libs = 1:3.0.12-1.el5.centos for package: mod_passenger
    –> Running transaction check
    —> Package rubygem-passenger-native-libs.x86_64 1:3.0.12-1.el5.centos_1.8.5 set to be updated
    –> Processing Dependency: ruby = 1.8.5 for package: rubygem-passenger-native-libs
    –> Processing Dependency: rubygem-passenger-native = 1:3.0.12-1.el5.centos for package: rubygem-passenger-native-libs
    –> Processing Dependency: libruby.so.1.8()(64bit) for package: rubygem-passenger-native-libs
    –> Running transaction check
    —> Package rubygem-passenger-native.x86_64 1:3.0.12-1.el5.centos set to be updated
    –> Processing Dependency: rubygem-passenger = 1:3.0.12-1.el5.centos for package: rubygem-passenger-native
    —> Package rubygem-passenger-native-libs.x86_64 1:3.0.12-1.el5.centos_1.8.5 set to be updated
    –> Processing Dependency: ruby = 1.8.5 for package: rubygem-passenger-native-libs
    –> Processing Dependency: libruby.so.1.8()(64bit) for package: rubygem-passenger-native-libs
    –> Running transaction check
    —> Package rubygem-passenger.x86_64 1:3.0.12-1.el5.centos set to be updated
    –> Processing Dependency: rubygem(fastthread) >= 1.0.1 for package: rubygem-passenger
    –> Processing Dependency: rubygem(daemon_controller) >= 0.2.5 for package: rubygem-passenger
    –> Processing Dependency: rubygem(rake) >= 0.8.1 for package: rubygem-passenger
    –> Processing Dependency: rubygems for package: rubygem-passenger
    –> Processing Dependency: /usr/bin/ruby for package: rubygem-passenger
    –> Processing Dependency: rubygem(rack) for package: rubygem-passenger
    —> Package rubygem-passenger-native-libs.x86_64 1:3.0.12-1.el5.centos_1.8.5 set to be updated
    –> Processing Dependency: ruby = 1.8.5 for package: rubygem-passenger-native-libs
    –> Processing Dependency: libruby.so.1.8()(64bit) for package: rubygem-passenger-native-libs
    –> Running transaction check
    —> Package rubygem-daemon_controller.noarch 0:0.2.5-1 set to be updated
    –> Processing Dependency: rubygems for package: rubygem-daemon_controller
    —> Package rubygem-passenger.x86_64 1:3.0.12-1.el5.centos set to be updated
    –> Processing Dependency: rubygem(fastthread) >= 1.0.1 for package: rubygem-passenger
    –> Processing Dependency: rubygem(rake) >= 0.8.1 for package: rubygem-passenger
    –> Processing Dependency: rubygems for package: rubygem-passenger
    –> Processing Dependency: /usr/bin/ruby for package: rubygem-passenger
    –> Processing Dependency: rubygem(rack) for package: rubygem-passenger
    —> Package rubygem-passenger-native-libs.x86_64 1:3.0.12-1.el5.centos_1.8.5 set to be updated
    –> Processing Dependency: ruby = 1.8.5 for package: rubygem-passenger-native-libs
    –> Processing Dependency: libruby.so.1.8()(64bit) for package: rubygem-passenger-native-libs
    –> Processing Dependency: /usr/bin/ruby for package: rubygem-passenger
    –> Finished Dependency Resolution
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: /usr/bin/ruby is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: rubygem(rack) is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 from passenger has depsolving problems
    –> Missing Dependency: libruby.so.1.8()(64bit) is needed by package 1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 (passenger)
    1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 from passenger has depsolving problems
    –> Missing Dependency: ruby = 1.8.5 is needed by package 1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 (passenger)
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: /usr/bin/ruby is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    rubygem-daemon_controller-0.2.5-1.noarch from passenger has depsolving problems
    –> Missing Dependency: rubygems is needed by package rubygem-daemon_controller-0.2.5-1.noarch (passenger)
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: rubygem(fastthread) >= 1.0.1 is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: rubygem(rake) >= 0.8.1 is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems
    –> Missing Dependency: rubygems is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: ruby = 1.8.5 is needed by package 1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 (passenger)
    Error: Missing Dependency: libruby.so.1.8()(64bit) is needed by package 1:rubygem-passenger-native-libs-3.0.12-1.el5.centos_1.8.5.x86_64 (passenger)
    Error: Missing Dependency: rubygems is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: rubygem(fastthread) >= 1.0.1 is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: rubygem(rack) is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: rubygem(rake) >= 0.8.1 is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: /usr/bin/ruby is needed by package 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 (passenger)
    Error: Missing Dependency: rubygems is needed by package rubygem-daemon_controller-0.2.5-1.noarch (passenger)
    You could try using –skip-broken to work around the problem
    You could try running: package-cleanup –problems
    package-cleanup –dupes
    rpm -Va –nofiles –nodigest
    The program package-cleanup is found in the yum-utils package.
    [root@autodev19 ad19]#

  • http://blog.douglasmkelly.com/ Douglas Kelly

    Seriously – no fixes in 2 years? Same error on yum install Passenger: 1:rubygem-passenger-3.0.12-1.el5.centos.x86_64 from passenger has depsolving problems

  • http://www.phusion.nl/ Hongli Lai

    That’s right. No fixes in 2 years. The guy who was responsible for the RPMs has left, and nobody else has stepped in to maintain the RPMs in these two years.

    We’re trying to build RPMs ourselves, but progress is slow because there’s just a ton of work to do. https://github.com/phusion/passenger_rpm_automation