A
A
adrash kh2018-10-31 15:30:02
Yii
adrash kh, 2018-10-31 15:30:02

What to do with Failed to create directory "/var/www/manager/runtime/cache": mkdir(): Permission denied error in YII2?

Good afternoon. I cloned the repository, configured virtual hosts, then installed composer in the project folder, and the project displays the following error: Failed to create directory "/var/www/manager/runtime/cache": mkdir(): Permission denied
What should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
latush, 2018-10-31
@latush

Give the webserver and/or php-fpm permission to write to /var/www/manager/runtime

U
uRoot, 2018-10-31
@uroot

Check the permissions on the /var/www/manager/runtime/cache folder . You can change it with the chmod command. For: Permission denied - access is denied.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question