I have weird situation in newly installed server, and it seems that Google can\'t help me this time. I can\'t connect to (remote) mysql from my php-code. When I try to conn
On CentOs 6, you can use the following (without -P)
-P
setsebool httpd_can_network_connect=1