首页  :: 新随笔  :: 管理

解决:Cannot create FIFO file /tmp/passenger.5455/.guard: Permission

Posted on 2010-09-21 16:11  季枫  阅读(1354)  评论(0编辑  收藏  举报

apache使用 Phusion Passenger运行redmine是apache日志错误:
[Mon Sep 20 22:18:36 2010] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Mon Sep 20 22:18:36 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Sep 20 22:18:36 2010] [error] *** Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.5455/.guard: Permission denied (13)
[Mon Sep 20 22:18:36 2010] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 20 22:18:36 2010] [notice] Digest: done
[Mon Sep 20 22:18:36 2010] [error] *** Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.5457/.guard: Permission denied (13)
[Mon Sep 20 22:18:36 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon Sep 20 22:23:11 2010] [notice] caught SIGTERM, shutting down
问题原因:
SELinux造成apache没有权限
解决办法:
让它不保护apache,在shell中执行:
setsebool -P httpd_disable_trans 1
智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |