(13)Permission denied: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed – this error is because of httpd/apache2 has been denied permission to connect to IP address and port.
Main reason for this error is SELinux. Here SELinux not permitting httpd/apache2 to make network connections.
To resolve it, you need to change an SELinux boolean value (which will automatically persist across reboots). You may also required to restart httpd/apache2 to reset the proxy worker, although this isn’t strictly required.
Run either of following command to allow SELinux to permit httpd/apache2 to make network connections:
$ /usr/sbin/setsebool httpd_can_network_connect 1
or
$ /usr/sbin/setsebool httpd_can_network_connect true
Then restart httpd/apache2.
In RED HAT 6.3 (RHEL) i have used:
/usr/sbin/setsebool httpd_can_network_connect true
This [SOLVED] my problem!!!!! after 6 hours searching!! Thanks!
Thanks for writing comment 🙂
Thanks!
Hi, very useful. However I found that this got lost on reboot (Centos/RHEL 6.3).
I worked round with “-P”
/usr/sbin/setsebool -P httpd_can_network_connect true
Not sure if there’s is a bug in RHEL, but followed the workaround
See
https://bugzilla.redhat.com/show_bug.cgi?id=750271
Dave, Thanks for the update.
THANK YOU VERY MUCH!!!! I spent hours trying to fix this issue.
Thanks for the comment 🙂
Good one! Thanks!
Thank you !!
you saved my life “) . Thank you.
Thank youuuuuu OMG 1 hour offline all my websites
Thanks forr a great read