IIS & PHP configuration help - PHP.ini instructions igno

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
homeshow
Forum Newbie
Posts: 4
Joined: Thu Nov 24, 2005 1:39 pm
Location: Denver, Colorado, USA

IIS & PHP configuration help - PHP.ini instructions igno

Post by homeshow »

My server setup: Win2k, IIS5.0, PHP running as ISAPI

Problem 1: PHP.ini settings ignored. Not too sure how to address this one. I've tried changing some settings in the PHP.ini file. Some just do not seem to take.

Example 1 ~ there's a setting called SMTP that tells PHP what server to use. I change from the default, "localhost", to "smtp.mydomain.com" and reboot, but phpinfo() still shows localhost.

Problem 2 ~ SENDMAIL_FROM is a setting that's supposed to be a global “From” for PHP to use in case individual scripts don't specify that email header. Making a change in php.ini and rebooting doesn't make a difference in what phpinfo() shows, which is nothing! PHP.ini settings can be overridden by a function call from individual scripts, but they have to be overridden from each script that needs the functionality.

Is there a better way to force PHP to use all the settings in the PHP.ini file?

Thanks for your assistance !!!
homeshow
Forum Newbie
Posts: 4
Joined: Thu Nov 24, 2005 1:39 pm
Location: Denver, Colorado, USA

CLOSED

Post by homeshow »

Unresponsive forum
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

As you say... ini settings can be made using ini_set() inside your scripts. .htaccess can do it with apache but that wont work with IIS.

As for the SMTP setting it sounds like you've editted the wrong php.ini file or the value is set further on in the ini, thus overwriting the custom setting. When you run phpinfo() check the path of php.ini to see if you've editted the correct one.
Post Reply