During installation, yii2 got this error. enter image description here

Many people advise finding out the username of apache and giving it privileges to the ./assets directory by executing this command,
ps -ef | grep apache | grep -v grep

console displays this

  • one
    need rights to this directory. chmod 777 - Urmuz Tagizade
  • I tried it, it does not help - yutsura
  • 2
    SElinux is blocking, see here for a solution. If you quickly check, then register chcon -R -t httpd_sys_rw_content_t /ПУТЬ/ИМЯ_ПАПКИ - Kirill

2 answers 2

The solution turned out to be very simple, it was enough to click on the 'Details' button in the SELinux error browser.

    I recently encountered this problem on a CentOS server.

    The solution to the problem was written in the comment to the question, but I want to issue it in the form of an answer:

     chcon -R -t httpd_sys_rw_content_t /path/to/folder 

    As @ k-lobastov said: " Blocks SELinux ", even if the rights (CHMOD) cost 777.