OS Manuals

/usr/bin/httpd

Apache HTTP Server

From apache2 2.4.70-r0 (os), captured 2026-11-07 by running httpd -help (exit 1). permalink

Usage: /usr/bin/httpd [-D name] [-d directory] [-f file]
                      [-C "directive"] [-c "directive"]
                      [-k start|restart|graceful|graceful-stop|stop]
                      [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t -D DUMP_INCLUDES: show all included configuration files
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
  -X                 : debug mode (only one worker, do not detach)
Options (18)
OptionDescriptionSource
-D nameSets a configuration parameter which can be used with <IfDefine> sections in the configuration files to conditionally skip or process commands at server startup and restart.help + man
-d directorySet the initial value for the ServerRoot directive to serverroot.help + man
-f fileUses the directives in the file config on startup.help + man
-C "directive"Process the configuration directive before reading config files.help + man
-c "directive"Process the configuration directive after reading config files.help + man
-e levelSets the LogLevel to level during server startup.help + man
-E fileSend error messages during server startup to file.help + man
-vPrint the version of httpd, and then exit.help + man
-VPrint the version and build parameters of httpd, and then exit.help + man
-hOutput a short summary of available command line options.help + man
-lOutput a list of modules compiled into the server.help + man
-LOutput a list of directives provided by static modules, together with expected arguments and places where the directive is valid.help + man
-t -DRun syntax tests for configuration files only.help + man
-SShow the settings as parsed from the config file (currently only shows the virtualhost settings).help + man
-MDump a list of loaded Static and Shared Modules.help + man
-T (AvailableSkip document root check at startup/restart.help + man
-X: debug mode (only one worker, do not detach)help + man
-kSignals httpd to start, restart, or stop. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.