|
-
Dec 16th, 2002, 01:42 PM
#1
Thread Starter
Member
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
***************************
-
Dec 16th, 2002, 02:01 PM
#2
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.
-
Dec 16th, 2002, 02:18 PM
#3
Thread Starter
Member
Thanks.......
i wonder how this re-mapping is done.
any one...........pls
FmKing
***************************
Sharing Knowledge = Good Deed
***************************
-
Dec 16th, 2002, 02:53 PM
#4
Thread Starter
Member
Thanks a lot.......
i figured it out............it works
FmKing
***************************
Sharing Knowledge = Good Deed
***************************
-
Dec 16th, 2002, 02:56 PM
#5
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.
-
Dec 16th, 2002, 05:35 PM
#6
Frenzied Member
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
-
Dec 16th, 2002, 05:47 PM
#7
Is there a way to flip that? So IIS listens on 1080 (8080 is used by my Source Safe), and have Apache on 80?
-
Dec 16th, 2002, 06:06 PM
#8
Frenzied Member
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
-
Dec 16th, 2002, 11:29 PM
#9
Frenzied Member
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
-
Dec 17th, 2002, 09:14 AM
#10
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.
-
Dec 17th, 2002, 01:34 PM
#11
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|