I've produced a custom Content management systems with PHP also it uploads files to some directory with 777 permissions onto it. Once the files are submitted they're given 600 with apache being the dog owner, well, i can't download them through FTP because the primary FTP user.

Anybody have ideas? I've attempted altering the permission try not to have privileges because of the dog owner being apache.

You cannot chmod the files, but 'apache' can: after uploading an moving the file,alter the permissions within the same script. Because it is run by apache, it's permitted to do this.


For uploading files you should observe that uploading files without clearly setting permissions after is really a bad practice.

I'd go ahead and take link Nanne provided and start to include that for your upload script. This can be sure that the files receive the right permissions for every situation you'll need them.