Cherokee Installation Notes

Cherokee is a high-performance web server. It is very fast, flexible and easy to configure.

Configuring Cherokee for Phalcon

Cherokee provides a friendly graphical interface to configure almost every setting available in the web server. Start the cherokee administrator by executing with root /path-to-cherokee/sbin/cherokee-admin

../_images/cherokee-1.jpg

Create a new virtual host by clicking on ‘vServers’, then add a new virtual server:

../_images/cherokee-2.jpg

The recently added virtual server must appear at the left bar of the screen. In the ‘Behaviors’ tab you will see a set of default behaviors for this virtual server. Click the ‘Rule Management’ button. Remove those labeled as ‘Directory /cherokee_themes’ and ‘Directory /icons’:

../_images/cherokee-3.jpg

Add the ‘PHP Language’ behavior using the wizard. This behavior allow you to run PHP applications:

../_images/cherokee-4.jpg

Normally this behavior does not require additional settings. Add another behavior, this time in the ‘Manual Configuration’ section. In ‘Rule Type’ choose ‘File Exists’, then make sure the option ‘Match any file’ is enabled:

../_images/cherokee-55.jpg

In the ‘Handler’ tab choose ‘List & Send’ as handler:

../_images/cherokee-7.jpg

Edit the ‘Default’ behavior in order to enable the URL-rewrite engine. Change the handler to ‘Redirection’, then add the following regular expression to the engine ^(.*)$:

../_images/cherokee-6.jpg

Finally, make sure the behaviors have the following order:

../_images/cherokee-8.jpg

Execute the application in a browser:

../_images/cherokee-9.jpg