php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39834 PHP not recognizing php.ini changes
Submitted: 2006-12-14 19:24 UTC Modified: 2006-12-17 14:11 UTC
From: nicole at antfarminteractive dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.0 OS: Windows 2000
Private report: No CVE-ID: None
 [2006-12-14 19:24 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-15 13:48 UTC] smlerman at gmail dot com
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
 [2006-12-17 14:11 UTC] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 15:01:27 2025 UTC