How do we configure SElinux to not break Drupal?
Looks like you are connecting to a remote host. You may need to allow httpd to make remote connections. Run these commands as root to set the SELinux variables.

setsebool -P httpd_can_network_connect 1
setsebool -P httpd_can_network_connect_db 1


http://alexbilbie.com/2013/02/selinux-php-mysql/