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