我正在使用RVM和Passenger设置生产RHEL 6服务器.我已经通过安装RVM(到我的家庭目录),安装Passenger,并将所需的行添加到httpd.conf中:
LoadModule passenger_module /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11 PassengerRuby /home/em/.rvm/wrappers/ruby-1.9.2-p290@rails_3_production/ruby
但是当我重新启动Apache我得到这个错误…
$sudo /sbin/service httpd restart Stopping httpd: [Failed] Starting httpd: httpd: Syntax error on line 218 of /etc/httpd/conf/httpd.conf: Cannot load /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so into server: /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so: cannot open shared object file: Permission denied [Failed]
实际上,我将整个路径从〜/ .rvm / …开始到777,但是我仍然收到同样的错误.
有什么想法吗?