h1

Running cakePHP on IIS

July 3, 2008

I 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.

2 comments

  1. Thanks mate, it just fixed my problem as well


  2. 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



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.