473,581 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ 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:121 4 64.250.227.20:8 0 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:535 3 *:* 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 9064
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
27975
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 another servlet - bean - jsp but I am hitting an error from tomcat that I have no idea why it is failing. I am getting an...
1
6909
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
6579
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 logging onto the web server using LDAP for authentication, do most people 1) have the web server connecting to the database using its own user account...
19
5227
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 application under heavy load. When increasing the number of requests, all my memory is filled, and the Linux server begins to cache and remains...
5
2149
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 a little: "As php5 and mysql5 are still beta versions we don't install beta versions on production servers due to secure reasons, we install only...
5
2209
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 looking to host a copy of MediaWiki which will start to require PHP 5 during the next major release. Since our existing sites are much to large...
3
17105
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 the service using client stub, I get this error... Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot...
0
3404
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 - -------------------------------------------------------------------------------- type Exception report message
4
1570
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 getting that bl...dy paint in the ...."wait while Office is configured " message. There is a registry fix for Word I found at...
0
7808
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
8157
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
8312
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...
0
8181
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
6564
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...
0
3809
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2309
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 we have to send another system
1
1410
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.