Running Apache & IIS on same windows Machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usafshah
    New Member
    • Nov 2006
    • 104

    Running Apache & IIS on same windows Machine

    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 ?
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Originally posted by usafshah
    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.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by sashi
      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


      and IIS through http://localhost

      Comment

      • TechnoAtif
        New Member
        • Sep 2007
        • 63

        #4
        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->Administrati ve 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->Administrati ve 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->Administrati ve tools->Services->stop ASP.NET state service

        2)start->control panel->Administrati ve 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->Administrati ve 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

        Comment

        • sdsnethil
          New Member
          • Jan 2010
          • 1

          #5
          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.nam e.

          Comment

          Working...