httpd is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be run as a standalone daemon process. When used like this it will create a pool of child processes or threads to handle requests.
In general, httpd should not be invoked directly, but rather should be invoked via apachectl on Unix-based systems or as a service on Windows NT, 2000 and XP and as a console application on Windows 9x and ME.
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ] [ -T ]
On Windows systems, the following additional arguments are available:
httpd [ -k install|config|uninstall ] [ -n name ] [ -w ]
-d serverrootServerRoot directive to serverroot. This can be overridden by the ServerRoot directive in the configuration file. The default is /usr/local/apache2.-f configServerRoot. The default is conf/httpd.conf.-k start|restart|graceful|stop|graceful-stophttpd to start, restart, or stop. See Stopping Apache httpd for more information.-C directive-c directive-D parameter<IfDefine> sections in the configuration files to conditionally skip or process commands at server startup and restart. Also can be used to set certain less-common startup parameters including -DNO_DETACH (prevent the parent from forking) and -DFOREGROUND (prevent the parent from calling setsid() et al).-e levelLogLevel to level during server startup. This is useful for temporarily increasing the verbosity of the error messages to find problems during startup.-E file-h-lLoadModule directive.-L-M-S-T (Available in 2.3.8 and later)-t-vhttpd, and then exit.-Vhttpd, and then exit.-XThe following arguments are available only on the Windows platform:
-k install|config|uninstall-n name-w
© 2018 The Apache Software Foundation
Licensed under the Apache License, Version 2.0.
https://httpd.apache.org/docs/2.4/en/programs/httpd.html