O'Reilly logo

Apache: The Definitive Guide, Second Edition by Peter Laurie, Ben Laurie

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

2.2. Apache's Flags

httpd (or apache) takes the following flags:

-D name

Defines a name for <IfDefine> directives.

-d directory

Specifies an alternate initial ServerRoot directory.

-f filename

Specifies an alternate ServerConfig file.

-C " directive "

Processes the given directive before reading Config file(s).

-c " directive "

Processes the given directive after reading Config file(s).

-v

Shows version number.

-V

Shows compile settings.

-h

Lists available Config directives.

-l

Lists compiled modules.

-S

Shows parsed settings (currently only vhost).

-t

Runs syntax test for configuration file(s).

-X

   Runs a single copy. This is intended for debugging only, and should not be used otherwise. Can cause a substantial delay in servicing requests.

-i

   Installs Apache as an NT service.

-u

   Uninstalls Apache as an NT service.

-s

   Under NT, prevents Apache registering itself as an NT service. If you are running under Win95 this flag does not seem essential, but it would be advisable to include it anyway. ...

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