How To Enable Apache Modules in Ubuntu

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 of 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 particular module has been compiled on your system you should look in the /etc/apache2/mods-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 typing sudo a2enmod. The a2enmod program will then give you a list of all the modules available and you can type the name of the module you want to enable. The module will then 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 should be done and Apache should be using the module.

Typical Ubuntu Apache Modules

Here is a list of the Apache modules that should 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值