Open main menu

CDOT Wiki β

Changes

OPS335 Lab 6

12 bytes removed, 17:06, 26 December 2017
no edit summary
<li>Change the ownership of the '''temp''' and '''logs''' directories so they belong to apache.</li>
<li>This service needs to be able to write to several directories ('''temp''' and '''logs''') that SELinux prevents write access to. If you are in a section that has SELinux set to '''enforcing''', run the following commands to let it know that apache should be allowed to write to files in those directories.
<source lang="bash">
semanage fcontext -a -t httpd_log_t '/var/www/html/webmail/temp(/.*)?'
semanage fcontext -a -t httpd_log_t '/var/www/html/webmail/logs(/.*)?'