Linux

Nginx Error 13: Permission denied

Saturday, 7th August 2021
I look into /usr/local/apache/domlogs

Saw the error
[crit] 4548#0: *1289399 open() "/var/lib/nginx/tmp/client_body/0000000359" failed (13: Permission denied)

Found this solution: https://github.com/CampbellSoftwareSolutions/docker-osticket/issues/34

Updated the nginx.conf http by including the line client_body_temp_path /tmp 1 2;
Then restarted nginx.
Thanks!
Solved it:

You need to add this to the nginx.conf

http {
    # ...
    client_body_temp_path /tmp 1 2;
    # ...
}
Can you please add this to the config?
There seems to be a permission issue. Chown and all tools I know could not solve it for /var/lib/nginx/tmp/client_body so the only solution I saw was to change the path. Works perfectly now.

 

Popular Posts

Related Posts

Leave a Reply

Your email address will not be published.