I have the same problem. attachments has 777 but randomly created folder has 750 and the owner is "apache". I can reset owner using DirectAdmin but it's late because next time it creates another random folder...

upd: I asked my hoster to switch off SAFE_MODE and it has just installed.