R
R
Roma Antonyuk2017-05-09 17:06:27
Yii
Roma Antonyuk, 2017-05-09 17:06:27

yii2 file permissions?

there is a folder "uploads" in the root of the site, how to set it and everything in it with access rights to create a file through yii2? log says "'Failed to create directory "/var/www/online-tour/uploads/passports_photos": mkdir(): Permission denied'"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-05-09
@smilik96

Good afternoon.
sudo chmod -R 777 uploads

G
Grigory Tumakov, 2017-05-09
@VokaMut

Either set read and write permissions via php, or via the
php console: chmod ('uploads', 0644)
console: chmod 644 uploads
More about permissions:
linuxway.ru/pervye-shagi/komanda-chmod-primery-isp...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question