Page 1 of 2 12 LastLast
Results 1 to 16 of 21

Thread: Apache with IIS

  1. #1
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Apache with IIS

    I wanted to install Apache onto an XP SP2 machine with IIS already installed, wanting them to function independantly both with virtual local testing servers, can someone give me some info about going about this.
    To err is human. To really foul things up ... you need a computer.

  2. #2
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    Bascially I imagine all you'll need to change are the default ports (HTTP and HTTPS) for either Apache or IIS... Other than that they should both be happy (as long as you aren't trying to do something like let them both use the same files at the same time)

  3. #3
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    So, how do I do that then?
    To err is human. To really foul things up ... you need a computer.

  4. #4
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    Quote Originally Posted by yamangman
    So, how do I do that then?
    Should you be installing both on the same machine if you don't know how to do that?



    For IIS you need to open up the management console ("Internet Services Manager"), open up the root level in the left hand bar so that you can see "Default Web Site", right click that (edit: and then left click properties) and then change the port(s)... Might I ask why you want to do this?
    Last edited by malfunction; 09-02-2005 at 08:39 PM.

  5. #5
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    Dosn't appear to work, I installed Apache and the default web site appears as a stop sign reading 'error'.

    Isn't there a way I could assign Apache to 81.178.207.37 and IIS to 127.0.0.1?
    To err is human. To really foul things up ... you need a computer.

  6. #6
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    You *might* need to restart the service / PC to get IIS to use a different port

    Edit: I presume you mean that the default IIS website is shown when you try and connect to port 80...
    Last edited by malfunction; 09-02-2005 at 09:01 PM.

  7. #7
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    No, I meant Apache rules the roost when I type localhost

    So how do I use localhost with different ports? Or do you mean I switch IIS back to port 80 when I went to use it? I don't think that would work, I think Apache takes control even when IIS is on port 80.
    Last edited by yamangman; 09-02-2005 at 09:09 PM.
    To err is human. To really foul things up ... you need a computer.

  8. #8
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    If for example you've switched IIS to port 81 you'd type:

    localhost:81/mypath/mypage.html

  9. #9
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    AHhh, thanks you ver much. Can I map ports with their IP address to host names in the Windows HOSTS file, somthing like this:

    127.0.0.1:8080 iishost

    127.0.0.1:80 apachehost

    ??
    To err is human. To really foul things up ... you need a computer.

  10. #10
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    Not that I know of no.

  11. #11
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    no -that can't be done with hosts files / DNS, you can only use port forwarding to that service but that fact that your stuggling with simple port mappings suggests your way out of your league and need a little reading on the basics of running a webserver
    It is Inevitable.....


  12. #12
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    One simple thing you could do is do a browser based redirect...

    I.e. if you had a html file sitting at:

    localhost/iis.html

    It would redirect you to

    localhost:8080

    However you really haven't stated your case for running both... Are you just trying to compare them? Or learn ASP and PHP? (you can run PHP under IIS anyway)...

  13. #13
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    can you do redirects to ports ? probably but I don't think I've ever tried
    It is Inevitable.....


  14. #14
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    yea, use ASP or PHP to do a low level http redirect responce to the client.

  15. #15
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    Thanks malfunction. I'm trying to to get more competent with PHP and may upload a website, but i'm tired of using IIS/PHP and want to use Apache seeing as most web hosts are Apache/PHP.

    Trying to get PHP working with Apache now, i've included the line 'LoadModule php4_module C:/php-4.3.10-Win32/sapi/php4apache2.dll' and tried a few simple PHP scripts, but firefox just shows all page code for .php pages and IE dosn't execute scripts, so obviously PHP isn't working, so I need some help with that too if you have any ideas.
    To err is human. To really foul things up ... you need a computer.

  16. #16
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    you need the application hanndler in the config

    AddType application/x-httpd-php .php

    so that it understands to use the php functionality for .php files
    It is Inevitable.....


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Apache modules!
    By Big RICHARD in forum Software
    Replies: 0
    Last Post: 02-11-2004, 11:43 AM
  2. Apache n stuff!
    By Big RICHARD in forum Software
    Replies: 1
    Last Post: 28-10-2004, 01:04 PM
  3. Need to learn IIS basics...
    By Atomic in forum Software
    Replies: 5
    Last Post: 18-06-2004, 01:44 PM
  4. Win 2003 / IIS Help Needed
    By Jonny M in forum Software
    Replies: 3
    Last Post: 19-03-2004, 12:00 AM
  5. ClarkConnect Apache Server/Dabsvalue DSL Router Problem
    By Theo in forum Networking and Broadband
    Replies: 1
    Last Post: 26-02-2004, 10:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •