I'm trying to set up a Lighttpd webserver with PHP support. I have basically followed the instructions in this article, but after restarting the server (though I did not receive an error message and
systemctl status lighttpd.service claims it's running), the server is not responding.
/var/log/lighttpd/error.log it says
(mod_fastcgi.c.978) bind failed for: unix:/var/lib/lighttpd/sockets/php-fastcgi-1.socket-0 Permission denied
Which is, itself a straight forward message, apparently the server is lacking the rights to access the
var/lib/lighttpd/sockets directory. However, I did change the ownership of the directory (recursively) to
ls -al /var/lib/lighttpd gives me this:
drwxr-xr-x. 3 lighttpd lighttpd 4096 Mar 13 17:12 . drwxr-xr-x. 42 root root 4096 Mar 13 17:10 .. drwxr-xr-x. 2 lighttpd lighttpd 4096 Mar 13 17:12 sockets
So it looks like that worked and the server should have all the necessary permissions. Is there something here I am not seeing?