2013-04-26 3 views
0

나는 루비/레일을 처음 사용합니다.Redmine 용 승객 설치

Redmine을 설치하려고하는데 응용 프로그램을 시작할 수 없습니다.

제 설치는 centos 6, apache, mysql, passenger로 구성됩니다.

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/ 

아파치 구성 파일 : 여기

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 [email protected] 
    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> 

내가받을 오류입니다.

[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 

두 번째 오류 :

[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 

어떤 아이디어?

답변

0

APT를 사용하여 Phusion Passenger를 설치했을 수도 있습니다. 이제 아파치가 Phusion Passenger의 두 충돌 버전을로드했습니다. 모든 Apache 구성 파일을 검색하고 APT를 통해 설치된 버전의로드 (특히 LoadModule 및 PassengerRoot 지정 문)와 관련된 모든 구성 단편을 제거해야합니다.

0

우분투 14.04로 업그레이드 한 후 나는 똑같은 문제가있었습니다. 몇 가지 문제가있었습니다. 하나는 여러 명의 승객이 탑승하는 것으로 끝났습니다.

#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 

지금 승객이 제대로

를로드