T
T
Tesla2016-08-31 14:11:19
linux
Tesla, 2016-08-31 14:11:19

How to fix file permissions?

After transferring the site from the old hosting to the new web server, it gives a 403 error when trying to access any file. If you create a file with your hands next to it, then it is easily accessible from the outside. chown doesn't help. I believe that the problem is in some other hidden properties of the files, but I still could not google it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Inishev, 2016-08-31
@Tesla

There is also chmod. If the web server is running on behalf of another user, then it must have at least read permissions. Try chmod 755 <file or directory>. There is an option -R to set permissions recursively. https://ru.wikipedia.org/wiki/Chmod

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question