聚合全网技术文章,根据你的阅读喜好进行个性推荐
1
2
3
4
[root@localhost apache2]# /etc/init.d/httpd restart
[root@localhost apache
]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line210 of /etc/httpd/conf/httpd.conf: Syntax error on line1 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
Starting httpd: httpd: Syntax error on line
210
of /etc/httpd/conf/httpd.conf: Syntax error on line
of /etc/httpd/conf.d/ruby.conf:Cannot load /usr/
local
/ruby/lib/ruby/gems/
1.8
/gems/passenger
-3.0
.
0
.pre
/ext/apache
/mod_passenger.so into server: /usr/
/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
]# chcon -R -h -t httpd_sys_script_exec_t /usr/
/mod_passenger.so
本文转载自:http://blog.sina.com.cn/s/blog_5093fd500101avpi.html