Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How To: Enable apache modules under Debian based system — page 2

Posted by chantra on June 15th, 2006

This entry is part 2 of 2 in the series How To: Enable apache modules under Debian based system

2. Adding modules:

Now, taking into account the strucutre of apache, it is pretty easy to add modules to be loaded by apache. Let's assume that you want to add mime_magic module. To do so, you can either:

  • add it by hand:

    $cd /etc/apache2/mods-enabled
    $ sudo ln -s ../mods-available/mime_magic.conf mime_magic.conf
    $sudo ln -s ../mods-available/mime_magic.load mime_magic.load

    OR

  • add it the debian way with a2enmod:

    $sudo a2enmod
    Which module would you like to enable?
    Your choices are: actions asis auth_anon auth_dbm auth_digest auth_ldap cache cern_meta cgid cgi dav_fs dav deflate disk_cache expires ext_filter file_cache headers imap include info ldap mem_cache mime_magic php5 proxy_connect proxy_ftp proxy_http proxy rewrite speling ssl suexec unique_id userdir usertrack vhost_alias
    Module name? mime_magic
    Module mime_magic installed; run /etc/init.d/apache2 force-reload to enable.

That's it, your module will now be loaded next time you start apache. You can actually avoid restarting apache, by asking it to simply reload its configuration:

$ sudo /etc/init.d/apache2 reload

And here you go, your new added module is included in apache.

Series Navigation<< How To: Enable apache modules under Debian based system

2 Responses to “How To: Enable apache modules under Debian based system — page 2”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>