Forum Moderators: phranque

Message Too Old, No Replies

apache + new router config help

beginner's guide needed

         

ubernoir

2:54 pm on Oct 8, 2005 (gmt 0)



I have XP and I was running apache which ran fine
I installed a Linksys router
i can't log onto localhost through firefox and when i use IE it tells me to install IIS
I'm waiting for dyndns.com to move my domain name and currently when i put my domain name in the browser both through local network and from external pc get under construction page not my index.html

ubernoir

3:38 pm on Oct 8, 2005 (gmt 0)



also my apache error log says
[Fri Oct 07 11:49:04 2005] [warn] (OS 10050)A socket operation encountered a dead network. : winnt_accept: Failed to allocate an accept socket. Temporary resource constraint? Try again.

ubernoir

5:15 pm on Oct 8, 2005 (gmt 0)




idiot guide wanted
see previous post (same title) for details

jdMorgan

8:56 pm on Oct 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ubernoir,

Welcome to WebmasterWorld!

Since you just added the router, try this LinkSys Technical FAQ search [linksys.custhelp.com]. Result #5 seems to be most appropriate.

Jim

ubernoir

8:37 pm on Oct 12, 2005 (gmt 0)



i have set up the router to 192.168.1.xx i am transfering to dysdns.com so i have a static address but i know my current ip. if i disconnect the router and connect direct to the modem still no joy (although when i try different things i'm not sure if due to cacheing i always connect to my pc when i type in my domain)
linksys say if you bypass the router and then you can't connect to server then it is because my ip is blocking well known ports but doesn't suggest a solution
do i set up listen 65535 for example ( i don't know how many ports i would have)

ubernoir

8:42 pm on Oct 12, 2005 (gmt 0)



well at least i was right that i have 256*256 ports!

ubernoir

12:35 am on Oct 13, 2005 (gmt 0)



the problem is definately with apache
i can reach pages using my partial xp pro version of iis
i've put pages in my wwwroot folder of iis and i can access them
but i can't figure the prob with apache

moltar

12:58 am on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, ubernoir!

i can reach pages using my partial xp pro version of iis
i've put pages in my wwwroot folder of iis and i can access them

This is your problem. You are trying to run Apache on port 80, when there is already IIS on port 80. You cannot have two applications sharing one port. They need to have exclusive access.

You can either run one of the servers on a different port, or shut down IIS and use apache only.

ubernoir

11:17 am on Oct 13, 2005 (gmt 0)



but i changed apache to port 65535 and when i put in my url i access the iis server so do i need to uninstall iis ( its not a full install it shows grey on windows components install/uninstall )

ubernoir

11:55 am on Oct 13, 2005 (gmt 0)



also what is the difference between upnp and port forwarding because when i don't have upnp enabled and i enter my url the intranet gives me my router at 192.168.1.1 rather than the iis even though port forwarding is enabled

moltar

12:46 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but i changed apache to port 65535 and when i put in my url i access the iis server

You need to specify which port you want to access. E.g. [localhost:65535...]

also what is the difference between upnp and port forwarding

When you use UPNP the computer itself has to issue a command to the router to tell the router what port should be forwarded to itself. This is useful for DHCP setups. It's a bit difficult to setup.

Regular port forwarding just forwards a range of ports to one specific IP address. So if you are using DHCP, the next time you reconnect, you might get a different IP address and forwarding will stop workin.

ubernoir

2:25 pm on Oct 13, 2005 (gmt 0)



but my apache config used to accept
Listen 80
so
Listen 65535
surely would be the same
which is the current configuration and i still only get iis responding
so if i uninstall iis do you think apache will start responding to url requests

moltar

2:49 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but my apache config used to accept
Listen 80
so
Listen 65535
surely would be the same

Same what? I don't think you understand the concept of ports. You should read up about it.

Just think logically. If you have two servers listening on the same port and user makes a request. Who would answer the request? Either one of them? They take turns? None? That is why two servers cannot be on the same port, so that such questions do not arise.

Imagine a port being a door into a movie theather room. There is only one screen. Only one movie can be played at the same time. So if you want to show another movie, you need to open up another room and have another door then forward people to that door.

By IANA's rules [iana.org] all browsers know that HTTP protocol is on port 80, thus you don't need to specify the port, but you could if you wanted.

[localhost:80...] is equivalent to [localhost...]
http://www.example.com:80/ is exactly the same as http://www.example.com/

The :80 is ommited, because according to IANA's specifications all servers, by default, run on port 80. If you are running a server on an alternative port, then you must specify it, otherwise the browser cannot know which port you really mean.

In your case, you don't specify a port, and thus you always get IIS answering, because IIS is running on port 80. If you want to talk to apache, you need to tell the browser which door to knock in.

ubernoir

3:08 pm on Oct 13, 2005 (gmt 0)



no i have specified a port it was port 80
listen 80 gets the computer using apache to listen to port 80
so listen 65535 asks the computer to listen on port 65535
so currently my computer is listening to port 65535 and iis is presumably bound to port 80 but it is the iis which is responding so i am hoping that when i uninstall iis then apache will respond. i am thinking that one request previously wouldn't produce a response from both sets of server software.
but i take your point about trying [localhost:65535...]

moltar

5:52 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



iis is presumably bound to port 80 but it is the iis which is responding

IIS will respond on port 80 if it is listening on port 80, how else do imagine this to happen?

You don't really need to uninstall IIS, you can just disable it's service, then restart.

Start -> Settings -> Control Panel -> Administrative Tools -> Services -> IIS -> Disable

Restart your computer.
Reconfigure apache to run on port 80
Now you can access it without specifying any port numbers.

ubernoir

8:47 pm on Oct 13, 2005 (gmt 0)



i disabled iis as instructed
restarted and reconfiged apache to port 80
tried the browser with url and status bar left message waiting for my url
found that when restart disable changed and iis restarted automatically
so diabled iis and didn't restart
found url timed out
localhost connection refused when use firefox
localhost page not found when use IE
before all this tried localhost:65536 and no joy

one curious thing there is an apache icon next to the clock before it had been showing apache not running and if you try and start apache via this i get the error message the requested operation has failed but tonight when i turned the computer on it showed that apache was running and this was when listen 65535 was the directive
now i have restarted the computer it shows not working even though i seem to start it through start > programs > apache
8-)