title: Passenger bundler/setup LoadError
body: <p>I have a similar error to <a href="https://stackoverflow.com/questions/19471725/redmine-passenger-error">Redmine passenger error</a>. I'm trying to get GitLab working with Apache and Passenger with no luck. I'm stuck on this error:</p>
  
  <pre>
   cannot load such file -- bundler/setup (LoadError)
        /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:96:in `preload_app'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:150:in `'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `'</pre>
  
  <p>Following Andriy's suggestion I've tried to install bundler gem with: `</p>
  
  <pre><code>sudo gem install bundler
  </code></pre>
  
  <p>after installation I've restarted apache2 service but the error remains the same.</p>
  
  <p>VirtualHost is defined with:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerName localhost
  
          # Point this to your public folder of gitlab
          DocumentRoot /home/git/gitlab/public
          &lt;Directory /home/git/gitlab/public&gt;
                  Allow from all
                  Options -MultiViews
          &lt;/Directory&gt;
  
          PassengerRuby /usr/bin/ruby
  
          # Custom log file locations
          ErrorLog  /var/log/apache2/gitlab_error.log
          CustomLog /var/log/apache2/gitlab_access.log combined
  &lt;/VirtualHost&gt;
  &lt;Location /users/auth/shibboleth/callback&gt;
    AuthType shibboleth
    ShibRequestSetting requireSession 1
    require valid-user
  &lt;/Location&gt;
  &lt;Location /Shibboleth.sso&gt;
    SetHandler shib
  &lt;/Location&gt;
  </code></pre>
  
  <p>Can someone shed some light on this issue?</p>