|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20979 php.ini not being read...
Submitted: 2002-12-12 20:55 UTC Modified: 2003-05-24 23:49 UTC
From: olesoft at hotmail dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4CVS-2002-12-12 (dev) OS: Windows XP Pro.
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: olesoft at hotmail dot com
New email:
PHP Version: OS:


 [2002-12-12 20:55 UTC] olesoft at hotmail dot com
I know that this problem has been reported before... 
  in fact many many times before, but I have tried other peoples solutions to it with no success.

I recently recieved this error from the "Phorm" Script, an excelent form processor/result-emailing
script with tons of features:

here is a link to it on my server:
(this site is just a mock up desgin I made for a me and my friend's joke company btw :)

090 - There has been an error, and your information has not been sent.
105 - Mail function failed on user email for template ./feedbackemail.txt.
105P: "sendmail_from" not set in php.ini or custom "From:" header missing
111 - Mail function failed on sending alerts.
111P: "sendmail_from" not set in php.ini or custom "From:" header missing

after reading this is checked my php.ini file for my 'SMTP', and 'sendmail_from' settings:
  they were correct plus the fact that the phorm script provides a from address on its own.

so to amuse myself I simply retyped my SMTP and sendmail_from settings then resaved the file.
I then restarted IIS' services and tried again and recieved the same error.

next, restarted the whole machine tried again and got the same error.

at this point, somewhat annoyed, I made a file doh.php with <?php phpinfo(); ?> being its only contents

browsed to it in my web browser:

and it shows that my path for php.ini is correct, but shows:

Directive | Local Value | Master Value
sendmail_from | no value | no value 
SMTP | localhost | localhost

next as a test I added the following lines to doh.php:


this worked and I recieved an email... also phpinfo() showed the following:

Directive | Local Value | Master Value
sendmail_from | | no value 
SMTP | | localhost 

At this point I have no idea what to do in order to not have to ad ini_set() commands
 to all of my emailing php scripts

any explanations would be extremely appreciated.

PS: i understand that this is a duplicate report and am sorry

also:  i am running ASP, ActivePERL, and PHP under iis. as well as a mysql server.
  could something in that combo be causing this problem?

-best reguards


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-13 02:31 UTC]
Are you absolutely sure that the php.ini is not in fact 'php.ini.ini' like happened in #20753 ?
 [2002-12-13 07:18 UTC] olesoft at hotmail dot com
unfortunately I am sure, I checked it in the command prompt as well as looking in the folder in windows explorer, before I posted this report

I turned on "show extensions for known file types" the minute I installed XP.

I do wish the solutions was something that simple though :)

As of tonight I will just write a new file and include it in all my PHP scripts with all the php.ini settings as ini_set("X","X"); commands which should work fine, just that it is rather tedious.

I am curious, is there a way I can use the "enable document footer" feature in iis to add this file automatically to only .PHP files?

 [2003-05-13 16:51 UTC] captainwtg at yahoo dot com
I submited a bug <a href="">(23601)</a> which is similiar, but different operating system (I'm using Windows 2003 Server.)  Also I have my system on the F drive instead of C.  I wonder if that has anything to do with it?  

So any fixes...?
 [2003-05-14 03:10 UTC]
Please have a look at bug #16111 and see if it helps solve this problem:
 [2003-05-19 09:24 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2003-05-24 23:49 UTC] olesoft at hotmail dot com
I forgot to post an update of my 'status' here...

I am no longer having any problems with anything since I have moved over to Linux (and am liking it very much) for my server.

you can check my new server out at if you feel like it ;)  Its nothing spectacular, mainly a thing for me to learn more and improve my Linux, and website skills with.

Reguards, Andrew
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 15:01:24 2023 UTC