473,545 Members | 2,444 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%\ph p.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_global s 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 3037

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.u k> wrote in
news:Pi******** *************** **************@ yellow.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
2891
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 http://development/websites/defaultwebsite/de-stress and copied on-line working data to c:\inetpub\wwwroot\de-stress\data\schooldata.mdb The database...
3
3738
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 virtual="../../includes/file.asp" --> will not work on IIS 6, it returns ASP 0126, include file not found. We have enabled parent paths, but I can't find any...
1
1202
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 knowledge base article - 271071 http://support.microsoft.com/default.aspx?scid=kb;EN- US;Q271071 This has tightned up the box but still prevents...
1
1241
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 answer I gave to him is the only thing the customer needs is FrameWork 1.1 and that I can work on my office with vs.net 2003 and then generate a setup...
14
2461
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 transferred our site www.orbisoft.com to a new W2003 IIS6 server they set up. That was a week ago. Since that transfer, all of our ASPX pages...
0
1456
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 stream from the client to the Webservice. Then I want to save the image to a file and I have an error. The same when I want to read an image from the...
1
2371
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 2.0. We are ready to deploy our newly written application but have run into several issues on our development environment and confirmed it would occur...
5
2279
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; *------------------------------------------* Object reference not set to an instance of an object. Description: An unhandled exception occurred during...
4
3418
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 Media Center, SP2) refuses to serve even the simplest aspx page (1 button + 1 textBox), rendering only "Server Application Error The server has...
0
7490
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7449
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.