473,500 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS5 does not read PHP.ini?

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
2 3022

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2879
by: Hugh Welford | last post by:
Hi, I have installed IIS5 on my machine so that I can do offline asp web development. (using WIN XP PRO). My machine is called "development" I have published an on-line working web to...
3
3736
by: John Chertudi | last post by:
We are poised to migrate about 600 ASP sites from a single IIS5 server to a new pair of IIS6 servers. However, it appears that all files with includes like: <!-- #include...
1
1196
by: PM | last post by:
Does anyone know of a white paper that gives exactly what are the minimial NTFS ACL permissions to get ASP.Net v1.1 to work on Windows 2000 and IIS5.0, i have followed the instructions in the MS...
1
1229
by: Luis Esteban Valencia Muñoz | last post by:
Hello, my customer has w2k with iis5. My boss says that I have to developer with vs.net 2002 because they have that configuration. He is not an expert as me so I think he is wrong. The an THe...
14
2451
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
0
1454
by: Alfonso | last post by:
Hello , I have a problem writing and reading images (jpeg, bmp) from a my Web Service. I developed a client and a WebService, I host the webservice on IIS5.1 I send an image as a byte...
1
2368
by: eccsolutions | last post by:
Any help on this topic is greatly appreciated. Currently we are running ASP.NET 1.1 in production with over 30+ 1.1 applications. Recently we have written several applications using ASP.NET...
5
2277
by: Terry Strachan | last post by:
Hi, I have an asp.net webapp that works fine on my development machine, win2k/iis5 however, when I move the site across to win2k3 / iis6 i get the following error on postback of any page; ...
4
3414
by: S.Tedeschi | last post by:
Hi all guru, for sure I'm too old for a bunch of no-sleep-nights. M$' drivin' me nut. Switching my ASP.NET 1.1 apps to 2.0 has made me tryin' for several days with no success. -My IIS5.1 (Xp...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.