Enable / disable Apache 2 modules
Brief guide that explains how to activate or deactivate Apache 2 modules.
How to enable Apache 2 modules
To enable the modules you need to enter the a2enmod command, followed by the name of requested module:
#a2enmod module_name
If you don't remember the name of the module you have to enabled, you should simply not enter any parameters after a2enmod command:
#a2enmod
In this case, you receive a list which show disabled modules, as following example:
Which module would you like to enable? Your choices are: 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 dav_svn dbd deflate dir disk_cache env expires userdir usertrack version vhost_alias Module name?
After module activation, it's necessary to apply the changes made, by running a restart of the server, usually via the command:
#/etc/init.d/apache2 force-reload
Example
To install the mod_rewrite you have to type following commands:
#a2enmod rewrite #/etc/init.d/apache2 force-reload
How to disable Apache 2 modules
The process of deactivation of the module, with relative cancellation of his symbolic link in the directory /etc/apache2/mods-enabled/, is quite similar to that previously shown for activation. The command used this time is a2dismod, which can be followed by module name or used without parameters for a list of options.
In first case, the code will be as follows:
#a2dismod module_name
In second case, simply type
#a2dismod
to receive the list of enabled modules, for example:
Which module would you like to disable? Your choices are: alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi dav dav_svn dir env mime negotiation php5 rewrite setenvif ssl status userdir Module name?
Notes
apache enable rewriting, module activation, deactivate apache module, mod-rewrite, mod-rewrite activation, apache modules, disable modules apache
Publication details
Category: Apache and Web Server
Published by: loryzz on date: 27.01.2008 11:07:11
Last edit by: loryzz on date: 02.04.2008 16:54:26
Ratings
Leave a comment
All comments must be approved by site administrator.
Please write comments on topic. Spam will be never approved.
Apache and Web Server: Linked articles
Installing Apache, MySQL and PHP on Ubuntu published by loryzz in Apache and Web Server
Install SVN on Ubuntu published by loryzz in Apache and Web Server
























Ritorna all'inizio
Based total comments
0 %
Comments percentage
0 %