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?
Asked
Active
Viewed 136 times
1

bill chill
- 15
- 4
1 Answers
0
You actually made access.log into a directory. Try rm -rf /var/log/nginx/access.log
and then nginx -t
and restart NGINX afterwards

Ankesh Anand
- 61
- 8
-
Thank you so much. For some reason ```access.log``` was installed as a directory. – bill chill Dec 31 '21 at 23:16