Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@redb redb commented Apr 19, 2016

merci merci

@defenestrator

This comment has been minimized.

Copy link

@defenestrator defenestrator commented Sep 1, 2016

This saved me a minute, thanks!

@martijndwars

This comment has been minimized.

Copy link

@martijndwars martijndwars commented Oct 16, 2016

Thanks!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 8, 2017

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

This comment has been minimized.

Copy link

@wakgari wakgari commented Jun 8, 2017

thank you so much

@thedarsideofit

This comment has been minimized.

Copy link

@thedarsideofit thedarsideofit commented Nov 10, 2017

thanks! @inodecloud

@MathiasReker

This comment has been minimized.

Copy link

@MathiasReker MathiasReker commented Feb 24, 2019

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