By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,889 Members | 1,044 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,889 IT Pros & Developers. It's quick & easy.

IIS5 does not read PHP.ini?

P: n/a
I have an odd problem.

I use PHP 4.3.2
I use Apache 1.3.28 on port 8080
I use IIS5 in Win2k on port 80

Both Apache and IIS use the same PHP version, and I thought they both read
the %Systemroot%\php.ini - however, only when I execute ini_get('SMTP') in
a php page on the Apache server I get the value from PHP.ini - which is
test.com.

If I execute the exact same php file, using the exact same php.ini on the
IIS server on port 80 - I get the value: localhost - the default value for
SMTP under Win32.

PHP works on both servers, and all regular commands works on both servers.
However, I really need to use the SMTP and register_globals variables under
IIS - but I cannot make IIS read the #%%& file - what should I do?

I have been stuck with this problem for a while, and it doesn't help
removing Apache from the machine, nor does it help giving every full access
to php.ini.

I hope you can help me out with this issue, it might be security related -
maybe IIS obeys some rules and Apache does not regarding %systemroot% - but
I have not been able to set the correct properties yet.

Thank you in advance,
Cheers, Flemming.
Jul 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

I use PHP 4.3.2
I use Apache 1.3.28 on port 8080
I use IIS5 in Win2k on port 80


To state the obvious: is there a reason for needing two webservers on the
same box? (I can imagine this would be useful for testing script
portability.) If you're only trying to get both 80 and 8080 working, you
can do that using just a single websever.

Sorry not to be able to answer the question directly - I've never needed
to use IIS - but I'm posting this just in case you're not aware of the
above. I'm sure others will be able to answer it directly.
Martin

Jul 16 '05 #2

P: n/a
Martin Lucas-Smith <mv***@cam.ac.uk> wrote in
news:Pi*************************************@yello w.csi.cam.ac.uk:
I use PHP 4.3.2
I use Apache 1.3.28 on port 8080
I use IIS5 in Win2k on port 80


To state the obvious: is there a reason for needing two webservers on the
same box? (I can imagine this would be useful for testing script
portability.) If you're only trying to get both 80 and 8080 working, you
can do that using just a single websever.


I know this, I have both running to be able to verify PHP behavior on both
servers.

Oddly enough everything works on Apache but not in IIS. It is like IIS does
not even try to read PHP.ini and defaults to all default settings instead
of the actual settings in php.ini - which really sucks by the way.

Flemming
Jul 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.