i'm having problem loading passenger_module
apache.
# /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>
since can't find modules/mod_passenger.so
relative above config file, specified mod_passenger
file found somewhere else @ /usr/lib64/httpd/modules/mod_passenger.so
. new config be:
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>
running service httpd restart
yield me error:
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 server: /usr/lib64/httpd/modules/mod_passenger.so: undefined symbol: ap_escape_html
it's loaded on top of apache config.
by way, if do:
/usr/bin/passenger-config validate-install
i'll get:
you validate passenger against 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 system: apache 2.4.16 apxs2 : /usr/local/apache/bin/apxs executable: /usr/local/apache/bin/httpd
if chose y
, i'll get:
* checking whether passenger install in path... ✓ * checking whether there no other passenger installations... ✓ * checking whether apache installed... ✓ * checking whether passenger module correctly configured in apache... ✓
it'd great if guys can shared light on issue. feel free ask more info if have to. in advance.
i'm using centos-release-6-8.el6.centos.12.3.x86_64
i running centos 7, apache 2.4 , passenger 5.0.28 installed yum. running passenger apache module.
you have centos 6 , looks apache custom install, thought going through config files might help.
the passenger config on server split between:
# /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 ###
and
# /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 ###
i can see module itself, seems reside in both /etc/httpd/modules/mod_passenger.so
, /usr/lib64/httpd/modules/mod_passenger.so
. apache modules show in both directories , files same.
- did install passenger running
passenger-install-apache2-module
? - any other messages in apache log (usually
/var/log/httpd/error_log
)?