PDA

View Full Version : Apache permissions when creates directories



tafaz
04-09-2008, 11:37 AM
hi all i'm nearly new to directadmin and i'm having some problems with permissions

when i create a new domain i chmod uploads directories to be writeable from anyone so apache/php can upload files on them, but if apache/php try to create subdirs i got some permissions problems, here's an example with wordpress

drwxrw-rw- 4 tafaz tafaz 4096 2008-04-09 19:05 uploads

inside uploads wp tries to create this structure 2008/04/files.uploaded

but it hangs when tries to create 04 dir

drwxrwxrwx 2 apache apache 4096 2008-04-09 19:05 2008

2008 dir is writeable by anyone but apache can't create a directory in it

to avoid this i have to set the owner as tafaz:apache ... there's a fix or an automation for this issue?