1

I am in developer mode, and have ran php bin/magento setup:static-content:deploy to deploy a custom CSS file. I am now getting this error when loading my website:

1 exception(s): Exception #0 (Magento\Framework\Exception\FileSystemException): The path "_requirejs/frontend/AZ/az/en_US/requirejs-config.js:///home/xxx/public_html/xxx/pub/static/home/xxx/public_html/xx/pub/static/" is not writable

I have changed the permissions of pub and static to 777.

Teja Bhagavan Kollepara
3,8275 gold badges33 silver badges69 bronze badges
asked Jul 14, 2017 at 15:28

2 Answers 2

2

If you're in developer mode, the pub/ folder will automatically regenerate itself when you visit the frontend. Separate deployment is only necessary in production mode.

You can try clearing the pub folder with: rm -rf pub/static/* and then visit the frontend.

Also, you may have an error somewhere in your code, because the path in your error message looks wrong:

"_requirejs/frontend/AZ/az/en_US/requirejs-config.js:///home/xxx/public_html/xxx/pub/static/home/xxx/public_html/xx/pub/static/

answered Jul 14, 2017 at 15:41
1
  • Hey that actually did work, and cleared that issue. Commented Jul 14, 2017 at 17:01
0

Please, not that 777 permission is a security issue if used on Production server. Magento Community recommends to set 777 permissions only when installing new modules and then reset permissions back to safe values.

Permissions to install modules and update Magento software:

find . -type d -exec chmod 700 {} \;
find . -type f -exec chmod 600 {} \;

After install, must secure directories by resetting recommended directory permissions:

find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \; 
find var/ -type f -exec chmod 600 {} \; 
find media/ -type f -exec chmod 600 {} \;
find var/ -type d -exec chmod 700 {} \; 
find media/ -type d -exec chmod 700 {} \;
answered Oct 19, 2017 at 7:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.