Tuesday, May 15, 2012

How to install mod_rewrite on Ubuntu 12.04

After you've installed the Apache web-server and php on Ubuntu, you find out there is no mod_rewrite installed and available.

Here is how to install mod_rewrite on Ubuntu 12.04 (actually, this is actual for at least Apache on Ubuntu 6.04).
Launch a terminal and run:

sudo a2enmod rewrite


Restart apache. Done.

3 comments:

  1. Thanks! Because of this blog post I was able to finalize hosting my own blog on Ubuntu 12.04. I was wondering why my permalinks weren't working...

    ReplyDelete
  2. TY :) You saved me lots of time, on my first time using Ubuntu.

    ReplyDelete
  3. Thanks. its solved my .htaccess problem :)

    ReplyDelete