User Tools

Site Tools


tips:linux:selinuxapache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:linux:selinuxapache [2012/06/04 07:23] eriktips:linux:selinuxapache [2012/06/04 07:26] (current) erik
Line 3: Line 3:
 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 <directory> +  chcon -R -t httpd_sys_content_t <directory> 
-   +
 To check on the files security permissions use: To check on the files security permissions use:
  
-   ls -RZ <directory> +  ls -RZ <directory> 
-   +
 To allow Apache to send emails use: To allow Apache to send emails use:
  
-   setsebool -P httpd_can_sendmail 1+  setsebool -P httpd_can_sendmail 1
      
 To check if the permission is on or off, use: To check if the permission is on or off, use:
      
-   /usr/sbin/getsebool httpd_can_sendmail+  /usr/sbin/getsebool httpd_can_sendmail
tips/linux/selinuxapache.1338794596.txt.gz · Last modified: 2012/06/04 07:23 by erik