Why is httpd throwing permissions denied for error_log?
<p>I created a new directory:</p>

<pre><code>mkdir -p /webapps/logs
</code></pre>

<p>Then I set the context and permissions so apache could write to it:</p>

<pre><code>chcon -Rv --type=httpd_sys_content_t /webapps/logs
chmod 2770 -Rv /webapps
chgrp -Rv webadmins /webapps
</code></pre>

<p>Apache is a member of that group:</p>

<pre><code>grep webadmins /etc/group
#Prints out: webadmins:x:1002:apache
</code></pre>

<p>And webadmins is the owning group of the directory:</p>

<pre><code>stat -c "%U %G" /webapps/logs
#Prints out: root webadmins
</code></pre>

<p>So why do I get a permission denied when starting httpd on /webapps/logs/error_log?</p>