{
    "content": [
        {
            "type": "text",
            "text": "# a2enmod(8) (man)\n\n**Summary:** a2enmod, a2dismod - enable or disable an apache2 module\n\n**Synopsis:** a2enmod [-q|--quiet] [-m|--maintmode] [ module ]\na2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module ]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -q | --quiet | — | Don't show informative messages. |\n| -f | --force | — | When disabling a module, also cascade disables all modules that depends on it. |\n| -m | --maintmode | — | Enables the maintainer mode, that is the program invocation is effectuated automati‐ cally by a maintainer script. This  |\n| -p | --purge | — | When disabling a module, purge all traces of the module in the internal state data base. |\n\n## Examples\n\n- `a2enmod imagemap`\n- `a2dismod mimemagic`\n- `Enables the modimagemap module, and disables the modmimemagic module.`\n\n## See Also\n\n- apache2ctl(8)\n- a2enconf(8)\n- a2disconf(8)\n- a2ensite(8)\n- a2dissite(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (11 lines)\n- **OPTIONS** (1 lines) — 4 subsections\n  - -q, --quiet (2 lines)\n  - -f, --force (2 lines)\n  - -m, --maintmode (3 lines)\n  - -p, --purge (3 lines)\n- **EXIT STATUS** (3 lines)\n- **EXAMPLES** (5 lines)\n- **FILES** (1 lines) — 2 subsections\n  - /etc/apache2/mods-available (2 lines)\n  - /etc/apache2/mods-enabled (2 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (6 lines)\n\n## Full Content\n\n### NAME\n\na2enmod, a2dismod - enable or disable an apache2 module\n\n### SYNOPSIS\n\na2enmod [-q|--quiet] [-m|--maintmode] [ module ]\n\na2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module ]\n\n### DESCRIPTION\n\nThis manual page documents briefly the a2enmod and a2dismod commands.\n\na2enmod  is  a script that enables the specified module within the apache2 configuration.  It\ndoes this by creating symlinks within /etc/apache2/mods-enabled.  Likewise, a2dismod disables\na  module by removing those symlinks.  It is not an error to enable a module which is already\nenabled, or to disable one which is already disabled.\n\nNote that many modules have, in addition to a .load file, an associated .conf file.  Enabling\nthe  module  puts  the configuration directives in the .conf file as directives into the main\nserver context of apache2.\n\n### OPTIONS\n\n#### -q, --quiet\n\nDon't show informative messages.\n\n#### -f, --force\n\nWhen disabling a module, also cascade disables all modules that depends on it.\n\n#### -m, --maintmode\n\nEnables the maintainer mode, that is the program invocation is  effectuated  automati‐\ncally by a maintainer script. This switch should not be used by end users.\n\n#### -p, --purge\n\nWhen  disabling  a  module,  purge all traces of the module in the internal state data\nbase.\n\n### EXIT STATUS\n\na2enmod and a2dismod exit with status 0 if all modules are processed successfully, 1  if  er‐\nrors occur, 2 if an invalid option was used.\n\n### EXAMPLES\n\na2enmod imagemap\na2dismod mimemagic\n\nEnables the modimagemap module, and disables the modmimemagic module.\n\n### FILES\n\n#### /etc/apache2/mods-available\n\nDirectory with files giving information on available modules.\n\n#### /etc/apache2/mods-enabled\n\nDirectory with links to the files in mods-available for enabled modules.\n\n### SEE ALSO\n\napache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8).\n\n### AUTHOR\n\nThis manual page was written by Daniel Stone <daniel@sfarc.net> for the Debian GNU/Linux dis‐\ntribution, as it is a Debian-specific script with the package.\n\n\n\n12 October 2006                                A2ENMOD(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "a2enmod",
        "section": "8",
        "mode": "man",
        "summary": "a2enmod, a2dismod - enable or disable an apache2 module",
        "synopsis": "a2enmod [-q|--quiet] [-m|--maintmode] [ module ]\na2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module ]",
        "flags": [
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Don't show informative messages."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "When disabling a module, also cascade disables all modules that depends on it."
            },
            {
                "flag": "-m",
                "long": "--maintmode",
                "arg": null,
                "description": "Enables the maintainer mode, that is the program invocation is effectuated automati‐ cally by a maintainer script. This switch should not be used by end users."
            },
            {
                "flag": "-p",
                "long": "--purge",
                "arg": null,
                "description": "When disabling a module, purge all traces of the module in the internal state data base."
            }
        ],
        "examples": [
            "a2enmod imagemap",
            "a2dismod mimemagic",
            "Enables the modimagemap module, and disables the modmimemagic module."
        ],
        "see_also": [
            {
                "name": "apache2ctl",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/apache2ctl/8/json"
            },
            {
                "name": "a2enconf",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/a2enconf/8/json"
            },
            {
                "name": "a2disconf",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/a2disconf/8/json"
            },
            {
                "name": "a2ensite",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/a2ensite/8/json"
            },
            {
                "name": "a2dissite",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/a2dissite/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-q, --quiet",
                        "lines": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-f, --force",
                        "lines": 2,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-m, --maintmode",
                        "lines": 3,
                        "flag": "-m",
                        "long": "--maintmode"
                    },
                    {
                        "name": "-p, --purge",
                        "lines": 3,
                        "flag": "-p",
                        "long": "--purge"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/etc/apache2/mods-available",
                        "lines": 2
                    },
                    {
                        "name": "/etc/apache2/mods-enabled",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}