March 3rd, 2008 posted by Bender Rodríguez
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.
"Is not dread of thirst when your well is full, thirst that is unquenchable?"
Kahlil Gibran