I am not sure it will help you but, instead of considering the GEM_PATH, maybe you should consider the PassengerRuby and the PassengerDefaultRuby configuration
http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerRuby
Passenger is certainly trying to use the default ruby of your system, and you have to tell it to use the good one, that is to say the one yuo installed with RVM. To find the correct ruby, in your console, be sure that the ruby you are using is the one you want to use, you can type
ruby -v
which ruby
rvm list
rvm use [the one you want to use]
Once you are sure that in this terminal session, the ruby you are using is the on you want passenger to use, type this command
passenger-config about ruby-command
You should then see a line like :
To use in Apache: PassengerRuby /home/tommyjam/.rvm/gems/ruby-2.1.1/wrappers/ruby
Copy the interesting information and paste it in the good location, that is to say, as the passenger doc say
PassengerRuby may occur everywhere: in the global server configuration, in <VirtualHost>
, in <Directory>
, in <Location>
, and in .htaccess if AllowOverride Options is on
You can also change PassengerRuby to PassengerDefaultRuby and put it in the global server configuration, which is, I think in the /etc/apache2/mods-available/passenger.conf
Hope it will help you :)