I'm running LEMP with PHP7.0.
I've got this in my server block
But when I open the site, it returns a 502 Bad Gateway. Below is the error log.
*1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (13: Permission denied) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: example.com, request: "GET / HTTP1.1", upstream: "fsatcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com"
It says Permission Denied. What's wrong here? I've checked but I can't seem to find what needs to be given what kind of permission.