解决:apache 整合redmine 启动报错 mod_passenger.so: failed to map segment from shared object: Permission denied

[root@localhost apache2]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/ruby.conf: 
Cannot load /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.0.pre2/ext/apache2/mod_passenger.so into server: /usr/local/ruby/lib/ruby/gems/1.8/gems
/passenger-3.0.0.pre2/ext/apache2/mod_passenger.so: failed to map segment from shared object: Permission denied [FAILED]

执行:

[root@localhost apache2]# chcon -R -h -t httpd_sys_script_exec_t /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.0.pre2/ext/apache2/mod_passenger.so

原文地址:https://www.cnblogs.com/jifeng/p/1831296.html