I have working IIS7 with PHP on my computer - localhost.
I have a couple of applications that are working fine. But now I want to add a new one and for some reason I always get a 404 error on the php page. I am probably missing some basics.
What would actually be the recommended way of adding a new directory under my C:\inetpub\wwwroot (for example C:\inetpub\wwwroot\mysite) so that it appears and works under http://localhost/mysite?
Should I first copy the files to C:\inetpub\wwwroot\mysite and then create a new Application or Virtual Directory (what is actually the difference between them) under Default Web Site?
I think I have done it this way so far and it was fine, but now I have stumbled upon one site (WordPress folder structure BTW) which says Invalid application path when I try to add an Application under Default Web Site.
Actually I get Invalid application path if I try to just add an empty folder under Default Web Site, when I specify it as Physical path. Maybe that's the real problem here...?
I tried to repeat the steps and found out - if I create the new directory in windows explorer (under C:\Inetpub\wwwroot[new dir]) It appears in IIS manager. There, by doing right-click on the [new dir] and "Convert to Application", In the "Add Application" dialog, If I immediately click on "Test Settings..." I get "Invalid application path". I had to specify a user in "Connect as...". If I specify myself there, then it works ok from then on.
I guess adding myself there as a user is not a recommended practice.
– Priednis May 19 '11 at 10:47