Daniel Banck
Webentwicklung – Webdevelopment
Webentwicklung – Webdevelopment
Getting CakePHP working with cherokee is really simple:
First put your CakePHP files into any directory. For me it’s /home/daniel/Web/dcms
You can delete all the .htaccess files:
/.htaccess
/app/.htaccess
/app/webroot/.htaccess
Add a new virtual host to cherokee, set the document root to the CakePHP webroot:
/home/daniel/Web/dcms/app/webroot
Directory Indexes should be set to index.php
Add a new PHP rule – with the new wizard it’s really simple – and keep the default settings.
Add a new ‘file exists’ rule and let it match ‘Any File’ and handle it as ‘Static Content’.


How we need to modify the default rule. Change the handler to ‘Redirection’ and setup the regex like this:

(Internal, ^.*$, index.php)
That’s it!
Just make sure that the rules are in the correct order (php, any file, default):

Just save and access CakePHP via your defined domain.

June 16, 2009 - 7:22 pm
Nice howto! You really should publish that on the official cherokee website: http://www.cherokee-project.com/doc/cookbook.html
July 28, 2009 - 4:24 pm
With Cherokee version 0.99.20 I had to add an additional regex redirect rule…
Internal – ^/$ – /index.php
Something about the File Exists rule screws up hitting the server root and gives a 403 error. This regex rule corrects it.
July 28, 2009 - 4:26 pm
Or you can add a Fullpath / Rule to index.php
Might be more elegant (;
March 4, 2010 - 4:45 am
Hey, I’m new to Cherokee. Any chance you could elaborate on your last comment?
I cannot get this work work in Cherokee 0.9.43 and I have been searching for hours.
Andrew K’s solution doesn’t seem to work and I don’t understand yours.
March 4, 2010 - 10:34 am
What’s the exact problem you’re encoutering currently, rich97?
A 403 while accessing the path /?
March 4, 2010 - 10:38 am
Ummm, well I’m not sure what I did, but it fixed itself while I was pressing buttons.
But yeah, that _was_ the error I was getting…