title: Getting Rails 3 and Passenger to work on CentOS 5.4 - Apache Error
body: <p>Using Ruby 1.8.7 on CentOS 5.4. Trying to get Rails 3 app up on Passenger.</p>
  
  <p>I have gone through all the steps but get this error in my Apache log file</p>
  
  <pre><code>Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:220):
  Could not start the spawn server: /usr/lib/ruby/: Permission denied (13)
  [ pid=18207 thr=3086812880 file=ext/apache2/HelperAgent.cpp:354 time=2011-02-09 09:27:18.541 ]: Could not start the spawn server: write() failed: Broken pipe (32)
       in 'Passenger::SpawnManager::SpawnManager(const std::string&amp;, const boost::shared_ptr&lt;Passenger::ServerInstanceDir::Generation&gt;&amp;, const Passenger::AccountsDatabasePtr&amp;, const std::string&amp;, const Passenger::AnalyticsLoggerPtr&amp;, int, const std::string&amp;)' (SpawnManager.h:540)
       in 'Passenger::ApplicationPool::Pool::Pool(const std::string&amp;, const boost::shared_ptr&lt;Passenger::ServerInstanceDir::Generation&gt;&amp;, const Passenger::AccountsDatabasePtr&amp;, const std::string&amp;, const Passenger::AnalyticsLoggerPtr&amp;, int, const std::string&amp;)' (Pool.h:1078)
       in 'Server::Server(Passenger::FileDescriptor, pid_t, const std::string&amp;, bool, const std::string&amp;, const std::string&amp;, const std::string&amp;, const std::string&amp;, unsigned int, unsigned int, unsigned int, unsigned int, const Passenger::VariantMap&amp;)' (HelperAgent.cpp:241)
       in 'int main(int, char**)' (HelperAgent.cpp:344)
  
  [Wed Feb 09 09:27:18 2011] [error]
  Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger helper agent: it seems to have crashed during startup for an unknown reason, with exit code 1
  [Wed Feb 09 09:27:18 2011] [notice] Digest: generating secret for digest authentication ...
  [Wed Feb 09 09:27:18 2011] [notice] Digest: done
  Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:220):
  Could not start the spawn server: /usr/lib/ruby/: Permission denied (13)
  [ pid=18221 thr=3086513872 file=ext/apache2/HelperAgent.cpp:354 time=2011-02-09 09:27:18.592 ]: Could not start the spawn server: write() failed: Broken pipe (32)
       in 'Passenger::SpawnManager::SpawnManager(const std::string&amp;, const boost::shared_ptr&lt;Passenger::ServerInstanceDir::Generation&gt;&amp;, const Passenger::AccountsDatabasePtr&amp;, const std::string&amp;, const Passenger::AnalyticsLoggerPtr&amp;, int, const std::string&amp;)' (SpawnManager.h:540)
       in 'Passenger::ApplicationPool::Pool::Pool(const std::string&amp;, const boost::shared_ptr&lt;Passenger::ServerInstanceDir::Generation&gt;&amp;, const Passenger::AccountsDatabasePtr&amp;, const std::string&amp;, const Passenger::AnalyticsLoggerPtr&amp;, int, const std::string&amp;)' (Pool.h:1078)
       in 'Server::Server(Passenger::FileDescriptor, pid_t, const std::string&amp;, bool, const std::string&amp;, const std::string&amp;, const std::string&amp;, const std::string&amp;, unsigned int, unsigned int, unsigned int, unsigned int, const Passenger::VariantMap&amp;)' (HelperAgent.cpp:241)
       in 'int main(int, char**)' (HelperAgent.cpp:344)
  </code></pre>
  
  <p>Don't know where to start. Permission to Ruby or my App is denied?</p>
  
  <p>Passenger in stand alone mode gives me an error about not being able to load Bundler.</p>
  
  <p>Would really like to get this running under Apache2.</p>