#39834 [Com]: PHP not recognizing php.ini changes
| From: | smlerman at gmail dot com | Date: | Fri, 15 Dec 2006 13:48:47 +0000 |
| Subject: | #39834 [Com]: PHP not recognizing php.ini changes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106395@lists.php.net to get a copy of this message | ||
ID: 39834
Comment by: smlerman at gmail dot com
Reported By: nicole at antfarminteractive dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows 2000
PHP Version: 5.2.0
New Comment:
The configuration path shown in phpinfo() is where PHP looks for
php.ini. PHP does not use the PATH environment variable to find
php.ini. I know there's an Apache configuration directive PHPIniDir to
change the path, but I don't know if there's an equivalent for IIS. The
list of places that PHP looks for php.ini can be found in the manual:
http://www.php.net/manual/en/configuration.php#configuration.file
Previous Comments:
------------------------------------------------------------------------
[2006-12-14 19:24:57] nicole at antfarminteractive dot com
Description:
------------
I have a Windows 2000 web server that is using IIS, as well as a SMTP
virtual server.
I have updated the "sendmail_from" option within the php.ini file, and
the server has been restarted numerous times.
PHP is installed within the "C:\php" directory.
For some reason, the phpinfo() file shows the PHP configuration path as
"C:\winnt", despite the fact that I have added the ";c:\php" directory
within the server's environment variables (the one for PATH). Also, the
"sendmail_from" area shows "no value", although the php.ini file does
not reflect this.
I have searched everywhere and cannot resolve this. Why is PHP failing
to recognize the PHP.ini file?
Reproduce code:
---------------
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = [client name]@[client domain].com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39834&edit=1