Search code examples
centospassenger

Centos 6.4 - Failed to map segment from shared object: Permission denied


Hi, I am trying to install Phusion Passenger. Installation was successful but I am getting the following error on doing service httpd start

Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/passenger.conf: Cannot load /usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so into server: /usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so: failed to map segment from shared object: Permission denied [FAILED]


Solution

  • You may refer the following link for Phusion Passenger installation guide. http://www.modrails.com/documentation/Users%20guide%20Apache.html#installation

    Or else execute this command in root to change the security context of “httpd_sys_script_exec_t” which allows Apache to execute.

    chcon -R -h -t httpd_sys_script_exec_t /usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so