473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IIS on a single IP (coexisting with Apache)

4 New Member
Hi
I am an applications programmer with limited knowledge of system configuration.
I have two development computers, XP Pro (IP 192.168.1.3 and 192.168.1.4) on a LAN behind a router (IP 192.168.1.1) which connects to broadband internet.
On one of my development computers I want to setup both IIS (running MS Access, MS SQL and ASP) and Apache (running MySQL and PHP). Both the web local servers are for local development use and need not (at this stage anyway) be seen by the world outside my router. I have downloaded the Support Tools and read numerous forum threads on the subject but still run into problems. My first objective is to run IIS on a single IP address (as opposed to all) so that I can use other IP addresses for Apache websites also using port 80. There are a number of things I don’t understand:
1. What IP address do I use? Can I pick any unused address in the local range 192.168.xxx.yyy?
2. localhost is supposed to have IP address 127.0.0.1 . Where is that determined and how does that relate to the address I select below (4)?
3. When I browse for http://localhost do I always get IIS? In what way does localhost in IIS differ from localhost in Apache?
4. I picked 192.168.1.14 for IIS (it refused 127.0.0.1) and set it up to port 80 in Administrative Tools --> IIS.
5. I also ran

httpcfg delete iplisten –i 0.0.0.0
httpcfg set iplisten –i 192.168.1.14:80
net stop http
net start http
iisreset

Then when I run

httpcfg query iplisten

it displays the one and only 192.168.1.14:80 as it should.

But it does not work even after restart. The localhost website stops (“Internet Explorer cannot display the website…”) and when I try to start it I get error 0x8ffe2740 which indicates an addressing conflict. Where is this addressing conflict? Who is in conflict with whom? (I have deselected port 80 in Skype and also turned Skype off but I see (below) that Skype is still listening on 3 ports. Why?)

6. When I run
netstat –aon
I get

Active Connections

Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 780
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 1840
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:1486 0.0.0.0:0 LISTENING 1264
TCP 127.0.0.1:1032 0.0.0.0:0 LISTENING 3768
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 1936
TCP 127.0.0.1:10110 0.0.0.0:0 LISTENING 1900
TCP 192.168.1.4:80 0.0.0.0:0 LISTENING 1840
TCP 192.168.1.4:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.4:1214 64.250.227.20:80 CLOSE_WAIT 3992
UDP 0.0.0.0:161 *:* 220
UDP 0.0.0.0:445 *:* 4
UDP 0.0.0.0:500 *:* 572
UDP 0.0.0.0:1025 *:* 1936
UDP 0.0.0.0:1027 *:* 892
UDP 0.0.0.0:1284 *:* 892
UDP 0.0.0.0:4500 *:* 572
UDP 127.0.0.1:123 *:* 844
UDP 127.0.0.1:1274 *:* 3248
UDP 127.0.0.1:1398 *:* 4076
UDP 127.0.0.1:1463 *:* 2080
UDP 192.168.1.4:123 *:* 844
UDP 192.168.1.4:137 *:* 4
UDP 192.168.1.4:138 *:* 4
UDP 192.168.1.4:5353 *:* 1936

I don’t understand what this means. What are all these services running in the background? Why is my selected web server address not there?

When I have resolved the above I will make another attempt (the first one failed) to install Apache. Could somebody help me over the first hurdle?

Jan
Mar 26 '08 #1
4 9055
kenobewan
4,871 Recognized Expert Specialist
If you having this much trouble I suggest finding a good resource first. Read the chapter on security first. Otherwise you may be left rueing that a little knowledge is a dangerous thing ;).
Mar 26 '08 #2
jankristensson
4 New Member
Thank you kenobewan, but that was not very helpful. I have read quite a lot but it is not my intent to become an expert in this field. It would be very helpful if you just briefly answered the questions I posed.
Jan
Mar 26 '08 #3
kenobewan
4,871 Recognized Expert Specialist
Thank you kenobewan, but that was not very helpful. I have read quite a lot but it is not my intent to become an expert in this field. It would be very helpful if you just briefly answered the questions I posed.
Jan
Here is an article to get you started:
How to set up IIS to host your website
Mar 27 '08 #4
jankristensson
4 New Member
Thank you again kenobewan. I have already read that article and many others and also previously successfully set up IIS and created a number of ASP applications. It was only when I wanted to expand to Apache/PHP I ran into problems. IIS by default listens to port 80 on ALL IP addresses. In order to add another server I have to either use a different port for this server or still use port 80 and use specific IP addresses for each server. When I try to do the latter (which is the recommended way) IIS quits working. Why? I was hoping that the answers to my initial questions would clarify that.
Jan
Mar 27 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
5
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me...
5
by: Justin L. Kennedy | last post by:
Our current webserver is a Linux Apache 2 engine running several websites in separate virtual hosts. All of our websites were written for PHP 4, and thus is the version of PHP running. But we are...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
0
rsrinivasan
by: rsrinivasan | last post by:
Hi All, When i run my JSP program, ihave the following exception. How i solve this problem? HTTP Status 500 - ...
4
by: grant | last post by:
I've just installed Office 2007 and am coming to terms with the drastically different menu structure! One problem I have is alternating between different version of Office applications and...
0
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
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,...
0
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...
1
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
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
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
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
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.