Posted by mtndan on September 4, 2009 at 1:20pm
Hi folks,
I'm successfully running Drupal on IIS6 with PHP5 (fastcgi) which I installed via the IIS-Aid.com installer.
I am trying to setup a new website on the same server, same IIS, and have matched all the settings as the working site.
On the new site however, I can't get php files to execute - it just returns a HTTP Error 404 - File or directory not found.
Any ideas? This is driving me nuts.
Thanks!

Comments
try this
Assuming you're setting up on same ip, same port, it's because IIS isn't seeing the directory as a site. How you fix this depends on how you setup your subsite in the directory structure.
1) Start IIS Manager.
For parentsite.com/subsite/, you need to create a virtual directory. Go down to parentsite.com. Right-click on parentsite.com | Add virtual directory. Alias: [new site name, eg subsite]. Physical path: [parent site's physical path]. Click OK.
For subsite.parentsite.com (or subsite.com), you need to create a website, add the sub-domain (e.g. subdomain.domain.com) as a new host header value, then update your DNS. Right-click on Sites | Add web site. Give it a name, and point the physical path to the parent site's physical path. Add a host header by clicking on the advanced tab next to the IP address configuration for that web site application. Then go to your DNS and add a CNAME entry to point subsite.parentsite.com to parentsite.com.
chicagomom on Twitter and d.o.
needed to enable fcgi on new site...
Duh, I found fcgi.exe was only enabled for .php on the default site, not at the server level. So, I added it and away we go...
--
Dan Katz
Solutions Architect, Acquia