Phusion Passenger (mod_rails) complaining about gem versions

apache mod_rails rubygems rubyonrails

Tue Feb 03 21:52:00 -0500 2009

After installing phusion and starting Apache, I received this error trying to access a Rails app under a vhost configuration:

Ruby on Rails framework version 2.2.2 seems to be corrupted. Please reinstall it.

The solution is to add the following to the vhost definition:

RailsSpawnMethod conservative

…based on this entry in the Users Guide.

I’d love to know why the default setting (“smart”) doesn’t work. It appears to be a problem with Rails 2.2.2. When I briefly upgraded the gems to 2.3.0, the error did not occur. Of course I did get other errors having to do with running a 2.2.2 codebase under the 2.3.0 gems….

blog comments powered by Disqus