Previously, NGinx worked fine, now this error:
nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)
Part of nginx.conf:
user debian; worker_processes 4; pid /var/run/nginx.pid;
Previously, everything worked, what happened to him?
from comments:
$ sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] open() "/home/user/logs/nginx.access.log" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed
sudo nginx -t
will analyze the configs and tell you what it doesn't like (if the reason is in the config, of course). - etki