D
D
deepin2019-07-31 19:49:00
linux
deepin, 2019-07-31 19:49:00

How to give permission to a folder?

Warning: file_put_contents(/var/www/voynushka.loc/tmp/cache/098f6bcd4621d373cade4e832627b4f6.txt): failed to open stream: Permission denied in /var/www/voynushka.loc/core/libs/Cache.php on line 18
i to be honest, I don’t really understand these rights, but the rights to the /var/www folder were initially set as follows:
sudo chown deepin -R /var/www

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MaksPaverov, 2019-07-31
@deepin

chmod - set permissions
Full permissions - 777

K
Karpion, 2019-07-31
@Karpion

"chown" is to change the owner.
"chmod" is to change permissions.
"ls -ld filename_or_directory" - view owner, group, and permissions.
Plus there are still ACLs, I don’t remember how to change them.
For a start it is necessary to look, from what user there is an unsuccessful access to a file/directory. Well, check not only the access rights to the file, but also the rights of the overlying directories - there, too, m. access denied.

A
Alexey Gorbunov, 2019-08-01
@leha_gorbunov

Follow the command and we will be happy to you.
sudo chmod -R 0777 /var/www

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question