Last active
July 9, 2022 10:41
-
-
Save alexsegura/9650651 to your computer and use it in GitHub Desktop.
Prestashop 1.6 folder permissions
This file contains 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
chmod a+w -R config/ | |
chmod a+w -R cache/ | |
chmod a+w -R log/ | |
chmod a+w -R img/ | |
chmod a+w -R mails/ | |
chmod a+w -R modules/ | |
chmod a+w -R themes/default-bootstrap/lang/ | |
chmod a+w -R themes/default-bootstrap/pdf/lang/ | |
chmod a+w -R themes/default-bootstrap/cache/ | |
chmod a+w -R translations/ | |
chmod a+w -R upload/ | |
chmod a+w -R download/ |
This saved me a minute, thanks!
Thanks!
Your script is bad it sets all those directories and files to publicly accessible.
Your folders should be 755
Files should be 644
sudo find . -type d -exec chmod 755 {} ";"
sudo find . -type f -exec chmod 644 {} ";"
thank you so much
thanks! @inodecloud
I wrote a module for PS doing the same: https://github.com/MathiasReker/filepermissions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
merci merci