Phusion Passenger Forbidden Permissions被拒绝

时间:2012-12-11 18:09:28

标签: passenger redmine phusion

我正在尝试使用Apache运行Phusion Passenger,当我开始乘客时,我收到以下错误:

=============== Phusion Passenger Standalone web server started ===============
PID file: /root/passenger.3000.pid
Log file: /root/passenger.3000.log
Environment: development
Accessible via: http://0.0.0.0:3000/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
===============================================================================
    2012/12/11 18:01:36 [error] 3188#0: *4 "/root/public/index.html" is forbidden (1
3: Permission denied), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"

我已经看过其他人对此的评论,但他们的答案主要围绕Nginx而不是Apache。任何建议将不胜感激。

1 个答案:

答案 0 :(得分:0)

出于安全原因,Phusion Passenger Standalone将拒绝以root用户身份运行。当您运行passenger start时,它会要求您提供--user,不是吗?好吧,Phusion Passenger Standalone以该用户身份运行,该用户可能无权访问/ root下的任何内容。

您可以放宽/ root权限,也可以将应用程序目录移动到该用户可以访问的位置。