views:

972

answers:

1

I have PHP5.2.8 installed on IIS7, and it works fine for my default site (at C:\Inetpub\wwwroot).

Now, I need to run local copies of my company's sites on my machine, and each of those are directores in wwwroot. I have set each up on a separate port so I can just go to http://localhost:[portnum] to get to each.

If I try accessing a file, say: http://localhost:5002/test.php - I get a "No input file specified." error. If I try it via http://localhost/Mysite.com/test.php it works fine. I am thinking it may have something to do with the doc_root setting in php.ini? I have it set to C:\Inetpub\wwwroot. I am running PHP as a FastCGI module.

Does anyone know a comprehensive tutorial or setting up PHP on IIS for a configuration like this? Or have any suggestions?

I am also wondering if I might get different results with it installed in ISAPI mode. Thoughts?

+1  A: 

I found this link that gives an explanation of configuring PHP on a per-site basis. It seems to do the trick.

http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/#Per-site_PHP_configuration

Brian Griffin