Magento – Magento 2 : Path not writable

bugmagento2

I'm new to Magento 2 so I still don't have the best experience to debug it.

I recently encountered this issue :

The path "_requirejs/frontend/Magento/luma/en_US:///var/www/html/magento/pub/static/var/www/html/magento/pub/static/" is not writable

This directly triggers on the home page. I have no idea how to fix it.

Any suggestion would be greatly appreciated as I'm still trying to figure out how this new CMS is working.

Best Answer

The solution was only related to permissions issues.

I recommend to anyone facing these kind of issues to run these commands :

cd <your Magento install dir>
find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chown -R :<web server group> .
chmod u+x bin/magento

source: devdocs.magento.com

Related Topic