i run magento2 get error
"NetworkError: 404 Not Found - http://localhost/magento2/pub/media/"
i tried run php -f bin/magento setup:upgrade
get missing permissions magento2/pub/media
how do fix it. nay help?
Although it might work temporarily in development, you should not use 777 permissions. Magento will write new files with a different set of permissions next time it runs.
We recommend 770/660 permissions with ownership split between a local user and the web server user.
give 777 permission to pub/static folder and var folder then run below command to regenerate all css and js file in pub/static folder if you changed code directly in pub folder then you will loss that data because it dynamically generated files