Am 14.09.2013 19:10, schrieb Matthew J. Roth:
> Please share some acceptable methods of allowing Apache to write files within
> DocumentRoot.  Searching Google for "Apache write within DocumentRoot" yields 
> a
> lot of results that recommend giving Apache write access.  For example, the
> canonical answer about file permissions on a Linux web server at Server FaultĀ¹
> says:
> 
>   If you have folders that need to be writable by Apache, you can just modify
>   the permission values for the group owner so that www-data has write access.
>   
>     chmod g+w uploads
>     ls -l
>     drwxrws--- 2 eve      www-data   4096 Feb  5 22:52 uploads

www-data is *debian* because on Redhat the user/groups is named "apache"
if you use google add your distribution to the search string!

besides that there a *two* levels to care: FS-permissions *and* SELinux

chown apache:apache /path/to/folder/
chmod 770 /path/to/folder/

http://david-latham.blogspot.co.at/2008/08/allow-httpd-apache-to-write-to-files.html

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to