Starting and Stopping the Server

At this point, you have your Apache server installed and configured the way you want it. It's time to start it up for the first time.

Starting the Server Manually

The Apache server, httpd, has a few command-line options you can use to set some defaults specifying where httpd will read its configuration directives. The Apache httpd executable understands the following options:

httpd [-D name][-d directory] [-f file]
             [-C "directive"] [-c "directive"]
             [-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T]

The -D option defines a name for use with <IfDefine name> directives in your configuration files. This allows you to conditionally include or exclude sections of your configuration when starting the server.

The -d option ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.