Enable mod_rewrite in Apache2

Using apache2's new module system and a2enmod can be a bit hit and miss at times

I have been playing around with the Akelos PHP framework on my Ubuntu 7 system on my Toshiba Satellite and ran into some problems with accessing the URLs that are listed in the tutorial, which should be available after running the scaffolding command.  I quickly realised that my apache2 instance did not have mod_rewrite enabled.  So I executed the following

sudo a2enmod mod_rewrite

which failed miserably.  So I figured that I needed to install mod_rewrite.  I tried any number of combinations of apt-get install but to no avail.  I searched google from here to eternity, but nothing turned up.  Then I looked through the modules-available directory, something I should have done in the first place, and found the answer.  The mod_rewrite configuration file is called simply rewrite, so in the end this was what came through for me:

sudo a2enmod rewrite

Just a little FYI for you and me to which we can refer back when it happens again.

0 Comments, 0 trackbacks (Trackback URL)

0 responses to Enable mod_rewrite in Apache2

Leave a Comment
  1. (required)
  2. Ignore this field:
  3. Don't put anything in this field:
    Don't put anything here:
  4. Leave this empty:
    (required)
  5. Your email is not publically displayed.