D
D
Dauren S2017-07-28 14:13:20
CentOS
Dauren S, 2017-07-28 14:13:20

Centos 7 setting write permissions?

I installed centos 7, created a user, configured hosts, installed yii2 via composer. But when I try to launch the site, it says The directory is not writable by the Web process: /home/dauren10/www/mysite.ru/web/assets. The rights to directories and files belong to dauren10. In /etc/php-fpm.d/www.conf user=dauren10 group=dauren10. The site is located in the /home/dauren10/www/mysite folder.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyclop, 2017-07-28
@Cyclop

once the system writes wrong rights - so it is.
probably overwritten the directory with root,
check the rights to this directory with the
getfacl /home/dauren10/www/mysite.ru/web/assets command,
if anything, fix:
rights - chmod 775 /home/dauren10/www/mysite.ru/web/assets
owner - chown dauren10 /home/dauren10/www/mysite.ru/web/assets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question