Created
October 14, 2020 11:41
-
-
Save Igcorreia/b51b08d041cfcd12218a455ecfdfc483 to your computer and use it in GitHub Desktop.
Resetting File & Folder Permissions Magento 1.9 & 2.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up permission on Magento 1.9 | |
# set all directories and subdirectories from the application to 775 | |
# set all files to 644 | |
# set directory app/etc/, var/, media/ and all its files and subdirectories to 777 | |
cd <your Magento install dir> | |
find . -type d -exec chmod 775 {} \; | |
find . -type f – exec chmod 644 {} \; | |
chmod 777 -R app/etc/ | |
chmod 777 -R var/ | |
chmod 777 -R media/ | |
# Setting up permission on Magento 2.3 | |
cd <your Magento install dir> | |
find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w {} + | |
find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w {} + | |
chmod u+x bin/magento |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment