nginx selinux php-fpm error Permission denied

[crit] 24496#24496: *2747 connect() to 127.0.0.1:8000 failed (13: Permission denied) while connecting to upstream, client: , server: , request: “GET /test.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:8000”

[error] 24496#24496: *2731 open() index.html failed (13: Permission denied), client: , server: request: “GET /index.html HTTP/1.1”, host:

Profit

setsebool -P httpd_can_network_connect 1
sudo setfacl -m user:nginx:r /home/foo/bar
sudo setfacl -b /home/foo/bar
https://www.nginx.com/blog/using-nginx-plus-with-selinux/

Comments are closed.