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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andersks
Forum Newbie
Posts: 1
Joined: Mon Sep 30, 2002 4:19 pm
Location: Colorado Springs, CO

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

Post 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?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post 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.
Post Reply