Problem restarting apache after passenger installation

9 views
Skip to first unread message

george

unread,
Mar 24, 2010, 9:57:41 AM3/24/10
to Phusion Passenger Discussions
I Have installed ruby enterprise edition(latest) and have installed
Passenger 2.2.11 on a Centos 5.2. Everything installed smoothly to
the /opt/ directory.

sudo ./ruby-enterprise/installer

then
sudo /opt/ruby-enterprise/bin/passenger-install-apache2-module

Then passenger says that I paste the lines below to httpd.conf file

sudo nano /etc/init.d/httpd/conf/httpd.conf
then paste

LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.01/lib/
ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/
gems/passenger-2.2.11
PassengerRuby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby

and then try to restart Apache
sudo /etc/init.d/httpd restart

I get an error

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 202 of /etc/httpd/conf/
httpd.conf: Cannot load /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/
gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so into
server: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
passenger-2.2.11/ext/apache2/mod_passenger.so: failed to map segment
from shared object: Permission denied
[FAILED]

Why is this happening?

Thanks

Reply all
Reply to author
Forward
0 new messages