I'm playing around with Fedora3, trying to make apache + php + mysql play well together, but it seems SELinux is getting in the way. I keep getting: "#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)" when using phpMyAdmin.
My understanding of the situation is that apache is running under a diffenet security domain than mysql, specifically apache is running "user_u:system_r:httpd_t" context, while the myqsl socket has the "user_u
bject_r:var_lib_t" security context.
I know SELinux can be disabled, which I did by booting with the option "enforcing=0" and the whole thing worked great. Googling around gave the following url: http://www.codecomments.com/PHP_SQL/message323526.html
, which also suggests turning off SELinux, which defeats the whole Security Enhanced thing!
The article about SELinux on Red Hat Magazine, http://www.redhat.com/magazine/001no...tures/selinux/
, talks about "transition" between security domains, but doesn't specify how to actually implement it...
Thanks in advance :-)