我正在尝试使用passenger和apache2来运行rails,但我已经关注了所有内容,但我遇到了这个问题。
Raw process output:
*** ERROR ***: Cannot execute /home/nilay/.rbenv/versions/2.3.1/lib/ruby: Permission denied (13)
我不知道如何修复它我的apachecof文件是这样的:
<VirtualHost *:80>
ServerName nilay.com
ServerAlias nilay.com
ServerAdmin webmaster@localhost
PassengerRuby /home/nilay/.rbenv/versions/2.3.1/lib/ruby
DocumentRoot /home/nilay/rails/pipe/public
RailsEnv development
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/home/nilay/rails/pipe/public">
Options FollowSymLinks
Require all granted
</Directory>
我的rbenv路径是这样的:
/home/nilay/.rbenv/versions/2.3.1/lib/ruby
我不知道问题是什么,请帮我解决这个问题。
在我的日志中,我收到此错误:
[ 2016-08-08 02:48:03.0084 3036/7f565b196700 Pool2/Pool.h:777 ]: Process (pid=5237, group=/home/nilay/rails/pipe#default) no longer exists! Detaching it from the pool.
App 5273 stdout:
App 3070 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:356:in `trap'
App 3070 stderr: :
App 3070 stderr: Invalid argument - SIGKILL
App 3070 stderr: (
App 3070 stderr: Errno::EINVAL
App 3070 stderr: )
App 3070 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:356:in `block in reset_signal_handlers'
App 3070 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:354:in `each_key'
App 3070 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:354:in `reset_signal_handlers'
App 3070 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:182:in `main_loop'
App 3070 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:161:in `<module:App>'
App 3070 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
App 3070 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
[ 2016-08-08 02:48:08.0183 3036/7f565b196700 Pool2/Pool.h:777 ]: Process (pid=5273, group=/home/nilay/rails/pipe#default) no longer exists! Detaching it from the pool.
App 5283 stdout:
我收到500内部服务器错误
答案 0 :(得分:2)
将hostname
的值替换为此命令的输出:
http://hostname_found_on_mac:3000/