I'm experiencing a server error, which tells me that it cannot detect essential gems such as rake. Research suggests that there's a miscommunication between Phusion Passenger and RVM. RVM recommends setting PassengerDefaultRuby
in the server's global configuration file, which in my case is /etc/apache2/apache2.conf
. When I insert this line:
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-1.9.3/ruby
I get this error when restarting Apache:
Syntax error on line 39 of /etc/apache2/apache2.conf:
Invalid command 'PassengerDefaultRuby', perhaps misspelled or defined by a module not included in the server configuration
Perhaps I'm placing this code in the wrong file? Or maybe something else is going wrong? Any guidance would be greatly appreciated.