<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniel Banck &#187; CakePHP</title>
	<atom:link href="http://dbanck.de/tag/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://dbanck.de</link>
	<description>Webentwicklung - Webdevelopment</description>
	<lastBuildDate>Sat, 09 Jan 2010 00:19:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CakePHP and Cherokee</title>
		<link>http://dbanck.de/2009/06/16/cakephp-and-cherokee/</link>
		<comments>http://dbanck.de/2009/06/16/cakephp-and-cherokee/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 12:04:06 +0000</pubDate>
		<dc:creator>Daniel Banck</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cherokee]]></category>

		<guid isPermaLink="false">http://dbanck.de/?p=60</guid>
		<description><![CDATA[Getting CakePHP working with cherokee is really simple:
First put your CakePHP files into any directory. For me it&#8217;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 &#8211; with the new wizard it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Getting CakePHP working with cherokee is really simple:</p>
<p>First put your CakePHP files into any directory. For me it&#8217;s <code>/home/daniel/Web/dcms</code><br />
You can delete all the .htaccess files:<br />
<code>/.htaccess<br />
/app/.htaccess<br />
/app/webroot/.htaccess</code></p>
<p>Add a new virtual host to cherokee, set the document root to the CakePHP webroot:<br />
<code>/home/daniel/Web/dcms/app/webroot</code><br />
Directory Indexes should be set to <code>index.php</code></p>
<p>Add a new PHP rule &#8211; with the new wizard it&#8217;s really simple &#8211; and keep the default settings.<br />
Add a new &#8216;file exists&#8217; rule and let it match &#8216;Any File&#8217; and handle it as &#8216;Static Content&#8217;.<br />
<img src="http://dbanck.de/wp-content/uploads/any1.png" alt="Cherokee &#039;Match any file&#039;" title="Cherokee &#039;Match any file&#039;" width="600" height="247" class="alignnone size-full wp-image-68" /><br />
<img src="http://dbanck.de/wp-content/uploads/any2.png" alt="Cherokee &#039;Handle as static content&#039;" title="Cherokee &#039;Handle as static content&#039;" width="600" height="221" class="alignnone size-full wp-image-69" /></p>
<p>How we need to modify the default rule. Change the handler to &#8216;Redirection&#8217; and setup the regex like this:<br />
<img src="http://dbanck.de/wp-content/uploads/any3.png" alt="Cherokee &#039;Default regex&#039;" title="Cherokee &#039;Default regex&#039;" width="599" height="406" class="alignnone size-full wp-image-71" /><br />
(Internal, ^.*$, index.php)</p>
<p>That&#8217;s it!<br />
Just make sure that the rules are in the correct order (php, any file, default):<br />
<img src="http://dbanck.de/wp-content/uploads/any4.png" alt="Cherokee &#039;rule order&#039;" title="Cherokee &#039;rule order&#039;" width="600" height="109" class="alignnone size-full wp-image-72" /></p>
<p>Just save and access CakePHP via your defined domain.<br />
<img src="http://dbanck.de/wp-content/uploads/cake.png" alt="Final result" title="Final result" width="600" height="319" class="alignnone size-full wp-image-74" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dbanck.de/2009/06/16/cakephp-and-cherokee/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
