Skip to Content
Learning RHEL Networking
book

Learning RHEL Networking

by Andrew Mallett
June 2015
Intermediate to advanced
216 pages
4h 48m
English
Packt Publishing
Content preview from Learning RHEL Networking

Controlling the Apache web service

When we are ready to test the changes made, we can perform a pre-flight check with the following command:

# apachectl configtest

You may receive an error message reporting that the hostname could not be resolved. This is a warning and is okay for the moment. The warning is shown in the following screenshot:

Controlling the Apache web service

The Syntax Ok message at the end is what we want to see; with this, we know that we can restart the web server. Issuing a reload command to the service will force a graceful restart; wait for the active connections to complete before the restart is initiated:

$ sudo systemctl reload httpd

The effect of the change ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 9781785287831