I am having the problem with new created dir from the php code. The problem is caused by the owner settings when creating new dirs. What happens here is as follows:
1) it creates a new dir with owner apache and cmod 666
2) next, when I try to upload images to the created, nothing is uploaded
3) if I change the owner of new directories to my ftp owner (let's say "cinema" as all the directories in the root), everything works fine
My php settings in the conf file: Safe mode Off, RegGlobals Off.
chmod 666 should allow accessing the dir by anyone, but it does not happen
What is wrong here? How can I fix this?