Results 1 to 11 of 11

Thread: IIS and Apache Together

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    32

    IIS and Apache Together

    Dear all,

    I would like to learn PHP.......i've been working on ASP for a while...after installing Apache on my system.......php works fine.........when i try to work on ASP again.it doesn't works....when i checked my internet service manager.....the default website appeared to be stopped and when i tried to start it again it gave me an alert message "address already in use"

    any idea how to overcome this problem

    Thanks in advance

    FmKing
    FmKing

    ***************************
    Sharing Knowledge = Good Deed
    ***************************

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    typically, web servers listen to port 80. That being said, it is also possible to re-map the server to listen to a different port. I believe only one service can listen to a port at a time. If both Apache and IIS listened to the same prot, who would get the requestes when they come in? I do not know exatly how to change the port mapping since I've never needed to that. Also, once the service has been remapped to a new port, the web addess changes. So, if you getIIS to listen to, say port 180 instead, the address would be http://localhost:180 -- otherwise it goes to port 80 by default, which means Apache would get it.
    Hope this helps.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    32
    Thanks.......

    i wonder how this re-mapping is done.


    any one...........pls
    FmKing

    ***************************
    Sharing Knowledge = Good Deed
    ***************************

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    32
    Thanks a lot.......

    i figured it out............it works
    FmKing

    ***************************
    Sharing Knowledge = Good Deed
    ***************************

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Mind sharing the solution?
    I plan to roll out Apache on my Win box at home, and would like a bit of insite on how you got it to work.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    have IIS on port 80 and apache on 8080

    this way you can have to localhost addresses.

    in the httpd.conf file you can specifiy which port apache looks at. just make it 8080 instead of the default 80.

    then you access it like so

    localhost:8080/page.php //apache
    localhost/page.asp // IIS

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Is there a way to flip that? So IIS listens on 1080 (8080 is used by my Source Safe), and have Apache on 80?
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    I suppose, I never used IIS so I have no idea where the file is you set it at. but having it at 1080 is not very safe as it ca be hit by hackers more often than port 80

  9. #9
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    Now, i dont know enuf programming skills to actually make a server, so i aint exactly dissin MS or that for IIS, but:

    IIS it is a large security risk to some of the more popular webservers (IE: Apache).

    So if i were you, only use IIS if u have to
    Wayne

  10. #10
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    How is 1080 any less secure than 80? If someone is going to hack in, they are going to hack in. It won't matter what port IIS is running on. Or Apache. I don't use my box at home for any production sites anyways, just testing before I load it to the production server.

    Something I learned in the military: If some one is determined to get in, they will. It won't matter what you do. The best you can hope for is to slow them down enough until either you are able to shut them down or they get so fustrated they give up.

    Most hackers are using a port scanner of some sort any ways, so it doesn't matter what port things get remapped to.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  11. #11

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    32
    you can change the port by accessing Default Website's properties and changing the TCP port to 8080 or 1080...

    and to access the pages.........like phpman said you'll have to use the following method to access it...

    localhost:8080/page.asp

    That's what i did.....

    so now Apache is using port 80 and IIS is using 8080.
    FmKing

    ***************************
    Sharing Knowledge = Good Deed
    ***************************

Posting Permissions

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



Click Here to Expand Forum to Full Width