首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为Redmine安装乘客

为Redmine安装乘客
EN

Stack Overflow用户
提问于 2013-04-27 01:34:19
回答 2查看 5.6K关注 0票数 0

我是ruby/rails的新手。

我正在尝试安装Redmine,但我无法启动应用程序。

我的安装包括centos 6、apache、mysql、passenger。

代码语言:javascript
复制
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.3 (upgrade from 1.8.7)
  - RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-linux
  - GEM PATHS:
      - /usr/local/lib/ruby/gems/1.9.1
      - /root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
      - :update_sources => true
      - :verbose => true
      - :backtrace => false
      - :bulk_threshold => 1000
  - REMOTE SOURCES:
  - https://rubygems.org/

Apache配置文件:

代码语言:javascript
复制
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.19
PassengerRuby /usr/local/bin/ruby

<VirtualHost *:80>
  ServerAdmin support@example.com
  ServerAlias redmine.example.com

  PassengerSpawnMethod smart
  PassengerPoolIdleTime 300
  RailsFrameworkSpawnerIdleTime 0
  PassengerMaxRequests 5000
  PassengerStatThrottleRate 5
  PassengerMinInstances 3
  RailsEnv production

  DocumentRoot /var/www/html/redmine/public
  <Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>

  <Directory /var/www/html/redmine/public/>
    RackBaseURI /redmine
    Options -MultiViews   
    AllowOverride All
    Order allow,deny
    allow from all      
  </Directory>
</VirtualHost>

以下是我收到的错误。

代码语言:javascript
复制
[error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion   Passenger or fix your 'PassengerRoot' directive, whichever is applicable.
[Fri Apr 26 17:27:29 2013] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.19 PHP/5.3.3 configured -- resuming normal operations
[Fri Apr 26 17:27:33 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/index.html
[Fri Apr 26 17:27:34 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/index.html
[Fri Apr 26 17:27:35 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/index.html
[Fri Apr 26 17:27:37 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/redmine.html

第二个错误:

代码语言:javascript
复制
[error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.
[Fri Apr 26 17:32:42 2013] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.19 PHP/5.3.3 configured -- resuming normal operations
[Fri Apr 26 17:32:50 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/redmine.html
[Fri Apr 26 17:32:52 2013] [error] [client 173.161.44.5] File does not exist: /var/www/html/redmine/public/redmine.html

有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2013-05-05 19:37:59

你可能已经通过APT安装了Phusion Passenger,现在你的Apache已经加载了两个冲突的Phusion Passenger版本。您应该搜索所有Apache配置文件,并删除与加载通过APT安装的版本有关的任何配置片段(具体地说,就是LoadModule和PassengerRoot指令)。

票数 0
EN

Stack Overflow用户

发布于 2014-08-06 04:39:36

在升级到Ubuntu 14.04之后,我遇到了完全相同的问题。这是几个问题,其中之一是我最终安装了多名乘客。

代码语言:javascript
复制
#Remove old installs, just in case
gem uninstall passenger
apt-get uninstall libapache2-mod-passenger
#Reinstall
apt-get install libapache2-mod-passenger
#Rebuild passenger module
passenger-install-apache2-module
#FOLLOW ALONG, apt-get things it tells you too
#Copy the snippet it leaves you at the end
#Paste snippet into your appropriate apache2 sites file
service apache2 restart

现在乘客正在正确装载

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16242139

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档