How To Provide Write Permission for Magento 2.x Directories in Centos

Centos always restricting to write directories, that’s why to provide correct Write Permission for Magento 2 Directories.

Need to run below command at Magento 2 Root in Centos

sudo chcon -R --type httpd_sys_rw_content_t var
sudo chcon -R --type httpd_sys_rw_content_t pub/media
sudo chcon -R --type httpd_sys_rw_content_t pub/static
sudo chcon -R --type httpd_sys_rw_content_t generated

Leave a Reply

Your email address will not be published. Required fields are marked *