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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Weired upload permission behaviour


Reply

2 Posts   844 Views

Avatar
dompie

25 August 2010 at 9:07pm (Last edited: 25 August 2010 9:09pm), Community Member, 88 Posts

Hello everyone,

i have a strange problem on file upload permissions. On my development files are created with 0744 permissions and folders also with 0744 permissions.

On live system somehow files are created with 0600 and folders (correctly) with 0755. The create mask in sapphire/filesystem/Filesystem.php seems do be ignored somehow.
For some reason the settings from Filesystem.php seems to be ignored, no matter weather i write 02775 (original value) or 0775.

I have read something about open_basedir bug, but on my systems open_basedir value is empty. Any hints how to fix this problem? I'm running SS2.4.1 on ubuntu with apache.

Avatar
dompie

25 August 2010 at 9:36pm Community Member, 88 Posts

Changing foler_create_mask and file_create_mask to 0755 fixes this behaviour on development system, but does not resolve the issue on live where files still being created with 0600.