{
    "mode": "man",
    "parameter": "a2enconf",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/a2enconf/8/json",
    "generated": "2026-06-15T16:43:04Z",
    "synopsis": "a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]\na2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]",
    "sections": {
        "NAME": {
            "content": "a2enconf, a2disconf - enable or disable an apache2 configuration file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]\n\na2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This manual page documents briefly the a2enconf and a2disconf commands.\n\na2enconf is a script that enables the specified configuration file within the apache2 config‐\nuration.  It does this by  creating  symlinks  within  /etc/apache2/conf-enabled.   Likewise,\na2disconf  disables  a  specific configuration part by removing those symlinks.  It is not an\nerror to enable a configuration which is already enabled, or to disable one which is  already\ndisabled.\n\nNote  that  many configuration file may have a dependency to specific modules.  Unlike module\ndependencies, these are not resolved automatically. Configuration  fragments  stored  in  the\nconf-available  directory  are  considered non-essential or being installed and manged by re‐\nverse dependencies (e.g. web scripts).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-q, --quiet",
                    "content": "Don't show informative messages.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-m, --maintmode",
                    "content": "Enables 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",
                    "flag": "-m",
                    "long": "--maintmode"
                },
                {
                    "name": "-p, --purge",
                    "content": "When  disabling  a  module,  purge all traces of the module in the internal state data\nbase.\n",
                    "flag": "-p",
                    "long": "--purge"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "a2enconf and a2disconf exit with status 0 if all configurations are processed successfully, 1\nif errors occur, 2 if an invalid option was used.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "a2enconf security\na2disconf charset\n\nEnables  Apache  security directives stored in the security configuration files, and disables\nthe charset configuration.\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/etc/apache2/conf-available",
                    "content": "Directory with files giving information on available configuration files.\n"
                },
                {
                    "name": "/etc/apache2/conf-enabled",
                    "content": "Directory with links to the files in conf-available for enabled configuration files.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8).\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This manual page was written by Arno Toell <debian@toell.net> for the Debian  GNU/Linux  dis‐\ntribution, as it is a Debian-specific script with the package.\n\n\n\n14 February 2012                               A2ENCONF(8)",
            "subsections": []
        }
    },
    "summary": "a2enconf, a2disconf - enable or disable an apache2 configuration file",
    "flags": [
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Don't show informative messages."
        },
        {
            "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": [
        "a2enconf security",
        "a2disconf charset",
        "Enables  Apache  security directives stored in the security configuration files, and disables",
        "the charset configuration."
    ],
    "see_also": [
        {
            "name": "apache2ctl",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/apache2ctl/8/json"
        },
        {
            "name": "a2enmod",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/a2enmod/8/json"
        },
        {
            "name": "a2dismod",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/a2dismod/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"
        }
    ]
}