Howto upgrade Passenger to 2.0.1
Submitted by specialj on Tue, 2008-06-24 19:06.
I noticed that Passenger 2.0.1 became available today and I decided to upgrade a couple of my Rails sites which are using it. The process was painless but there are some configuration changes to note when upgrading from 1.0.x. So here are the steps I took.
Update: I’d also like to confirm that fair load balancing is working properly with Passenger. This is a feature that I have wanted for some time and I’m glad to see it working.
/etc/init.d/apache2 stop- I find that stopping Apache is the best way to ensure plenty of memory on a VPS.
gem update- For those with Passenger installed this should update the gem to 2.0.1.
passenger-install-apache2-module- This command will build the apache2 module for the new version.
- Update essential Passenger configuration
- The LoadModule directives stays relatively unchanged except for the version number:
1.0.5:LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-1.0.5/ext/apache2/mod_passenger.so
2.0.1:LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so RailsSpawnServerhas been obsoleted byPassengerRoot
1.0.5:RailsSpawnServer /var/lib/gems/1.8/gems/passenger-2.0.1/bin/passenger-spawn-server
2.0.1:PassengerRoot /var/lib/gems/1.8/gems/passenger-2.0.1RailsRubyhas been replaced byPassengerRuby
1.0.5:RailsRuby /usr/bin/ruby1.8
2.0.1:PassengerRuby /usr/bin/ruby1.8
- The LoadModule directives stays relatively unchanged except for the version number:
- Updating additional Passenter configuration
RailsUserSwitchingandRailsDefaultUserhave been replaced byPassengerUserSwitchingandPassengerDefaultUserRailsMaxPoolSizeandRailsPoolIdleTimehave been replaced byPassengerMaxPoolSizeandPassengerPoolIdleTime.
/etc/init.d/apache2 start- Restart Apache and all should be well.
Trackback URL for this post:
http://hightechsorcery.com/trackback/159




Recent comments
1 week 4 days ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 4 days ago
2 weeks 6 days ago
5 weeks 3 days ago
5 weeks 3 days ago
5 weeks 3 days ago
5 weeks 5 days ago