I was able to connect to a remote MySQL server from the command line on one of my servers, but that server, running php, was not able to make the connection, just returning a frustrating generic "cannot connect" message. The problem was of course selinux, and the solution:
# setsebool -P httpd_can_network_connect=1
Hat tip.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.