Permission denied while connecting to upstream

The error message from the above entry concerns the Nginx webserver and php-fpm. The problem is related to SElinux. By default, the webserver is not allowed to connect to the network. To fix this problem, you need to issue the commands below:

setsebool -P httpd_can_network_connect 1

setsebool -P httpd_can_network_relay 1

That’s all. Enjoy with Nginx, php-fpm and SElinux of course 🙂

Dodaj komentarz