
Running cakePHP on IIS
July 3, 2008I am trying to get cakePHP 1.2 running on IIS6 with a MSSQL backend, and so far it’s going pretty well. Once I got PHP running on the server using instructions from Peter Guy, it was a simple thing to copy up the cake folder.
I tried loading up the URL for the site but only got a directory listing. To fix this, go to the permissions window of your site and then to the Documents tab. Add index.php to the default content page section and voila, it now loads without any CSS.
To enable the css, there was one more change to make. Thats was in /app/config/core.php. Just uncomment the following line:
define ('BASE_URL', env('SCRIPT_NAME'));
hit reload and Bob’s your auntie’s husband.
Thanks mate, it just fixed my problem as well
check out this site if you want mod_rewrite support for CakePHP on iis:
http://thefinalsayontech.blogspot.com/2009/02/cakephp-on-iis-isapi-with-modrewrite.html