php.ini not working with IIS
Posted: Wed Apr 11, 2007 1:28 pm
this is the strangest thing I've seen in a very long time. I can't even count how many times I've set up PHP on a windows box (both with apache and IIS) and I've never seen this issue.
I just tried installing on my new work machine here (with IIS) and for some reason php is not reading the php.ini file. I have checked that I only have one instance of the php.ini file on my c:\ drive and it is in the c:\windows folder. When I run phpinfo() it shows a default (standard) php load and when I uncomment a few extensions, they are not being loaded. I verfied the extension path is correct....still no go. I then tried renaming my php.ini file to php.ini-old thinking (hoping) my php would quit working. When I restarted IIS and ran phpinfo() it shows the .ini file as being c:\windows (yet php still worked). I then renamed it back to php.ini and restarted IIS and it correctly shows c:\windows\php.ini. I then replaced all of the text in my php.ini file with 'adfdasdfadf' and it still works (php).
I KNOW for a fact that in the past when I've changed stuff in php.ini that would cause it to bomb, it did just that...bombed and died a horrible death. Yet this installation for some reason seems to keep on ticking and none of the changes I'm making to php.ini are being reflected in my installation.
any ideas here?
I just tried installing on my new work machine here (with IIS) and for some reason php is not reading the php.ini file. I have checked that I only have one instance of the php.ini file on my c:\ drive and it is in the c:\windows folder. When I run phpinfo() it shows a default (standard) php load and when I uncomment a few extensions, they are not being loaded. I verfied the extension path is correct....still no go. I then tried renaming my php.ini file to php.ini-old thinking (hoping) my php would quit working. When I restarted IIS and ran phpinfo() it shows the .ini file as being c:\windows (yet php still worked). I then renamed it back to php.ini and restarted IIS and it correctly shows c:\windows\php.ini. I then replaced all of the text in my php.ini file with 'adfdasdfadf' and it still works (php).
I KNOW for a fact that in the past when I've changed stuff in php.ini that would cause it to bomb, it did just that...bombed and died a horrible death. Yet this installation for some reason seems to keep on ticking and none of the changes I'm making to php.ini are being reflected in my installation.
any ideas here?