Click to See Complete Forum and Search --> : php.ini not parsed w/ PHP 4.03pl2 on NT/IIS


Anon
11-06-2000, 01:11 PM
Hi

I can't get PHP4 to parse the php.ini file on two NT4/IIS-systems, one with CGI, one with ISAPI.
I tried with php.ini in %windir% and in the php directory, but when calling phpinfo() i always get the default values.
There are no duplicate php.ini files on both systems. I always stopped and restarted IIS on the command line when I've tried another configuration.

I wonder why phpinfo() says

Configuration File (php.ini) Path : php.ini

instead of c:\winnt\php.ini?

On my local system with NT/Apache everything works perfectly.

When scanning the web I found lots of messages describing a similar problem. None of the answers suited my problem. I'm neither a PHP pro nor a beginner.

Thanks in advance for an answer.
Christoph

Anon
11-07-2000, 01:11 AM
Note:
for CGI: the php.ini should be putted
into the php directory;
for ISAPI: you should put the php.ini in
%windir%

Anon
11-07-2000, 03:49 AM
I've tried both directories with ISAPI and CGI. php.ini ist not read.

Christoph

Anon
11-08-2000, 12:35 AM
You need to restart iis to get it to re-parse the php.ini file.

Your php.ini file goes here:
C:\WINNT\php.ini

Matt.

Anon
11-08-2000, 03:39 AM
As I wrote in my original message I always stop and restart IIS on the command line after configuration changes.

Christoph

Anon
11-14-2000, 07:51 AM
Maybe it\'s because you suck..

Anon
11-14-2000, 03:21 PM
Wow, this forum just keeps getting more and more helpful, don't you think?

Anon
11-20-2000, 08:42 PM
Christoph,
If you are able to solve this problem, please post it as I am having the same problem. If I figure it out, I'll post my solution as well.
Thanks, Mark

Anon
11-21-2000, 04:21 AM
Sorry, I forgot to post:

I could resolve the problem for the CGI-version of php by
- putting php.ini into %windir%
- putting php4ts.dll AND the dlls for the extensions to %windir%/system32
- giving at least read permission to the IUSR in %windir% (else he can't read php.ini)

With php.ini in the php directory php worked, but ini-file was not parsed (permissions ok), also the setting of PHPRC was not applied.
I did not find a resolution for the ISAPI-version.

Christoph