mysql_connect won't when run from web server

Steven A. DuChene linux-clusters at mindspring.com
Mon May 25 00:44:38 MST 2009


ARGH!

OK, I did the following:

setsebool -P httpd_can_network_connect_db=1
setsebool -P httpd_can_network_connect=1

on the Fedora9 apache server box and now it works.

Thanks all. Why this has to be off by default or not well known that
it needs to be altered from it's default state is beyond me.

-----Original Message-----
>From: Joe <joe at nationnet.com>
>Sent: May 25, 2009 12:10 AM
>To: "Steven A. DuChene" <linux-clusters at mindspring.com>, Main PLUG discussion list <plug-discuss at lists.plug.phoenix.az.us>
>Subject: Re: mysql_connect won't when run from web server
>
>Is selinux enabled? If I remember correctly there is an option that 
>blocks the web server from DB connects unless you enable the rule.
>





More information about the PLUG-discuss mailing list