May 17 2009

Passenger 2.2.2 Upgrade

On select production cPanel servers, we have upgraded to Passenger 2.2.2.  This new release offers a variety of new features and substantial performance improvements, but we’ve had to make one slight change to our Passenger deployment routine.  Due to this, you’ll have to add a line to your .htaccess file in your public folder in your Rails app with the contents:

PassengerAppRoot /home/user/rails_apps/yourapp

Replace “user” with your username and “rails_apps/yourapp”  with the path to your Rails application. 

On the servers we have deployed the upgrade to we have added this to any existing .htaccess file or created a new one with that line in it.  However, if you use Subversion or Git repository, you’ll need to add this change to it so that the next time you do an update this change will be preserved. 

You have not made this change already, please do so as soon as you can.  This will ensure upgrades on the rest of our shared hosting cluster will go smoothly.

On the off chance that your Rails application isn’t functioning correctly, make sure the above line is in your .htaccess file in the public folder of your Rails application.