tips:linux:selinuxapache
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tips:linux:selinuxapache [2012/06/03 10:26] – created erik | tips:linux:selinuxapache [2012/06/04 07:26] (current) – erik | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SELinux | + | ====== SELinux: Apache Permissions ====== |
To allow files in a directoy to be served by Apache with SELinux enabled: | To allow files in a directoy to be served by Apache with SELinux enabled: | ||
- | chcon -R -t httpd_sys_content_t < | + | |
- | | + | |
To check on the files security permissions use: | To check on the files security permissions use: | ||
- | ls -RZ < | + | |
+ | |||
+ | To allow Apache to send emails use: | ||
+ | |||
+ | setsebool -P httpd_can_sendmail 1 | ||
+ | |||
+ | To check if the permission is on or off, use: | ||
+ | |||
+ | / |
tips/linux/selinuxapache.1338719193.txt.gz · Last modified: 2012/06/03 10:26 by erik