Page 1 of 1

Apache flashing incrementing ports

PostPosted: 01. October 2014 15:30
by joel_iz
Hi, I have a VPS running windows server 2008 with apache installed on it. The system works to a point, up until the 'ports' under Apache on the xampp control panel start flashing ever incrementing ports. The server itself is not used for anything else apart from the simple external use of the apache port 8080.

For example currently, I have it configured to listen on 8080 and 8181, but then it is also flicking between those values and 63414.. 63416... 63418 etc.

Any ideas what could be causing this?

Re: Apache flashing incrementing ports

PostPosted: 01. October 2014 17:21
by JJ_Tagy
Are you, or someone else accessing the server at the same time? That's usually when I see it. Check your access logs to match the time stamp.

Re: Apache flashing incrementing ports

PostPosted: 02. October 2014 00:43
by joel_iz
Thanks for the reply, I'll do that. I had to delete one log file as on opening it crashed the server, and then I noticed it was 455Mb.

No one else should be accessing the server as such, the content hosted on the server yes, but no one else logged in. I presume that is what you mean?

Re: Apache flashing incrementing ports

PostPosted: 02. October 2014 04:55
by gsmith
Apache "listens" on the ports you have specified for incoming requests. But when it's speaking back it cannot also listen for any other incoming requests unless it speaks back on a different port. So that is normal. Call the printenv.pl file in cgi-bin from your browser and you will see it

SERVER_PORT="80" or in your case 8080 or 8081 depending on which you use in your browser
REMOTE_PORT="64717" <- the port mine spoke back on