CakePHP and Cherokee
Getting CakePHP working with cherokee is really simple:
First put your CakePHP files into any directory. For me it’s
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
/home/daniel/Web/dcms/app/webroot. Directory Indexes should be set to
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)
Just make sure that the rules are in the correct order (php, any file,
Just save and access CakePHP via your defined domain.