178 lines
3.5 KiB
HTML
178 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of A2ENMOD</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>A2ENMOD</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: 12 October 2006<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
a2enmod, a2dismod - enable or disable an apache2 module
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>a2enmod</B>
|
|
|
|
[ [-q|--quiet]
|
|
<I>module</I>]
|
|
|
|
<P>
|
|
|
|
<B>a2dismod</B>
|
|
|
|
[ [-q|--quiet]
|
|
<I>module</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
This manual page documents briefly the
|
|
<B>a2enmod</B>
|
|
|
|
and
|
|
<B>a2dismod</B>
|
|
|
|
commands.
|
|
<P>
|
|
|
|
<B>a2enmod</B>
|
|
|
|
is a script that enables the specified module within the
|
|
<B>apache2</B>
|
|
|
|
configuration. It does this by creating symlinks within
|
|
<B>/etc/apache2/mods-enabled</B>.
|
|
|
|
Likewise,
|
|
<B>a2dismod</B>
|
|
|
|
disables a module by removing those symlinks. It is not an error to
|
|
enable a module which is already enabled, or to disable one which is
|
|
already disabled.
|
|
<P>
|
|
|
|
Note that many modules have, in addition to a .load file, an
|
|
associated .conf file. Enabling the module puts the configuration
|
|
directives in the .conf file as directives into the main server context of
|
|
<B>apache2.</B>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-q, --quiet</B>
|
|
|
|
<DD>
|
|
Don't show informative messages.
|
|
<DT id="2"><B>-m, --maintmode</B>
|
|
|
|
<DD>
|
|
Enables the maintainer mode, that is the program invocation is effectuated
|
|
automatically by a maintainer script. This switch should not be used by end
|
|
users.
|
|
<DT id="3"><B>-p, --purge</B>
|
|
|
|
<DD>
|
|
When disabling a module, purge all traces of the module in the internal state
|
|
data base.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<B>a2enmod</B>
|
|
|
|
and
|
|
<B>a2dismod</B>
|
|
|
|
exit with status 0 if all
|
|
<I>module</I>s
|
|
|
|
are processed successfully, 1 if errors occur, 2 if an invalid option was used.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<DL COMPACT><DT id="4"><DD>
|
|
<B>a2enmod imagemap</B>
|
|
|
|
<BR>
|
|
|
|
<B>a2dismod mime_magic</B>
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
Enables the
|
|
<B>mod_imagemap</B>
|
|
|
|
module, and disables the
|
|
<B>mod_mime_magic</B>
|
|
|
|
module.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="5"><B>/etc/apache2/mods-available</B>
|
|
|
|
<DD>
|
|
Directory with files giving information on available modules.
|
|
<DT id="6"><B>/etc/apache2/mods-enabled</B>
|
|
|
|
<DD>
|
|
Directory with links to the files in
|
|
<B>mods-available</B>
|
|
|
|
for enabled modules.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+apache2ctl">apache2ctl</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+a2enconf">a2enconf</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+a2disconf">a2disconf</A></B>(8).
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
This manual page was written by Daniel Stone <<A HREF="mailto:daniel@sfarc.net">daniel@sfarc.net</A>> for the Debian
|
|
GNU/Linux distribution, as it is a Debian-specific script with the package.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAF">EXIT STATUS</A><DD>
|
|
<DT id="12"><A HREF="#lbAG">EXAMPLES</A><DD>
|
|
<DT id="13"><A HREF="#lbAH">FILES</A><DD>
|
|
<DT id="14"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="15"><A HREF="#lbAJ">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:10 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|