# Lithium on Cherokee ## About Cherokee Cherokee is a web server build for speed and ease of configuration. It supports a variety of technologies, including PHP. If you're interested in using Lithium with Cherokee, this guide is meant to cover the installation and configuration process to get you up and running quickly. ## Getting and running Cherokee [Download ](http://www.cherokee-project.com/downloads.html) the appropriate package for your architecture. Follow [the instructions here](http://www.cherokee-project.com/doc/basics.html) to get your main instance configured and running. ## Virtual Server Creation Refer to the Cherokee documentation on how to start an admin instance. Access that instance (usually at `http://localhost:9090/`) and go to the **Virtual Servers** section. Click **Wizards**, **Platform**, **Zend** and **Run Wizard**. Put the desired hostname (we'll use `lithium.local`) and set the path to `app/webroot` of your Lithium installation.  Click **Submit**. ## Virtual Server Configuration We'll need to reconfigure some of the settings that the Zend wizard uses to make things more Lithium-friendly. Open up your new virtual server and remove the `index.html` default page.  Click on **Host Match** and choose **Wildcards**. Add as many hostnames and/or aliases that you will use to access your lithium instance.  Next, click on the **Behavior** tab, and then the second rule with the type `Full Path`.  Click on the **Handler** tab, and change the handler to **Redirection**, set **Type** to **Internal**, leave **Regular Expression** blank, but set **Substitution** to `index.php`.  Go back to the behaviors list (via clicking the name of your virtual server above), and this time we are going to change the **Default** rule, and click on the **Handler** tab.  Change the following fields like so: - **Regular Expression**: `^([^\?]*)(\?(.+))?$` - **Subtitution**: `index.php?url=$1&$3` The rest of the settings are optional (and you really shouldn't change them until you get familiar with how Cherokee works). Choose **Graceful Restart** and click **Save** under **Save Changes**.  ## Conclusion Open your browser and go to one of the hostnames you defined:  All done!