Page 1 of 1

права

Posted: Thu Mar 01, 2018 12:31 am
by Samik
Стоит magento. Когда даю права сайт падает с 403 ошибкой
find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \;
find var/ -type f -exec chmod 600 {} \;
find media/ -type f -exec chmod 600 {} \;
find var/ -type d -exec chmod 700 {} \;
find media/ -type d -exec chmod 700 {} \;
chmod 700 includes
chmod 600 includes/config.php

потом запускаю find ./ -type f -name '.htaccess' -exec chmod 644 {} \;

слетает дизайн в логах (13)Permission denied: /home/admin/web/*/public_html/media/media/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
на public_html 755 владелец admin:admin
почему не читает .htaccess в папках сайта?

Re: права

Posted: Mon Mar 05, 2018 8:32 am
by skurudo
Обычно достаточно вот такого:

Code: Select all

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
https://community.magento.com/t5/Instal ... 3587#M1520