O'Reilly logo

Learning RHEL Networking by Andrew Mallett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required