Howto enable or disable a Module in Apache2

The following commands will show you how easy it is to enable or disable a module in Apache2. For this example we play with the well known mod_rewrite Module.

Enable a Module

a2enmod rewrite

After having enabled the Module you must reload Apache with the following Command, a complete restart ist not needed.

/etc/init.d/apache2 reload

Disable a Module

a2dismod rewrite

After having enabled the Module you must reload Apache with the following Command, a complete restart ist not needed.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *