title: Passenger using wrong ruby version
body: <p>I'm running multiple websites on Apache with Passenger 4.0.45 on a CentOS server. I have multiple ruby versions installed too with rvm 1.25.27 and for the past 3 years I'm using Ruby 2.1.2 version.
  I have now started a new application with Rails 5.1 and I've needed to install Ruby 2.4.2. After deployed my application I'm getting an <code>Internal Server Error</code> and here it is the error I'm getting on error log:</p>
  
  <pre><code>App 10033 stderr: /usr/local/rvm/gems/ruby-2.1.2@rails-4.0/gems/passenger-4.0.45/lib/phusion_passenger/request_handler.rb:356:in `trap'
  App 10033 stderr: :
  App 10033 stderr: Invalid argument - SIGKILL
  App 10033 stderr:  (
  App 10033 stderr: Errno::EINVAL
  App 10033 stderr: )
  </code></pre>
  
  <p>I've noticed that the ruby version that shows up is <code>ruby-2.1.2@rails-4.0</code> and I think it should be <code>2.4.2</code> because is the version that I'm specifying on VirtualHost file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName example.com
     DocumentRoot /.../current/public
     PassengerRuby /home/user/.rvm/wrappers/ruby-2.4.2@global/ruby
     &lt;Directory 
          /home/user/.../current/public&gt;
          AllowOverride all
          Options -MultiViews
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I've read about this bug on <a href="https://github.com/phusion/passenger/issues/1362" rel="nofollow noreferrer">https://github.com/phusion/passenger/issues/1362</a> but I don't know if I can update Passenger without messing up other sites that I'm running with old versions of Ruby.</p>