httpd is the Apache HyperText Transfer Protocol (HTTP) server's main program. Is designed as a stand-alone background process, it will process the request to create a child process or thread pool.
Usually, httpd should not be called directly, but should be in the class by apachectl Unix system calls, in the running as a service in Windows NT/2000/XP/2003 and Windows 95/98/ME as a console in the run.
httpd [-d serverroot] [-f config] [-C directive] [-c directive] [-D parameter] [-e level] [-E file] [-k start | restart | graceful | stop | graceful-stop ] [-R directory] [-h] [-l] [-L] [-S] [-t] [-v] [-V] [-X] [-M]
In the Windows system, you can also use the following parameters:
httpd [-k install | config | uninstall] [-n name] [-w]
ServerRoot directive sets the initial value serverroot. It can be ServerRoot directive in the configuration file is covered. The default value is / usr/local/apache2.
Used in the startup config as a configuration file. If the config is not to "/" at the beginning, it is relative to the ServerRoot path. The default value is conf / httpd.conf.
-K start | restart | graceful | stop | graceful-stop
Send a signal to the httpd start, restart or stop. For more information, please see the Stop Apache.
Reads the configuration file before the first treatment directive of the configuration directives.
After reading the configuration file, and then deal with the configuration directive instructions.
Set the parameters parameter, it is with the configuration file <IfDefine> segment for the server starts and restarts, conditionally skip or process certain commands.
When the server starts, set the LogLevel to level. It is used at boot time, a temporary increase in the level of detail error message to help troubleshoot.
During the server startup error message to file file.
When the server is compiled using the SHARED_CORE rule, which specifies the directory for shared object files directory.
The output of a command-line options are available a brief description.
Output of a static compile the module in the server list. It does not list dynamically loaded using LoadModule command module.
Output of a command list, and includes all instruction and use of effective parameters area.
Output a list of modules has been enabled, including the static compiled in the server module and dynamically loaded as a DSO module.
Display from the configuration file to read and parse the result set (currently only shows the virtual host settings)
Only perform syntax check the configuration file. Check the program syntax parsing immediately after the exit, or return to "0" (OK), or return non-0 value (Error). If you also specify the "-D DUMP_VHOSTS", will display more information on the virtual host configuration.
Display the version of httpd, and then exit.
Show httpd and APR / APR-Util version and build parameters, and then exit.
In debug mode httpd. Start a worker process only, and not with the console from the server.
Only for the Windows platform, the following parameters:
-K install | config | uninstall
Installing Apache as a Windows NT service; change Apache service is started; remove Apache service.
The name of the specified service name Apache
To keep open the console window, so you can read the error message.