Phusion Passenger 2.1.1 (beta) released, thanks sponsors!
Phusion Passenger is an Apache module for deploying Ruby on Rails web applications, and is mainly focused on ease of use and stability.
The community sponsorship campaign has been a huge succes. We are proud to announce version 2.1.1 of Phusion Passenger. This version is a beta version, and if we don’t find any serious issues in a few weeks, we’ll release 2.1.2 final (which is not a beta).
We’d like to pay our gratitude to the following people and organizations for sponsoring this release:
- Locaweb Ltda, 2,500 USD
- Geni.com, 2,000 USD
- Blue Box Group, 750 USD
- Jan Paul Stegeman, 750 USD
- Stuart Eccles, 600 USD
- Brightbox Systems Ltd, 500 USD
- Keith Gautreaux, 500 USD
- Robert Harvey, 500 USD
- Terralien, Inc., 500 USD
- Gnoso Inc., 300 USD
- Invisible Jens Christian Fischer, 250 USD
- Michael Schmid, 250 USD
- CampusWire, 200 USD
- Ping Interactive Corp
- Tesly, LLC, 200 USD
- Thomas Shelton, 200 USD
- Angry Turnip, Inc., 100 USD
- Bigger Bird Creative, Inc., 100 USD
- Claudio Petasecca Donati, 100 USD
- Daniel Milliron, 100 USD
- David Demaree, 100 USD
- OurStage, 100 USD
- David South, 100 USD
- Gaelian Ditchburn, 100 USD
- Greycourt Software Ltd., 100 USD
- Hosting Playground Inc., 100 USD
- Indie Labs, LLC, 100 USD
- Jose Francisco Gonzalez Carmona, 100 USD
- Jose Garcia, 100 USD
- Loïc Boutet, 100 USD
- Maintainable Software, 100 USD
- Rolly Fordham, 100 USD
- Tekin Suleyman, 100 USD
- 80beans, 100 USD
- Tomoki Tsuchida, 100 USD
- Viget Labs, 100 USD
- IXLD Media Inc, 79 USD
- Anton Mironov, 50 USD
- clickhere interactive bv, 50 USD
- Curbly, 50 USD
- Daikini Software, 50 USD
- David Whittington, 50 USD
- Dylan Clendenin, 50 USD
- Edwin Moss, 50 USD
- Evgeniy Pirogov, 50 USD
- FuzzyCorp, 50 USD
- Guillermo Alcántara, 50 USD
- Jamie Flournoy, 50 USD
- John Dewey, 50 USD
- John Pelly, 50 USD
- Leftbrained, 50 USD
- Louis-Philippe Perron, 50 USD
- Matt Pruitt, 50 USD
- Matthew Biddulph, 50 USD
- Mischa SingerFierer, 50 USD
- Morgan Roderick, 50 USD
- Ryan Grove, 50 USD
- Stuart Ellis, 50 USD
- Trevor Turk, 50 USD
- Victor Grey, 50 USD
- abSpruce, 50 USD
- netzpirat, 50 USD
- Evan Stoner, 40 USD
- GD Consulting – Refwell, 40 USD
- Christian Rishøj, 30 USD
- David Okeby, 30 USD
- Evgeny Bolshakov, 30 USD
- Jesse Hallett, 30 USD
- Jim Hughes, 30 USD
- Cecil Meeks, 29.70 USD
- Miha Plohl, 29 USD
- Andrew Gilmartin, 25 USD
- Benjamin Vandgrift, 25 USD
- Brian Anderson, 25 USD
- Charles Wise, 25 USD
- LinkSwarm.com, 25 USD
- Dave Newton, 25 USD
- David Spurr, 25 USD
- Jeremy Burks, 25 USD
- Jeremy Wohl, 25 USD
- Joerg Battermann, 25 USD
- John Gibbons, 25 USD
- Kiere El-Shafie, 25 USD
- Noah Daniels, 25 USD
- Pro Tour Fantasy Golf, 25 USD
- Revolution Co., 25 USD
- Wade Minter, 25 USD
- Wesley Rogers, 25 USD
- reactionCONTROL, 25 USD
- Scott Tadman, 23 USD
- Peter Cooper, 21 USD
- Adam Wisniewski, 20 USD
- Adam Hill, 20 USD
- Adeh DeSandies, 20 USD
- Andreas Wolff, 20 USD
- Anthony Green, 20 USD
- Axoline Corporation, 20 USD
- Bob Martens, 20 USD
- Brian Deterling, 20 USD
- Bryan Liles, 20 USD
- Chad Johnson, 20 USD
- Cyrille Bonnet, 20 USD
- Daniel Goh, 20 USD
- David Dollar, 20 USD
- David Reese, 20 USD
- Donald Parish, 20 USD
- Eifion Bedford, 20 USD
- Ethan Michaels, 20 USD
- Ethan Michaels, 20 USD
- Franck D’agostini, 20 USD
- Hans Petter Wilhelmsen, 20 USD
- Jacob Atzen, 20 USD
- Jens Nauber, 20 USD
- John Munsch, 20 USD
- Joseph Ellis, 20 USD
- Justin Reese, 20 USD
- Lili Laguna de la Vera, 20 USD
- MR KEITH R PITT, 20 USD
- Martin Stannard, 20 USD
- Matthew Ford, 20 USD
- Matthew Jones, 20 USD
- Matthew McMahand, 20 USD
- Michael Hansen, 20 USD
- Milo Winningham, 20 USD
- Morten Liebach, 20 USD
- Nathan Witmer, 20 USD
- Paul Bowsher, 20 USD
- Pete Higgins, 20 USD
- Philippe Lafoucrière, 20 USD
- Randy Pond, 20 USD
- Scott Motte, 20 USD
- Sustainable Websites LLC, 20 USD
- William Mustard, 20 USD
- William Stalcup, 20 USD
- Sinclair Bain, 20 USD
- Eric Cranston, 15 USD
- Levi Figueira, 15 USD
- Paul McConnon, 15 USD
- Phillip L Barnes, 15 USD
- Jia-Yong Ou, 12.30 USD
- Alessandro Zarrilli, 10 USD
- Alexey Kovyrin, 10 USD
- Andre Lewis, 10 USD
- Anvilwerks, 10 USD
- Ashwinee Dash, 10 USD
- Attila Györffy, 10 USD
- Chris Gorman, 10 USD
- Daniel Kirsch, 10 USD
- David Burrows, 10 USD
- Dennis Martinez, 10 USD
- Dr Corbeille, 10 USD
- Edwin Mays, 10 USD
- eORGA Bernhard Uellenberg, 10 USD
- Fernando Vieira, 10 USD
- Gaizka Villate, 10 USD
- George Razvan NICA, 10 USD
- Gregory Davidson, 10 USD
- John van Dijk, 10 USD
- Michael Delaney, 10 USD
- Michael Hale, 10 USD
- Paul Marsh, 10 USD
- Ralph Haygood, 10 USD
- Robert Merrell, 10 USD
- Stefan Wasilewski, 10 USD
- Tom Howlett, 10 USD
- Willem de Ru, 10 USD
- Zeke Sikelianos, 10 USD
- wolodymyr kalicun, 10 USD
- Zenbu, 10 USD
- Simon Menke, 9 USD
- RIMANTAS LIUBERTAS, 7.50 USD
- JOAO BATISTA SILVA, 7 USD
- Austin Moore, 5 USD
- Greg Pierce, 5 USD
- Henrik Nyh, 5 USD
- Joshua Nussbaum, 5 USD
- Justin Mecham, 5 USD
- Liborio Francesco Maria Cannici, 5 USD
- Piotr Banasik, 5 USD
- Sho, 5 USD
- Tyler Montgomery, 5 USD
- Marcelo Gonçalves, 4 USD
- Adam Anlauf, 3 USD
- William Noto Widagdo, 2 USD
- Felipe Coury, 2.50 USD
What’s new in 2.1.1?
- Support for Rails 2.3
- The Rack specification has changed in an incompatible way, mainly in order to be Ruby 1.9 compatible. We’ve fixed this in a backwards-compatible manner.
- Improved compatibility with other Apache modules, such as mod_rewrite
- Phusion Passenger is now fully compatible with mod_rewrite! The “RailsAllowModRewrite” option is now obsolete, and everything should work as expected.
While this might sound like a trivial improvement, please think about this for a moment, because supporting mod_rewrite has been anything but trivial. The way mod_rewrite interacts with Apache is for the most part undocumented. We have spent many, many, many man hours on reading mod_rewrite’s source code, Apache’s source code and many Apache modules’ source code, and reverse engineering its behavior through debuggers, in order to figure out how to make Phusion Passenger fully compatible. To get an idea of how much effort we spent into this, take a look at the Phusion Passenger Apache module source code. Even if you’re not familiar with C++, you might be interested in the comments associated with the following functions: prepareRequest, saveOriginalFilename, saveStateBeforeRewriteRules, undoRedirectionToDispatchCgi, startBlockingModDir, startBlockingModAutoIndex.
The information in all these comments are obtained through hard reverse engineering work, because the behavior that these comments describe are not documented anywhere. We had to obtain this information the hard way. - Ruby 1.9 support
- As announced here.
- Support for NFS setups
- Using Phusion Passenger to deploy applications that live on NFS shares is currently a bit awkward, and performance isn’t that good either because of filesystem access overhead. We’ve made Phusion Passenger more NFS friendly! Performance on NFS shares has been increased by up to 8 times thanks to smart filesystem access caching. Restarting applications that live on NFS shares now works seamlessly.
- Various I/O handling and scaling improvements and fixes
- Phusion Passenger will now try much harder to enforce I/O timeouts, so that a bad, slow or frozen HTTP client cannot hog server resources forever.
We’ve improved mod_xsendfile support. If a backend process sends an X-Sendfile response, then Phusion Passenger used to keep that backend process locked until mod_xsendfile has sent the file. This has been solved: Phusion Passenger will now immediately release the backend process, making things much more scalable.
Phusion Passenger now fully supports applications that stream large amounts of data. Apache has the tendency to buffer the entire response in memory before sending it to the HTTP client. We’ve suppressed this
Apache behavior, so now your Ruby web application can happily stream hundreds of megabytes of data, and things will keep working smoothly. - Ability to disable Phusion Passenger for arbitrary URLs (PassengerEnabled option)
- This allows you to, for example, integrate PHP applications alongside Ruby/Rails applications on the same virtual host.
- Improved application compatibility
- If your application has a model named ‘Passenger’ then it will not work on Phusion Passenger 2.0.x because that’s how our namespace is called. We’ve renamed our namespace to ‘PhusionPassenger’, so this
problem is now a thing of the past.Some applications are incompatible with Phusion Passenger’s smart spawning mode, and have to be deployed in conservative spawning mode. As you might know, smart spawning can reduce a Rails application’s
startup time by as much as 90% in the right circumstances, as well as decreasing its memory usage, so it’s no surprise that smart spawning is preferred over conservative spawning. We’ve added various hooks which
allows developers of incompatible applications to make their applications compatible with smart spawning.Phusion Passenger depends on the ‘rack’ gem in order to support Rack applications. The latest ‘rack’ gem is version 0.9.1, but some applications have (incorrectly) specified a hard dependency on rack 0.4.0. If both 0.9 and 0.4 are installed, then these applications will break when run in Phusion Passenger, because the application tries to load 0.4 after 0.9 has already been loaded. We’ve implemented a fix so that even these applications will now work correctly.
- Better cross-platform support
- MacOS X support as well as support for 64-bit platforms have been much improved. Sun Solaris is now officially supported, thanks to contributions by Alex Osborne, Jacob Harris, alex.kiernan, Alex Tomlins
and J Aaron Farr. - Non-interactive installer
- The installer can now be run in non-interactive mode, ideal for scripting. Use the –auto command line option.
- Improved command-line admin tools
- For example, the ‘passenger-status’ tool now displays additional useful information such as a worker process’s uptime and how many requests it has processed so far.
- Ability to display backtraces for all threads
- If you’re using the latest version of Ruby Enterprise Edition, or if you’re using a Ruby interpreter with the caller_for_all_threads patch, then Phusion Passenger gives you the ability do dump the backtraces of all running threads to a log file. This makes it much easier to debug multithreaded web applications.
- Improved security
- We’ve taken various precautions in order to improve overall security. For example, if user switching is disabled, then all Phusion Passenger helper daemons will be run as non-root (they must be root for
user switching to work). Temp directory permissions have been tightened to prevent malicious tampering. - More customization options for exotic systems/setups
- It is now possible to customize the ‘tmp’ directory that Phusion Passenger uses. This is especially useful on systems on which Apache can’t write to /tmp (e.g. on many systems with SELinux), or systems on
which /tmp is not a good candidate for temporary files for whatever reason. It’s now also possible to customize the directory in which Phusion Passenger looks for ‘restart.txt’. Global queuing usage can now be customized per-virtual host. It’s now possible to explicitly specify the location of the web application’s root directory, in case DocumentRoot + “/..” is not the correct directory. - Various usability improvements
- In particular, many error messages have been improved so that end users don’t have to stare at the screen for minutes wondering what the computer is trying to tell them. There are also many small usability
improvements here and there. - Various other minor improvements and bug fixes
- PassengerPoolIdleTime can now be set to 0, which means that the backend application must never idle timeout. This feature has been contributed by redmar.
The passenger-status tool will now display Phusion Passenger’s own backtraces for C++ code, in order to make it possible to detect potential freezes in C++ code.
Phusion Passenger error pages now return HTTP 500 errors, as they should.
The ApplicationSpawner server and FrameworkSpawner server idle times can now be customized.
In the 2.0.x series, sometimes more backend processes might be spawned than is allowed by the ‘PassengerMaxPoolSize’ option. This has been fixed.
How do I upgrade to 2.1.1?
Please download the 2.1.1 gem, then install it with the command:
gem install passenger-2.1.1.gem
Next, run:
passenger-install-apache2-module
Please don’t forget to copy & paste the Apache config snippet that the installer gives you.
You cannot type just “gem install passenger” because this gem isn’t uploaded to RubyForge. We didn’t upload it to RubyForge because this is a beta release.
You can also download the source code if you prefer that instead.
Enjoy!
![]() |
![]() |