Re: php installed on IIS: changes to php.ini not taking affect
| From: | tg-php at gryffyndevelopment dot com | Date: | Wed, 10 Jan 2007 16:53:16 +0000 |
| Subject: | Re: php installed on IIS: changes to php.ini not taking affect | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-27364@lists.php.net to get a copy of this message | ||
I had a similar issue a couple years ago when I was running Apache/PHP on a Windows box at a
previous job. The information below helped. Check all the locations (regardless of what PHP is
reporting it's using for php.ini's path). Try making some simple change that will show up
on phpinfo(). You should find it eventually.
Good luck!
-TG
http://www.php.net/manual/en/install.windows.php
"php.ini is searched in these locations (in order):
* SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and
CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD)
* The PHPRC environment variable. Before PHP 5.2.0 this was checked after the registry key mentioned
below.
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
* Current working directory (for CLI)
* The web server's directory (for SAPI modules), or directory of PHP (otherwise in Windows)
* Windows directory (C:\windows or C:\winnt) (for Windows), or --with-config-file-path compile time
option"
= = = Original message = = =
I have php 5.2 up and running on IIS 5.1.
phpinfo tells me php is looking for my ini file in C:\Windows...I place
the file there, edit it, restart the server but I don't see the changes
I've made.
I've been dealing with this for a day and can't seem to find any
information as to what's causing this problem.
I've tried adding C:\PHP to my system path where C:\PHP is where php
lives. I also have PHPRC pointing ot C:\PHP...not sure if either of
those would have anything to do with my problem.
Does anyone have any ideas?
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.