Skip to content
Advertisement

Why is nginx access.log failing?

I try to use nginx on manjaro by typing up nginx on the terminal, but this comes up:open() "/var/log/nginx/access.log" failed (21: Is a directory). I ran sudo nginx -t and sudo systemctl start nginx.service and they both said the same thing. Is there something I can do to remedy this issue? Also to add, I used systemctl status nginx.service and it says under Loaded: nginx.service and vendor preset were disabled. Is this important?

Advertisement

Answer

You actually made access.log into a directory. Try rm -rf /var/log/nginx/access.log and then nginx -t and restart NGINX afterwards

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement