Skip to content

Instantly share code, notes, and snippets.

@alexsegura
Last active July 9, 2022 10:41
Show Gist options
  • Save alexsegura/9650651 to your computer and use it in GitHub Desktop.
Save alexsegura/9650651 to your computer and use it in GitHub Desktop.
Prestashop 1.6 folder permissions
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/
@inodecloud
Copy link

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 {} ";"

@wakgari
Copy link

wakgari commented Jun 8, 2017

thank you so much

@thedarsideofit
Copy link

thanks! @inodecloud

@MathiasReker
Copy link

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