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


/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.modules.d

Log files


/var/log/httpd

1 comment:

  1. She came to visit her neighbor and she showed me this site knowing all slots and sat with her all day at the computer, now we argue who will get the money faster. Cool site design a lot of slots and slot machines

    ReplyDelete