Phusion white papers Phusion overview

Phusion Blog

Phusion Passenger 2.0.2 released

By Hongli Lai on July 14th, 2008

Phusion Passenger’s development continues on. A few bugs have been found and fixed. These fixes are deemed to be important enough to backport to the 2.0.x series, so today we present you with Phusion Passenger 2.0.2. 🙂


Fixed a file descriptor leak
If a system error occurs while receiving the response data from a Rails application, then the file descriptor that connects Apache to the Rails application is not properly cleaned up. This has been fixed. Thanks to TonyLa for reporting and analyzing this problem.
Fixed a memory leak
Due to an unfortunate little mistake, each time a client disconnects from the ApplicationPoolServerExecutable will result in a small memory leak. In practice, it means this: if your Apache is configured to restart* worker threads or worker processes often (say, every 10 requests or so), then each time that happens, a small memory leak will occur. For most people this is not a problem, because by far most Apache servers are configured to never restart worker threads/processes, or only restart a worker thread/process after several hundred thousand requests. This leak didn’t catch our attention because we used a standard Apache configuration (Ubuntu default).
Once again, many thanks to TonyLa for reporting and analyzing this problem.
(* = This has got nothing to do with the ‘apachectl restart’ or ‘apachectl graceful’ command. These commands restart Phusion Passenger entirely, and will not result in any memory leaks. We were only referring to Apache’s internal process of restarting worker threads and worker processes.)
Fixed a compilation problem for some people
This has been fixed.

How do I upgrade to 2.0.2?

Via a gem

Please install it with the following command:

gem install passenger

Next, run:


Please don’t forget to copy & paste the Apache config snippet that the installer gives you.

Via a native Linux package

Neil Wilson from Brightbox has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at:

Add the following line to the Third Party Software Sources:

deb hardy main

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

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

apt-get install libapache2-mod-passenger

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

  • Pingback: Wordpress & Passenger updated | jonRaptor's Blog()

  • Pingback: Nome do Jogo » Artigo » Rails Podcast Brasil - Epis()

  • ArZka

    Just a note to those that are looking for this information (and spend two days googling for it): On Debian Etch you need to make sure g++ is v4.x before attempting to do the passenger-install-apache2-module. I tried with 3.3.5 I had on one of my servers and it failed, failed and failed. I actually spent two days googling for the answer and finally found it looking for something totally different.

    It pays to do “g++ -v” and make sure your system actually uses the new version of g++ after the update, mine was a bit reluctant to switch to it. Then again, if I remember correct the 3.3.5 version of gcc/g++ that comes with Debian is somewhat bugged, so it should’ve been updated long ago.

    I wanted to comment on this because I found many questions about the same thing, but none of them had any solutions. All in all the installation part of the site is a bit lacking in information. In one place (I think the document referred to when you run into problems with the installation) you mention there’s a deb file I could’ve used instead of compiling it, but nowhere can I find that file. Either remove the text or add the file. Adding a comment about the required version of g++ might also save some people some headache.

    Other than that, I finally got the system to work, now I’m testing it to see if I can upgrade my production systems to this, too.. it’d save me lots of trouble, I’d rather not mess with clusters as long as I really don’t need to.

  • @ArZka: The manual is actually referring to the Ubuntu package, as written in this announcement. I’ll update the manual and the website accordingly, thanks.

  • Nice update. By the way, the X-Powered-By header still reads “Phusion Passenger (mod_rails/mod_rack) 2.0.1” after the upgrade (but the server signature says Phusion_Passenger/2.0.2).

  • Pingback: Ardekantur » Phusion, Rack, Sinatra, and sub-domains()

  • Oscar

    I have worked with Flex and amfphp for a long time. Now I’m working on
    my first Flex – Rails project.
    I installed Passenger and ruby runs just perfect.

    Then I installed RubyAmf and I can get it working. passenger needs a
    virtual host: railsApplication/public and RubyAmf recevies requests at
    railsApplication/gateway. I got a “…was not found on this server”

    is it posible to use RubyAmf with Passenger? any solution or tutorial
    for this?

    thanks in advance.

  • Thanks for keeping up with this! I love mod rails and recommend it to everyone. It’s just a nice idea.

  • I added the entry “deb hardy main” to sources.list and i get the follwing error:

    W: GPG error: hardy Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5F850D830090DAAD
    W: You may want to run apt-get update to correct these problems

    I added a file to sources.list.d folder and added the same entry and that does not do anything. What am I doing wrong here.

  • Please contact Neil Wilson if you have a problem with the Ubuntu package.

  • I get the same problem. Have to use the gem to install passenger.

  • Mike Tunnicliffe


    I had the same problem, but I googled brightbox and found a blog article with installation steps that resolved the problem for me:

  • Deepak

    The above fix works. The key needs to be added to the local apt-get keychain.

    Thanks a lot Mike!

  • Kris

    Thanks Mike, Seemed to work for me as well.