'Assumes mods-available, mods-enabled layout.'

def _enable_mod_debian(self, mod_name, temp):

    if (not util.exe_exists(self.conf('dismod'))):
        raise errors.MisconfigurationError('Unable    to    find    a2dismod,    please    make    sure    a2enmod    and    a2dismod    are    configured    correctly    for    certbot.')
    self.reverter.register_undo_command(temp, [self.conf('dismod'), mod_name])
    util.run_script([self.conf('enmod'), mod_name])
