V
V
Vadim kyklaed2018-01-18 15:46:21
linux
Vadim kyklaed, 2018-01-18 15:46:21

How to give nginx permissions to work with folders?

Hi, please tell me how to give nginx permissions to work with the django project?
error:
/home/kyklaed/ingeneryenv/ingenery/static/admin/css/responsive.css" failed (13: Permission denied)
he has the following permissions:
-rw-rw-r— 1 kyklaed kyklaed 17894 Jan 18 10:57 / home/kyklaed/ingeneryenv/ingenery/static/admin/css/responsive.css

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-01-18
@kyklaed

chown -R kyklaed:www-data /home/kyklaed/ingeneryenv/ingenery/static
chmod -R 755 /home/kyklaed/ingeneryenv/ingenery/static

V
vlarkanov, 2018-01-18
@vlarkanov

chown nginx:nginx /desired_dir -R ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question