0

我尝试使用积压插件安装 redmine。我遵循了本教程:https ://github.com/backlogs/redmine_backlogs/wiki/Installation-of-Backlogs-in-Redmine-2.0

现在我有 apache 错误:

/usr/lib/phusion_passenger/passenger-spawn-server:53:in `require': no such file to load -- phusion_passenger/utils (LoadError) 
        from /usr/lib/phusion_passenger/passenger-spawn-server:53:in `<main>'
[ pid=4064 file=ext/apache2/Hooks.cpp:725 time=2012-09-16 23:23:45.726 ]: 
  Unexpected error in mod_passenger: Cannot spawn application '/var/www/redmine': The spawn server has exited unexpectedly. 
  Backtrace: 
     in 'virtual boost::shared_ptr<Passenger::Application::Session> Passenger::ApplicationPoolServer::Client::get(const Passenger::PoolOptions&)' (ApplicationPoolServer.h:471) 
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:521) 

这是我的虚拟主机配置:

<VirtualHost *:80>
  ServerName redmine.my.domain 
  DocumentRoot "/var/www/redmine/public" 

  <Directory "/var/www/redmine/public/">
    RailsBaseURI /redmine 
    PassengerResolveSymlinksInDocumentRoot on 
  </Directory>
</VirtualHost>

我的 /etc/apache2/mods-available/passenger.conf

<IfModule mod_passenger.c>
  PassengerRoot /usr 
  PassengerRuby /usr/bin/ruby 
  PassengerDefaultUser www-data 
</IfModule>

更多的:

/usr/bin/ruby -> /etc/alternatives/ruby 
/etc/alternatives/ruby -> /usr/bin/ruby1.9.1

ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]

任何想法?

4

1 回答 1

1

您是否看过这个问题的提示:Rails application doesn't work with apache2 and Passenger?(它看起来像相同类型的错误)。一个人安装了几个版本的 Ruby,这导致了问题。

希望它会有所帮助。

于 2012-09-18T08:55:51.213 回答