IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 7th, 2004, 04:02 AM
skirkpatrick skirkpatrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 skirkpatrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 43 sec
Reputation Power: 0
PHP 5.0.2 ISAPI and php.ini

Hi all,

I've just installed PHP 5.0.2 manually on a Win2K/IIS 5.0 box as an ISAPI extension, and am having trouble getting it to pick up changes in the php.ini, even on machine restart.

All my files live in "c:\php". I have defined the PHPRC environment variable and added a registry entry, both pointing to the same php.ini file.

Unfortunately, the server also runs ASP/ASP.NET sites, so it has to be IIS. The PHP rendering is working fine, it just seems to be using the default settings.

Has anyone encountered this before, or does anyone have a solution? I know that in ISAPI mode, PHP only reads the php.ini on startup, which ain't all that handy given the traffic through the server. Is there a way to manually re-read the the INI information?

Many thanks for your time...

Reply With Quote
  #2  
Old December 7th, 2004, 05:59 PM
IIS_dummy IIS_dummy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 11 IIS_dummy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by skirkpatrick
The PHP rendering is working fine, it just seems to be using the default settings.


Do you have a php.ini file in your WINNT folder ? If so, delete/rename it and see what happens. Failing that, perhaps it's a bug with v5.02 and you might consider going to the PHP site for help.

Reply With Quote
  #3  
Old December 8th, 2004, 02:15 AM
skirkpatrick skirkpatrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 skirkpatrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 43 sec
Reputation Power: 0
Quote:
Originally Posted by IIS_dummy
Do you have a php.ini file in your WINNT folder ?
Hi there -thanks for the reply...

No, I only have one php.ini file on the machine - it's in the c:\php folder, pointed to by both the PHPRC environment variable and a registry setting in [HKLM/Software/PHP/IniFilePath].

When I changed PHP to run as a CGI, it picks up the INI fine. Not quite sure what the issue is. Could it be something to do with the "Cache ISAPI Applications" setting in IIS?

Reply With Quote
  #4  
Old December 8th, 2004, 03:58 AM
skirkpatrick skirkpatrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 skirkpatrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 43 sec
Reputation Power: 0
Never mind, folks. It appears that our web server has been running the IIS Lockdown which was blocking access to .ini files. I think I might be sorted (but only after corrupting our server and taking our sites down for a while)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > PHP 5.0.2 ISAPI and php.ini


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway