PDA

View Full Version : Cannot upload to directory unless chown to apache:apache


Xinil
1st August 2007, 05:13
As the title says, I cannot upload an image to a directory that apache is not the owner of. If I create a directory under FTP, in this case, web1_webmaster, I do not have upload access to that folder. Permissions on the folder are set to 775 too.

/images/ with web1_webmaster:web12 -> cannot upload
/images/ with apache:apache -> uploading works

What gives?

till
1st August 2007, 10:53
If you want to upload files with FTP scripts under the same user web1_webmaster, you will have to install SuPHP.

http://www.howtoforge.com/suphp_debian_etch_ispconfig