title: Passenger Error: cannot load such file -- rubygems/path_support
body: <p>I am having a lot of trouble getting a VPS - Ubuntu 10.10 / Apache2 / Passenger environment working.</p>
  
  <p>I have setup a virtual host "rails.mydomain.com" with the following file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName rails.mydomain.com
      DocumentRoot /var/www/vhosts/rails.mydomain.com/appname/public
      &lt;Directory /var/www/vhosts/rails.mydomain.com/appname/public&gt;
              Allow from all
              Options -MultiViews -Indexes
      &lt;/Directory&gt;
  
      Include /etc/apache2/production-expires.conf
      CustomLog /var/log/apache2/rails.mydomain.com-access_log common
      ErrorLog /var/log/apache2/rails.mydomain.com-error_log
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>When i try and load up the app on the server, i get:</p>
  
  <pre><code>Error message:
      cannot load such file -- rubygems/path_support
  
  Exception class:
      LoadError
  
  Application root:
      /var/www/vhosts/rails.mydomain.com/appname 
  </code></pre>
  
  <p>Also, if i try and go to any path inside, i get the same exact error... so like rails.mydomain.com/testpath, rails.mydomain.com/blog, etc etc</p>
  
  <p>I have read some things about permissions on the ruby folder, how do i check these permissions (I am a developer trying to be a server admin, so any advice is appreciated!)</p>