P
P
phpForeve2017-07-01 03:52:03
Nginx
phpForeve, 2017-07-01 03:52:03

Failed to create directory - Permission denied error. What is it?

Such a problem. There is a server, works on Centos 6.9/nginx
Installed yii2 on it. On startup it says

Failed to create directory "/home/vagrant/htdocs/runtime/logs": mkdir(): Permission denied

Granted the rights to the folder 777. Still does not want to.
I found information about SeLinux on the Internet. Began to study, did not help. Firstly, I have it in the SELINUX=disabled status, and secondly, all the rules that I found gave me an error. (Something like, the script was faked, it was not possible to change the script).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Taras Labiak, 2017-07-01
@kissarat

To begin with, it would be disabled https://www.centos.org/docs/5/html/5.1/Deployment_... . You don't need him I don't think

P
Puma Thailand, 2017-07-01
@opium

Create a directory yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question