Page 1 of 1

Newbie Question: How to "reload" php.ini in IIS

Posted: Mon Sep 30, 2002 4:19 pm
by andersks
Hi, All:

We recently installed PHP 4.x for a client on IIS server. We're adjusting config in php.ini, however, once changes are made, PHP doesn't see them until IISAdmin is stopped/started.

There's got to be a better way, right? On a production machine we simply can't stop/start critical services like this.

Any solutions, anyone?

Posted: Tue Oct 01, 2002 1:46 am
by twigletmac
We run PHP on our IIS server at work and I don't have to restart anything to get it to register changes in the php.ini. Which version of IIS, PHP and Windows is the server running? Where are you storing the php.ini?

Mac

Posted: Tue Oct 01, 2002 1:59 pm
by Heavy
I believe there are two ways of installing the PHP parser: 8O

* As a DLL, loaded and called by IIS
* As an EXE, called by IIS

The DLL reloads php.ini when it is loaded, that is when IIS is restarted, right...
The EXE is started on every single request and as such, it reloads php.ini for every single request for a PHP-page.

Anybody, correct me if this is wrong. :oops:

I did not take the time to read the manual for this post, but I kind of believe my statement describes the cause of the problem.