give apache permission to write files to folder

Posted by user1683645 on Stack Overflow See other posts from Stack Overflow or by user1683645
Published on 2012-11-24T05:02:26Z Indexed on 2012/11/24 5:03 UTC
Read the original article Hit count: 143

Filed under:

I'm trying to give www-data which is the name of the apache on my ubuntu permission to write files to folders.

The entire website is in /media/root/data/ and I've got member folders containing the user specific images.

apache tmp folder is set to: /media/root/data/tmp and the permission is set for www-data to read and write to it.

About member folders that contain images. First off I tried giving www-data the rw permission and upload an image, but it did not work. Everything else in the site works except uploading files.

How do I automaticly give apache rw permission to new member folders? And why cant I write to it?

© Stack Overflow or respective owner

Related posts about apache