我尝试使用backlog插件安装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]
有什么想法吗?
答案 0 :(得分:1)
您是否看过这个问题的提示:Rails application doesn't work with apache2 and passenger? (它看起来像是同一类型的错误)。一个人安装了几个版本的Ruby,这导致了问题。
希望它会有所帮助。