I've just upgraded magento from 2.4.0 to 2.4.7, but now when I upload image into media gallery so, image not showing on frontend but working fine on backend.
https://i.imgur.com/MM3wSxc.png
https://i.imgur.com/kyyNDDY.png
Does anyone know how to fix this?
-
1try this if you using nginx magento.stackexchange.com/a/89705/51548– Rizwan KhanCommented May 29 at 4:25
-
Thanks @Rizwan that's work for me..– Keval ChauhanCommented May 29 at 10:35
Add a comment
|
1 Answer
This is caused by wrong file permission. So try to execute the following commands:
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo find var pub/static pub/media app/etc -type f -exec chmod g+w {} \;
sudo find var pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
sudo chmod u+x bin/magento
-
i also tried above solution but that didn't work for me... Commented May 28 at 11:01