views:

47

answers:

2

hey all,

I am trying to run web application scripted in PHP on windows server 2008. I have configured PHP (as fastcgi) and IIS. Everything goes fine except the following scenario.

In the php.ini document "doc_root" edited with the correct root path for my php projects which is "c:\inetpub\wwwroot\". I created a new site on IIS and mapped it's path to "c:\inetpub\wwwroot\application1". When I try to open this site, I see that somehow (IIS or PHP no idea ) does nt run my new application on the path "c:\inetpub\wwwroot\application1". It tries to run on "c:\inetpub\wwwroot\", which returns 404 of course. What am I missing here ?

A: 

For those who have the same problem;

I have figured out the problem. setting "doc_root" is not right. As I commented that property in php.ini file it got ok.

Also checking the following url was helpful:

http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/

Its written there that you can make your php web sites use seperate php.ini files. I found this link really usefull.

Don t want to choose my answer as the right one but have to. Hope this helps.

WorM
A: 

Check to see whether you are changing and loading Correct php.ini file using phpinfo()

Someone
i have figured out the problem. setting "doc_root" is not right. As I commented that property in php.ini file it got ok.
WorM