Apart from setting write permissions with chmod, the following SELinux label should be set for the directory to be writable by Apache:
unconfined_u:object_r:httpd_sys_rw_content_t:s0
For example:
chcon -R unconfined_u:object_r:httpd_sys_rw_content_t:s0 /var/www/html/your_directory
-R stands for "recursively" here.
unconfined_u:object_r:httpd_sys_rw_content_t:s0
For example:
chcon -R unconfined_u:object_r:httpd_sys_rw_content_t:s0 /var/www/html/your_directory
-R stands for "recursively" here.
No comments:
Post a Comment