V
V
Vincent12018-05-07 12:02:40
Apache HTTP Server
Vincent1, 2018-05-07 12:02:40

Why do such errors appear in apache's error.log?

The following entries appear in the error log:

2018/05/07 11:54:55 [crit] 29579#29579: *177774 
open() "/home/example/web/example.ru/public_html/images/upload/derevjannye-kresla-skladnaja-mebel-iz_57_1.jpg" 
failed (13: Permission denied), client: 188.162.167.148, server: example.ru, 
request: "GET /images/upload/derevjannye-kresla-skladnaja-mebel-iz_57_1.jpg HTTP/1.1", 
host: "example.ru", referrer: "https://www.google.ru/"

When I try to open the media file using the browser listed in the error log, I have no problems. Where to look for a solution to the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vincent1, 2018-05-08
@Vincent1

Either apache or nginx didn't have enough permissions to read the files in the website folder. I had to change the rights from 600 to 644 and the problem is no more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question