User Tools

Site Tools


tips:linux:selinuxapache

This is an old revision of the document!


SELinux: Apache Permissions

To allow files in a directoy to be served by Apache with SELinux enabled:

chcon -R -t httpd_sys_content_t <directory>
 

To check on the files security permissions use:

ls -RZ <directory>
 

To allow Apache to send emails use:

setsebool -P httpd_can_sendmail 1

To check if the permission is on or off, use:

/usr/sbin/getsebool httpd_can_sendmail
tips/linux/selinuxapache.1338794741.txt.gz · Last modified: 2012/06/04 07:25 by erik