Httpd Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:


===Adjust Ownership and Permissions===
===Adjust Ownership and Permissions===
For a default installation, httpd is installed by <tt>root</tt> and executed as <tt>apache</tt>. That may lead to situations where the httpd process cannot write the <tt>logs</tt> or the <tt>run</tt> directory.
Adjust ownership as follows:
<pre>
chown apache:apache /var/log/httpd
chown apache:apache /run/httpd
</pre>


===Start at Boot===
===Start at Boot===

Revision as of 21:50, 8 January 2016

Internal

RHEL

Installation

yum install httpd

Post-Installation

Adjust Ownership and Permissions

For a default installation, httpd is installed by root and executed as apache. That may lead to situations where the httpd process cannot write the logs or the run directory.

Adjust ownership as follows:

chown apache:apache /var/log/httpd
chown apache:apache /run/httpd

Start at Boot

systemctl enable httpd