cancel
Showing results for 
Search instead for 
Did you mean: 

I get 403 after setup permission for group users

I get 403 after setup permission for group users

Hi I get 403 errors after I ran 

cd /var/www/html/magento2 && find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \; && chown -R :apache . && chmod u+x bin/magento

which I followed http://devdocs.magento.com/guides/v2.2/install-gde/prereq/file-system-perms.html, before I install the magento 2.

I have grouped the user user1 and users2 in the group apache. but neither of user1 or user2 is root account. After I give group the permission (I did not use the root account), I get 403 when I enter the website.

And even after I delete all the install files, it is still there. 

 

Can anyone help me? Why this happens