Trying to run passenger-install-apache2-module
which exits with error message:
Unable to autodetect the currently active RVM gem set name. This could happen if you ran this program using 'sudo' instead of 'rvmsudo'. When using RVM, you're always supposed to use 'rvmsudo' instead of 'sudo!'.
Please try rerunning this program using 'rvmsudo'. If that doesn't help, please contact this program's author for support.
I am not running it via sudo command. RVM is installed globally in /usr/local/rvm/bin/rvm
. I'm on RHEL 6.
Activating Ruby environment with rvm did the trick.