|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
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
|
|
#6
|
|||
|
|||
|
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. ![]() |
|
#7
|
||||
|
||||
|
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!! |
|
#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)... |
|
#9
|
|||
|
|||
|
Yes, as long as you use two different port numbers.
|
|
#10
|
|||
|
|||
|
Quote:
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 |
|
#11
|
||||
|
||||
|
Quote:
Do you manage to run these programs on Linux?
__________________
Work to live, don't live to work |
|
#12
|
|||
|
|||
|
Yes as long as they run on different ports.s
|
|
#13
|
|||
|
|||
|
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 |
|
#14
|
|||
|
|||
|
Quote:
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 |
|
#15
|
|||
|
|||
|
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. |
|
#16
|
|||
|
|||
|
Quote:
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. |
|
#17
|
|||
|
|||
|
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 |