CakePHP with xampp on Mac OS

If you are getting an unstyled no css default page with CakePHP using xampp on Mac OS, you need to modify your apache config to contain an alias pointing to Cake’s webroot directory. This blog post details what to do: http://practicaltechniques.com/2008/04/28/setting-up-cakephp-with-xampp/ In short:

Scroll down to the area where you see the Alias established for phpmyadmin and paste the following replacing ‘yourdomain’ with the root location of your CakePHP install…

Alias /yourdomain (nolinebreak) /Applications/xampp/xamppfiles/htdocs/yourdomain/app/webroot
<Directory “/Applications/xampp/xamppfiles/htdocs/yourdomain”>
AllowOverride All
Options All
Order allow,deny
Allow from all
</Directory>