2016-06-06 2 views
0

passenger_module을 Apache에로드 할 때 문제가 있습니다. Apache에서 passenger_module로드 중

# /usr/local/apache/conf.d/passenger.conf 

LoadModule passenger_module modules/mod_passenger.so 

<IfModule mod_passenger.c> 
    PassengerRoot /usr/lib/ruby/1.8/phusion_passenger/locations.ini 
    PassengerRuby /usr/bin/ruby 
    PassengerInstanceRegistryDir /var/run/passenger-instreg 
</IfModule> 

나는 위의 설정 파일에 modules/mod_passenger.so 상대를 찾을 수 없기 때문에

, 나는 내가 /usr/lib64/httpd/modules/mod_passenger.so에서 어떤 다른 곳에서 발견 된 mod_passenger 파일을 지정했습니다. 그래서 새로운 설정은 다음과 같습니다

httpd: Syntax error on line 28 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.conf: 
Syntax error on line 3 of /usr/local/apache/conf.d/passenger.conf: Cannot load /usr/lib64/httpd/modules/mod_passenger.so into server: /usr/lib64/httpd/modules/mod_passenger.so: undefined symbol: ap_escape_html 

그것은 실제로 아파치 설정의 상단에 장전 : 실행

LoadModule passenger_module /usr/lib64/httpd/modules/mod_passenger.so 

<IfModule mod_passenger.c> 
    PassengerRoot /usr/lib/ruby/1.8/phusion_passenger/locations.ini 
    PassengerRuby /usr/bin/ruby 
    PassengerInstanceRegistryDir /var/run/passenger-instreg 
</IfModule> 

service httpd restart 날이 오류를 얻을 수 있습니다. 나는 그런데

수행하는 경우 :

/usr/bin/passenger-config validate-install 

내가 얻을 것이다 : 나는 y을 선택한 경우

You are about to validate Passenger against the following 
Apache installation: 

    Apache 2.4.16 
    apxs2  : /usr/bin/apxs 
    Executable: /usr/local/apache/bin/httpd 

However, 1 other Apache installation(s) have been found on your system: 

    Apache 2.4.16 
    apxs2  : /usr/local/apache/bin/apxs 
    Executable: /usr/local/apache/bin/httpd 

, 내가 얻을 것이다 :

* Checking whether this Passenger install is in PATH... ✓ 
* Checking whether there are no other Passenger installations... ✓ 
* Checking whether Apache is installed... ✓ 
* Checking whether the Passenger module is correctly configured in Apache... ✓ 

그것을 너희들이이 문제에 관해 의견을 나눌 수 있다면 좋을 것이다. 당신이해야 할 일이 있으면 더 많은 정보를 물어보십시오. 미리 감사드립니다. 내가 centos-release-6-8.el6.centos.12.3.x86_64

답변

0

내가 CentOS의 7, 아파치 2.4 및 여객 5.0.28 모든 냠 설치를 실행하고 사용하고

. 나는 승객을 아파치 모듈로 운영하고있다.

CentOS 6이 있고 아파치가 맞춤 설치 인 것처럼 보입니다. 그러나 설정 파일을 살펴 보는 것이 도움이 될 것이라고 생각합니다.

내 서버에있는 승객 설정 사이에 분할 : 내가 모듈 자체를 볼 수 있습니다

# /etc/httpd/conf.modules.d/10-passenger.conf 

### Begin automatically installed Phusion Passenger load snippet ### 

LoadModule passenger_module modules/mod_passenger.so 

### End automatically installed Phusion Passenger load snippet ### 

# /etc/httpd/conf.d/passenger.conf 

### Begin automatically installed Phusion Passenger config snippet ### 

<IfModule mod_passenger.c> 
    PassengerRoot /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini 
    PassengerRuby /usr/bin/ruby 
    PassengerInstanceRegistryDir /var/run/passenger-instreg 
</IfModule> 

### End automatically installed Phusion Passenger config snippet ### 

, /etc/httpd/modules/mod_passenger.so/usr/lib64/httpd/modules/mod_passenger.so 모두에있는 것으로 보인다. 모든 아파치 모듈이 두 디렉토리에 나타나며 모든 파일이 동일하게 보입니다.

  1. passenger-install-apache2-module을 실행하는 승객을 설치 했습니까?
  2. 아파치 로그에있는 다른 메시지 (보통 /var/log/httpd/error_log)?