Skip to content

Instantly share code, notes, and snippets.

@alexsegura
Last active July 9, 2022 10:41
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • 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/
@redb
Copy link

redb commented Apr 19, 2016

merci merci

@defenestrator
Copy link

This saved me a minute, thanks!

@martijndwars
Copy link

Thanks!

@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