Apache-Related Commands

The Apache distribution includes several executables. This section covers only the server binary and related scripts. Chapter 23, “Restricting Access to Your Applications,” and Chapter 26, “Apache Performance Tuning and Virtual Hosting,” cover additional utilities included with the Apache distribution.

Apache Server Binary

The Apache executable is named httpd in Linux/Unix and apache.exe in Windows. It accepts several command-line options, which are described in Table 2.1. You can get a complete listing of options by typing /usr/local/apache2/bin/httpd -h on Linux/Unix, or by typing apache.exe -h from a command prompt on Windows.

Table 2.1. httpd Options
OptionMeaning
-DAllows you to pass a parameter that can be used for ...

Get Sams Teach Yourself PHP, MySQL® and Apache All in One 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.