Re: PHP 5.1.6 ISAPI mode on IIS5 doesn't seem to load extensions...
| From: | Daniel Smedegaard Buus | Date: | Wed, 01 Nov 2006 09:01:35 +0000 |
| Subject: | Re: PHP 5.1.6 ISAPI mode on IIS5 doesn't seem to load extensions... | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17719@lists.php.net to get a copy of this message | ||
Daniel Smedegaard Buus wrote:
> Daniel Smedegaard Buus wrote:
>
>> blahblahblah
>
> Okay, so as it turns out, the problem is that IIS/PHP looks for php.ini in
> c:\winnt, and not in c:\php even though I've added it to the path, and
> confirmed that it IS registerede in the path (running "php" from a prompt
> anywhere loads php.exe from the c:\php directory).
>
> Does anybody know why?
>
> Thanks :)
>
Okay, so it seems that the "c:\winnt" search path is compiled into
php5isapi.dll. What you have to do is create a new system environment
variable called "PHPRC" and give it the php installation directory as
value, e.g. in my case "C:\php". And then you have to reboot. Really. This
is Windows, you know.
--
http://www.rhesusb.dk