Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Directories are created with bad permissions

Go to End



Community Member, 67 Posts

21 January 2008 at 11:39am

Edited: 21/01/2008 11:39am

If I try to create a new assets directory it gets created by the apache user (in this case, httpd) and with permissions where only the user can write to the directory. This is bad, because at least my hostingprovider claims that uploads are only possible if the target directory is world writeable. Actual testing confirms this.
All this breaks the gallery module for example. Even manually uploading images via FTP doesn't work until I manually create the _resampled folder with good permissions.
Is there a way to change what permissions are set by default for new directories?