Shaig Khaligli Shaig Khaligli - 1 year ago 851
PHP Question

Yii2 - The directory is not writable by the Web process | frontend/web/assets

I have searched this issue on internet but none of them helped me.
Also this one doesn`t:

**chgrp apache /path/to/mydir
chmod g+w /path/to/mydir**

My server is centos 7. Can you help me?

Sam Sam
Answer Source

Try with following commands:

  1. This will give you the name of apache user.
    ps -ef | grep apache | grep -v grep

    In most of the cases the user will be www-data.

  2. Run these command after going into the /frontend/web folder:
    sudo chgrp www-data ./assets
    sudo chmod g+w ./assets/

Your problem will be solved.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download