|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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... |
|
#2
|
|||
|
|||
|
Quote:
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. |
|
#3
|
|||
|
|||
|
Quote:
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? |
|
#4
|
|||
|
|||
|
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)
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > PHP 5.0.2 ISAPI and php.ini |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|