php mkdir keeps www-data ownership
Hello, I have lot of sites running on Ispconfig3, excellent job! Except last one where I need to create random upload folders from php. Php settings: MOD-PHP.
Using Cakephp3 (new Folder), or just php (mkdir), results are the same: new folders instead of expected web1234:client1, have ownership:
ls -l
drwxr-sr-x 3 www-data www-data 4096 Mar 21 22:07 e8b8f52771b4b/
Of course it can be done ontime manually with chown. As bypass I used to set chmod g+s uploads/ but it produces uncertain behavior (invisible content).
I need this to correct or maybe just set some config value?