Friday, 7 October 2016

RHEL/CentOS 7: Install Apache Web Server

RHEL/CentOS 7: Apache Web Server

Install and get required packages

yum install httpd
yum group install "Web Server"

Check Apache startup

Check if it is enabled;

systemctl is-enabled httpd

If is is disabled, issue the following commands;

systemctl enable httpd
systemctl start httpd

Aswell as systemctl you can use the following the control Apache.

apachectl stop
apachectl start
apachectl graceful

test http://ip_address or from the CLI curl ip_address

Configuration files


Log files


No comments:

Post a Comment