how to make cakephp to enable mod rewrite apache

apt-get install apache2 (it will install apache 2.2)
on current debian system you can enable mod_rewrite with simple command
a2enmod rewrite
old style, you can skip this portion
now use locate to find if the mod_rewrite.so is availble on your server
updatedb
locate mod_rewrite.so

it will found in “/usr/lib/apache2/modules”
new apache follow some folders to enable and disable mods.
so now do this:
cd /etc/apache2/mods-enabled
touch rewrite.load
gedit rewrite.load (you may use any editor to edit this file)

now paste this following line
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so


thanks to: http://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/

tested on debian squeeze with apache2 and phpcake2

Comments