CentOS + Apache + Phusion Passenger + SELinux = Fun

129 views
Skip to first unread message

Dmitry A. Ustalov

unread,
Jul 23, 2009, 8:01:11 AM7/23/09
to Phusion Passenger Discussions
Hello.

I've installed Passenger Apache2 Module, and trying to start webserver
at my
CentOS 5.3 SELinux-Enforced machine.

Apache starts, but Passenger (certainly) not. Just look at /var/log/
httpd/error_log:

[ pid=5433 file=ext/common/ApplicationPoolServerExecutable.cpp:732
time=2009-07-23 17:47:17.528 ]:
*** Fatal error: Cannot bind Unix socket '/opt/ruby/tmp/passenger.
5427/info/status.socket': Permission denied (13)
in 'int Server::start()' (ApplicationPoolServerExecutable.cpp:
651)

[Thu Jul 23 17:57:05 2009] [notice] core dump file size limit raised
to 4294967295 bytes
[Thu Jul 23 17:57:05 2009] [notice] SELinux policy enabled; httpd
running as context user_u:system_r:httpd_t:s0
[Thu Jul 23 17:57:05 2009] [notice] suEXEC mechanism enabled
(wrapper: /usr/sbin/suexec)
[Thu Jul 23 17:57:05 2009] [error] *** Passenger could not be
initialized because of this error: Could not connect to the
ApplicationPool server: Connection reset by peer (104)
[Thu Jul 23 17:57:05 2009] [notice] Digest: generating secret for
digest authentication ...
[Thu Jul 23 17:57:05 2009] [notice] Digest: done
[Thu Jul 23 17:57:05 2009] [error] *** Passenger could not be
initialized because of this error: Could not connect to the
ApplicationPool server: Connection reset by peer (104)
[Thu Jul 23 17:57:05 2009] [notice] Apache/2.2.3 (Red Hat) configured
-- resuming normal operations

And simultaneously with it, lots of funny messages appears at
setroubleshoot browser.

Is there a way to start Passenger over SELinux-Enforced System? How?

Thanks.

Dmitry A. Ustalov

unread,
Jul 23, 2009, 10:33:18 AM7/23/09
to Phusion Passenger Discussions
So, don't care. I turned off this garbage.
Reply all
Reply to author
Forward
0 new messages