httpd
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.[1]
In general, httpd should not be invoked directly, but rather should be invoked via apachectl.[1]
Documentation
- man 8 'httpd' [EN]
Syntax
httpd [PARAMETER ...]
Parameters
- -c DIRECTIVE
- Process the configuration DIRECTIVE after reading config files.
- -C DIRECTIVE
- Process the configuration DIRECTIVE before reading config files.
- -d PATH
- Set the initial value for the ServerRoot directive to PATH. This can be overridden by the ServerRoot directive in the configuration file.
- -e LEVEL
- Sets the LogLevel to LEVEL during server startup. This is useful for temporarily increasing the verbosity of the error messages to find problems during startup.
- -E FILE
- Send error messages during server startup to FILE.
- -f FILE
- Uses the directives in the FILE config on startup. If config does not begin with a /, then it is taken to be a path relative to the ServerRoot.
- -k start|restart|graceful|stop|graceful-stop
- Signals httpd to start, restart, or stop.
- -l
- Output a list of modules compiled into the server. This will not list dynamically loaded modules included using the LoadModule directive.
- -L
- Output a list of directives provided by static modules, together with expected arguments and places where the directive is valid. Directives provided by shared modules are not listed.
- -t
- Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed.
- -v
- Print the version of httpd, and then exit.
- -V
- Print the version and build parameters of httpd, and then exit.