How to enable Apache modules in Ubuntu

Source: Internet
Author: User

Enabling new Apache modules in Ubuntu is an easy task once you learn how. on most systems when you want to enable a new Apache module you just add a loadmodule directive to your httpd. conf but Ubuntu does it quite a bit differently since it is based off
Debian Linux.

What modules does my system have?

Before you can enable a module you need to know if it's available on your system or not. To check if a participant module has been compiled on your system you shoshould look in/Etc/apache2/mod-available/Directory to see if it is listed there.
If it is listed there you are in good shape and can continue with the next step to enable the module. if the Apache module that you want to enable is not there then you will need to seek help elsewhere in order to get it installed/compiled.

The a2enmod command

Now that you have checked to see if the module your want to enable exists on your system you can enable it with the a2enmod command. This is done in the terminal by typingSudo a2enmod. The a2enmod program will then give you a list of all
Modules available and you can type the name of the module you want to enable. The module will be installed and configured and ready to use.

Restart or reload Apache

Now that you have enabled the module you need to restart Apache or tell Apache to reload it's configuration files. This is done using either of the following commands:

Sudo/etc/init. d/apache2 restart
Sudo/etc/init. d/apache2 force-Reload

Now you shoshould be done and Apache shoshould be using the module.

Typical Ubuntu Apache Modules

Here is a list of the Apache modules that shoshould be available on most Ubuntu systems:

  • Actions
  • Alias
  • Asis
  • Auth_basic
  • Auth_digest
  • Authn_alias
  • Authn_anon
  • Authn_dbd
  • Authn_dbm
  • Authn_default
  • Authn_file
  • Authnz_ldap
  • Authz_dbm
  • Authz_default
  • Authz_groupfile
  • Authz_host
  • Authz_owner
  • Authz_user
  • Autoindex
  • Cache
  • Cern_meta
  • Cgid
  • CGI
  • Charset_lite
  • Dav_fs
  • Dav
  • Dav_lock
  • DBD
  • Deflate
  • Dir
  • Disk_cache
  • Dump_io
  • Env
  • Expires
  • Ext_filter
  • File_cache
  • Filter
  • Headers
  • Ident
  • Imagemap
  • Include
  • Info
  • LDAP
  • Log_forensic
  • Mem_cache
  • Mime
  • Mime_magic
  • Negotiation
  • Perl
  • PhP5
  • Proxy_ajp
  • Proxy_balancer
  • Proxy_connect
  • Proxy_ftp
  • Proxy_http
  • Proxy
  • Rewrite
  • Setenvif
  • Speling
  • SSL
  • Status
  • Suexec
  • Unique_id
  • Userdir
  • UserTrack
  • Version
  • Vhost_alias

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.