Skip to content

Instantly share code, notes, and snippets.

@maxout
Last active June 5, 2024 08:11
Show Gist options
  • Save maxout/9047906 to your computer and use it in GitHub Desktop.
Save maxout/9047906 to your computer and use it in GitHub Desktop.
Set the correct directory permissions for Shopware installation
chmod 777 config.php
chmod 777 -R cache
chmod 777 -R files
chmod 777 -R media
chmod 777 -R engine/Shopware/Plugins/Community
chmod 777 -R logs
chmod 777 -R engine/Shopware/Plugins/Default
chmod 777 -R web/cache/
chmod 777 -R recovery/
chmod 777 -R themes/Frontend
chmod 777 -R recovery/install/data
chmod 777 -R var/
@zsolt-szilagyi
Copy link

1 missing:

chmod 777 -R var/

@Crease29
Copy link

Crease29 commented Jun 1, 2017

Thanks for the helpful gist. You should add chmod 777 -R custom/plugins/.

@adeel-raza
Copy link

It should never be set to 777. This makes it publicly writable and shop-ware documentation strictly advices against this

@Hotte512
Copy link

Hotte512 commented May 1, 2018

a little off topic, but about File Permission...
Does someone have a hints for using SwagMEdiaSftp ? File&Folder Permissons are not set correct by the Plugin....

THX

shopware5/SwagMediaSftp#6

@khuramrr
Copy link

very very bad advise.... 777 should not be given at any case.

@at-judahmakinin
Copy link

very helpful, I was having permission issues on Shopware 6 in dockware with user as www-data, chmod 777 bin/build.sh solved it

@KornKalle
Copy link

That´s very dangerous. I am currently reviewing a broken shopware installation from a customer and was searching for the correct permissions and this is something like the 3rd Search result. PLEASE DONT SET EVERYTHING TO 777

@marsch
Copy link

marsch commented Jun 5, 2024

PLEASE DONT SET EVERYTHING TO 777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment