Does anybody know how to fix this problem?
I have an upload script the way the script works is it will create a new folder and put the file in that folder.
The problem is folder created by php is owned by Apache:Apache
And I tried using chown in my upload script, but it doesnt works (the owner still Apache).

Any suggestion? Tips?

Thank you

    Well, unless PHP is running as CGI and uses your credentials, I don't know of any way around this.

    You can always use [man]umask/man to alter the permissions that PHP applies to newly created files. Other than that, I'm not sure what else to suggest.

      a month later

      you could always try connecting via ftp and doing it.

      ie : ftp_mkdir

        Write a Reply...