RVM integration - Ruby was extracted into a separate stone (`remove $ LOAD_PATH.unshift`)

I upgraded to Rails 3.2.6 (ruby 1.9.3-p194) and installed RVM on Debian and using the Apache2 server (2.2.19).

I used these very nice instructions: http://dalibornasevic.com/posts/21-rvm-and-passenger-setup-for-rails-2-and-rails-3-apps/

Apache server configuration /etc/apache2/apache2.conf includes:

LoadModule passenger_module /usr/local/rvm/gems/ ruby-1.9.3-p194@rails326 /gems/passenger-3.0.13/ext/apache2/mod_passenger.so PassengerRoot /usr/local/rvm/gems/ ruby-1.9.3-p194@rails326 /gems/passenger-3.0.13 PassengerRuby /usr/local/rvm/wrappers/ ruby-1.9.3-p194@rails326 /ruby 

When I installed everything (and got rid of a ton of errors), the following error message from the passenger will appear:

RVM - Ruby integration was extracted into a separate stone, it should be installed by default using RVM, delete the line $LOAD_PATH.unshift , and everything should be fine.

$LOAD_PATH.unshift in MyApp / config / setup_load_paths.rb, this error will disappear, and instead I get the error 500, Internal server error.

/etc/log/apache2/error.log:

 [ pid=5262 thr=3075372800 file=ext/apache2/Hooks.cpp:862 time=2012-07-10 12:33:41.475 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/MyApp': The spawn server has exited unexpectedly. Backtrace: in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742) in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:294) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:563) 

I would be very pleased if someone could give me the key to this problem.
Many thanks.
Íris

+7
source share

All Articles