SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 21st, 2003, 06:36 PM
peppy peppy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 peppy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can IIs and apache run on the same machine

I was wondering, If I have two nic cards with two IP's can I run IIs and apache on the same windows 2000 server? if so how

Reply With Quote
  #2  
Old September 21st, 2003, 09:51 PM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
Yes, You can even run IIS and Apache on the same Machine with one NIC and single IP, on two different port.
Just configure the PORT for IIS, say on 80 and for Apache say on port 8000

Reply With Quote
  #3  
Old September 21st, 2003, 09:51 PM
invoke invoke is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 6 invoke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes you can run both.

Install your IIS and have it run as localhost. Your apache can then be installed as a manual start in console configuration which lets you run it as localhost:8080.

Reply With Quote
  #4  
Old September 21st, 2003, 11:40 PM
peppy peppy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 peppy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I know you can run them on a different port, but I want to run them both on port 80, is the possible with two network cards

thanks for your reply

Reply With Quote
  #5  
Old October 21st, 2003, 01:24 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
If you have two NICS it will not matter either way.. your best bet would be to run through a firewall and use port redirection to just redirect from port 80 on your firewall, for that domain, to go to port 8080 on your server.. the port will only be opened once on the machine that you have it installed on, no matter how many NICS you have

Reply With Quote
  #6  
Old January 21st, 2004, 12:10 AM
julien julien is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 julien User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache with Windows Server 2003 Newbie

Hi,

I am a newbie and I am about to purchase my new server.

I have 4 questions.

1/ When I purchase the server with Windows Server 2003, can I then install Apache and run Apache only. I don't really care about IIS.

2/ I was wondering if buying a desktop machine (which is cheaper) would be better than getting a server with Windows Server 2003 ( which is more expensive).

3/ Do I even need Windows Server 2003 on my server if I am only going to use Apache? I know I should need some kind of OS?

4/ As mentioned early on in this topic, can I run IIS and Apache on the same server in case I have a few sites with asp files?

Forgive if these questions are basic but any help would be greatly appreciated. Thank you.

Reply With Quote
  #7  
Old January 21st, 2004, 07:50 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
1) Yes you can run apache only if you wish. You don't have to run IIS

2)A desktop machine is a practical solution for those who don't have the money for a server.. However I would recomend at least that it have windows 2000 professional, or xp pro, as they are built on the NT system and are a little more stable than the home versions of these pieces of software..

3) This one is a little more difficult to answer.. it depends on what you want to do really. You may want to take advantage of some of the options that 2k3 Server, then again if money is an issue then you don't absolutely have to have 2k3 server. You DO have to have an operating system of some sort... again if money is an issue another solution which is free (unless you decide to buy a book or buy the software itself which comes with other packages..) are the linux options out there, Mandrake, Redhat, Debian, OpenLinux, and all of the BSD's

4)I believe that PHP has a plugin that you can install (either php or apache do..) that will let you handle asp files, if I'm correct they are actually handled like cgi, I haven't done much research into that, Stumpy, or someone else who has experience with ASP, could you clear this one up for me?

Hope this helps!!

Reply With Quote
  #8  
Old January 21st, 2004, 11:30 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Apache does have a mod for asp, but the asp style code is slightly different than normal asp

I don't have a direct link for it, but its called mod_asp... i'm not sure if its included with any versions of Apache...

julien, if you were to run IIS and apache on the same machine, say Apache for typical webserving and IIS specifically for ASP... don't forget you'd need to run the web servers on different ports... this may make navigation of your web site slightly confusing for both the designer and the user...

As far as the Unix vs Windows debate for Apache... rumour has it Apache is more stable on Unix/linux... the limitation is you can't use other typical windows applications (Access, Photoshop)...

Reply With Quote
  #9  
Old April 6th, 2004, 11:12 AM
Matrix28 Matrix28 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 23 Matrix28 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, as long as you use two different port numbers.

Reply With Quote
  #10  
Old April 9th, 2004, 12:43 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
Quote:
Originally Posted by MadCowDzz
As far as the Unix vs Windows debate for Apache... rumour has it Apache is more stable on Unix/linux... the limitation is you can't use other typical windows applications (Access, Photoshop)...



ok where did you get this information from. apache has been very stable on my windows machine for almost 3 years now, if anything the stability matched my linux servers i have apache on.

also what do you mean you can't use access or photoshop while apache is running?
__________________
Apache Expert

Reply With Quote
  #11  
Old April 19th, 2004, 06:28 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
Quote:
Originally Posted by asp_man
also what do you mean you can't use access or photoshop while apache is running?

Do you manage to run these programs on Linux?
__________________
Work to live, don't live to work

Reply With Quote
  #12  
Old April 21st, 2004, 01:59 PM
Matrix28 Matrix28 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 23 Matrix28 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes as long as they run on different ports.s

Reply With Quote
  #13  
Old May 23rd, 2004, 04:08 PM
agrikk agrikk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 agrikk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to run both IIS and Apache on the same box with two IP addresses.


I have Apache installed on the main server IP address of 192.168.1.253. I am now trying to install IIS onto IP 192.168.1.254.

IIS Installed fine but the default web site won't launch. I receive the error: "The process cannot access the file because it is in use by another process."

Interestingly, I've configured both servers to listen on their respective IP addresses, but on the same port. Only one will load at a time. However, when I move one server to a different port, they both load.

Can two port 80's exist on a single machine on two different IP addresses?


Agrikk

Reply With Quote
  #14  
Old August 30th, 2004, 01:14 PM
rkiefl rkiefl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 rkiefl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by peppy
I was wondering, If I have two nic cards with two IP's can I run IIs and apache on the same windows 2000 server? if so how

As they said, you can manage this with 1 IP, 1 NIC and through 1 port. It's set up in almost the same way as running PHP through IIS. You need to install both IIS and apache tomcat, (install IIS first though). Set up IIS as your localhost and Apache on 8080. It will do that by default during the installing if IIS is running. Then you need to go to the apache site and download the redirect dll. From there are the entire instrucitons on how to configure it all. Bascially, you'll be running all of your websites through IIS, but IIS will redirect .jsp files to the apache server (you can redirect others if you wish as well).

Check out the "installation" section here:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

Reply With Quote
  #15  
Old January 10th, 2005, 10:38 AM
jdhesl jdhesl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 jdhesl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
same problem - Apache & IIS on different IPs

I have the same problem / desired result as Agrikk. I'd like Apache and IIS to both run on port 80 but on different IP addresses. When installed, IIS seems to intercept all port 80 requests to a given machine, even if one IP address is not assigned to a web site in IIS and none of the IIS web sites are left with the default behavior of taking up all unassigned IPs.

Anyone have insight on this or get this to work? It's IIS 6.0 on W2K3 if that matters.

Reply With Quote
  #16  
Old January 21st, 2005, 05:41 PM
agrikk agrikk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 agrikk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by jdhesl
I have the same problem / desired result as Agrikk. I'd like Apache and IIS to both run on port 80 but on different IP addresses. When installed, IIS seems to intercept all port 80 requests to a given machine, even if one IP address is not assigned to a web site in IIS and none of the IIS web sites are left with the default behavior of taking up all unassigned IPs.

Anyone have insight on this or get this to work? It's IIS 6.0 on W2K3 if that matters.


I managed to get it working:

In this case the problem was that IIS 6.0 has a feature called Socket Pooling that claims all ports for all loaded IP addresses, even if not configured in IIS.

So, IIS was hogging port 80 on the IP address I'd designated as the Apache address and causing it to not run. I installed Windows 2003 and got IIS running. Then I turned off IIS and installed Apache, associating it with the IP and port that I wanted. Then I turned off the Apache service and restarted IIS.

Then, what I had to do was:

1- Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
2 - stop all IIS services: net stop http /y
3 - have IIS listen only on the IP address I'd designated for IIS: httpcfg set iplisten -i 192.168.1.253
4 - make sure: httpcfg query iplisten (the ip's listed are the only ip addresses that IIS will be listening on and no other)
5- restart IIS Services: net start w3svc

Voila! Apache is listening on its default ports on 192.168.1.254 and IIS is listening on its default ports on 192.168.1.253.

Reply With Quote
  #17  
Old February 7th, 2005, 04:33 PM
FRANMAN FRANMAN is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 FRANMAN User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 20 sec
Reputation Power: 0
Thanks for the info about httpcfg.exe. Will I only have to use the httpcfg.exe utility once or will it have to be executed each time the machine is rebooted? Will the order in which IIS or Apache are started matter(IIS or Apache first?)

Thanks

Reply With Quote