473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Running Apache & IIS on same windows Machine

usafshah
104 100+
I'm running IIS on windows 2003 server, Now for some reason I want to install Apache on the same machine, I just wanna ask whether it'll produce any problem if i install both on same machine, Kaz i dont wanna take risk let me first have ur suggestions that if its possible to run both ?


also will it need any further settings ?
Dec 18 '06 #1
4 23790
sashi
1,754 Expert 1GB
I'm running IIS on windows 2003 server, Now for some reason I want to install Apache on the same machine, I just wanna ask whether it'll produce any problem if i install both on same machine, Kaz i dont wanna take risk let me first have ur suggestions that if its possible to run both ?


also will it need any further settings ?
Hi there,

Risk? There is no risk as long as both the service are running on secured & individual port. By default IIS & Apache are designed to run on port 80 which is the HTTP port as well. You need change the default port of either IIS or Apache. Edit the httpd.conf file in order ro change the server port.

Just in case, if your server is behind a firewall, make sure to edit your firewall rules to be able to accept inbound connection on the newly assigned port number.

Hope it helps, Good luck & Take care.
Dec 19 '06 #2
r035198x
13,262 8TB
Hi there,

Risk? There is no risk as long as both the service are running on secured & individual port. By default IIS & Apache are designed to run on port 80 which is the HTTP port as well. You need change the default port of either IIS or Apache. Edit the httpd.conf file in order ro change the server port.

Just in case, if your server is behind a firewall, make sure to edit your firewall rules to be able to accept inbound connection on the newly assigned port number.

Hope it helps, Good luck & Take care.
In the httpd.conf round about line 122

You put
Listen 8080
then you acces apache through
http://localhost:8080/

and IIS through http://localhost
Jan 9 '07 #3
To run both Apache and IIS web server simultaneously

in windows:
we follow a very simple and easy method.

Logic: By default both the servers have the same port number:80.


to solve or purpose we have to change the port no. of either of them.Follow the procedure below:


To change APACHE WEB SERVER PORT NUMBER
----------------------------------------

Most Important Point: Don't forget to stop both the servers before
performig the entire procedure and restart/start the services after
you are finished eith your work.



1)start ->control panel->Administrative tools->Services->stop APache2


2)Open the Apache config File C:\Apache2\conf\httpd.conf or go through
----------------------------
Start -> All Programs -> ApachePhpMysql(if u have installed ApachePhpMysql

other wise look for other path but the file name will remain same)->

Config -> Apache (notepad file)

look for Listen 127.0.0.1:80 .In my Computer its on line no. 10

change 80 to 8080(preffered) or some othe no.

save the file and close it.


3)start ->control panel->Administrative tools->Services->start APache2


4)open Web browser and type http://localhost:8080/

if the screen shows "Apache is working" (in bold letters), you r done


5)Next you can run asp.net through http://localhost/

So Now both of your servers can run together.



Hopefully you Will Find the solution of your problem.

Thanx
---------------------------------------------------

In case still your problem exist try out this one:


To change IIS PORT NUMBER
---------------------------
Most Important Point: Don't forget to stop both the servers before
performig the entire procedure and restart/start the services after
you are finished eith your work.




1)start ->control panel->Administrative tools->Services->stop ASP.NET state service

2)start->control panel->Administrative tools->Internet Information Services

->local computer(Name of your computer)e.g Digial4(local computer) ->

Web Sites -> Default Web Site ->right click->stop or click the black square on the tool bar.


3) WE can change the port no.of IIS by browsing inn this mannner:

start->control panel->Administrative tools->Internet Information Services

->local computer(Name of your computer)e.g Digial4(local computer) ->

Web Sites -> Default Web Site ->right click->Properties

-> TCP Port= 80. change the no. with the no. you want to enter.->Apply->OK

Go back to Administrative tools and click on Services.

Restart ASP.NET state service. Hopefully this will work.

-------------------------------------------------------------------------
Most Important Point: Don't forget to stop both the servers before
performig the entire procedure and restart/start the services after
you are finished eith your work.



In case this method does not gives desired result. then change the port no. of

Apache WEb SERveras described above.

Hopefully you Will Find the solution of your problem.

Thanx
Sep 25 '07 #4
Hello friend, you can run both Apache and IIS in same machine in 80 port, If you have more than one IP.

See my article for details at http://code4fun.senthil.name.

Senthil,
www.senthil.name.
Jan 21 '10 #5

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

Similar topics

10
by: Patrick | last post by:
Hi I am a newbie and was just getting started working on a guestbook tutorial when I got an error message upon running my PHP code: Fatal error: Call to undefined function mysql_connect() in...
4
by: Damien Renwick | last post by:
I have a php script which simply stops midway through a while loop that processes records returned by a MySQL query. The HTML page continues trying to load the page but the php has stopped running...
0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
4
by: Peter Otten | last post by:
Is there a way to limit both width and height of a canvas text item? My current workaround seems clumsy: import Tkinter as tk root = tk.Tk() canvas = tk.Canvas(root, width=400, height=200,...
1
by: sysxperts | last post by:
Hello, Having an issue that is specific to PHP compiled with PGSQL support with versions noted in subject line. I understand that there are many variables to consider here but believe I have...
3
by: Geoff Coope | last post by:
Hi all I created an ASP ActiveX DLL file in Delphi that works great using ASP on IIS. Is it possible to use ActiveX DLL files within PHP like in ASP? but on an Apache webserver that is...
5
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major...
7
by: John Murtari | last post by:
Folks, We would like to upgrade our servers to PHP 5 and PHP 4 together as modules on the same server (not as cgi, not passing requests to another server). I did some extensive searching on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
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...
0
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...

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.