[Solved] PHP not connecting to Remote MySQL [duplicate]

[ad_1]

Found this to be an issue with SELinux that is not allowing httpd network connections.

Executing:

setsebool -P httpd_can_network_connect=1

Solved the problem.

[ad_2]

solved PHP not connecting to Remote MySQL [duplicate]