SELinux se lo impide. Simplemente ejecuta:

# setsebool httpd_can_network_connect=1 httpd_can_network_connect_db=1