{
    "mode": "man",
    "parameter": "APACHE2",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/APACHE2/8/json",
    "generated": "2026-06-15T14:38:01Z",
    "synopsis": "apache2  [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [\n-e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ -R directory ] [ -h\n] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ]",
    "sections": {
        "NAME": {
            "content": "apache2 - Apache Hypertext Transfer Protocol Server\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "apache2  [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [\n-e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ -R directory ] [ -h\n] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ]\n",
            "subsections": []
        },
        "SUMMARY": {
            "content": "apache2 is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be\nrun as a standalone daemon process. When used like this it will create a pool of  child  pro‐\ncesses or threads to handle requests.\n\nIn  general,  apache2  should  not  be  invoked  directly,  but  rather should be invoked via\n/etc/init.d/apache2 or apache2ctl. The  default  Debian  configuration  requires  environment\nvariables  that  are  defined  in  /etc/apache2/envvars  and  are not available if apache2 is\nstarted directly.  However, apache2ctl can be used to pass arbitrary arguments to apache2.\n",
            "subsections": []
        },
        "DOCUMENTATION": {
            "content": "The   full   documentation   is   available   in    the    apache2-doc    package    or    at\nhttp://httpd.apache.org/docs/2.2/  . Information about Debian specific changes and configura‐\ntion can be found in /usr/share/doc/apache2/README.Debian.gz .\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-d serverroot\nSet the initial value for the ServerRoot directive to serverroot. This can be overrid‐\nden by the ServerRoot directive in the configuration file.\n\n-f config\nUses  the directives in the file config on startup. If config does not begin with a /,\nthen  it  is  taken  to  be  a  path  relative  to  the  ServerRoot.  The  default  is\n/etc/apache2/apache2.conf.\n\n-k start|restart|graceful|stop|graceful-stop\nSignals apache2 to start, restart, or stop. See Stopping Apache for more information.\n\n-C directive\nProcess the configuration directive before reading config files.\n\n-c directive\nProcess the configuration directive after reading config files.\n\n-D parameter\nSets  a configuration parameter which can be used with <IfDefine> sections in the con‐\nfiguration files to conditionally skip or  process  commands  at  server  startup  and\nrestart.\n\n-e level\nSets  the  LogLevel to level during server startup. This is useful for temporarily in‐\ncreasing the verbosity of the error messages to find problems during startup.\n\n-E file\nSend error messages during server startup to file.\n\n-R directory\nWhen the server is compiled using the SHAREDCORE rule, this specifies  the  directory\nfor the shared object files.\n\n-h     Output a short summary of available command line options.\n\n-l     Output  a  list  of  modules  compiled into the server. This will not list dynamically\nloaded modules included using the LoadModule directive.\n\n-L     Output a list of directives together with expected arguments and places where the  di‐\nrective is valid.\n\n-M     Dump a list of loaded Static and Shared Modules.\n\n-S     Show the settings as parsed from the config file (currently only shows the virtualhost\nsettings).\n\n-t     Run syntax tests for configuration files only. The  program  immediately  exits  after\nthese  syntax  parsing tests with either a return code of 0 (Syntax OK) or return code\nnot equal to 0 (Syntax Error). If -D DUMPVHOSTS is also set, details of  the  virtual\nhost  configuration  will  be  printed. If -D DUMPMODULES  is set, all loaded modules\nwill be printed.\n\n-v     Print the version of apache2, and then exit.\n\n-V     Print the version and build parameters of apache2, and then exit.\n\n-X     Run apache2 in debug mode. Only one worker will be started and the server will not de‐\ntach from the console.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "apache2ctl(8), /usr/share/doc/apache2/README.Debian.gz\n\n\n\n\nApache HTTP Server                           2008-04-05                                   APACHE2(8)",
            "subsections": []
        }
    },
    "summary": "apache2 - Apache Hypertext Transfer Protocol Server",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "apache2ctl",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/apache2ctl/8/json"
        }
    ]
}