Page 1 of 1

My Apache can't listen on 80

PostPosted: 05. January 2014 05:44
by sigung_q
I can't get my apache to listen on port 80, and as a result, can't host my website to the internet. It can listen on 82, but when I try external access, I only get a blank page. Is there a workaround for this?

Re: My Apache can't listen on 80

PostPosted: 05. January 2014 05:45
by Altrea
XAMPP is only designed and supported as local development/testing environment, not as public accessible live server.

Re: My Apache can't listen on 80

PostPosted: 05. January 2014 09:46
by Nobbie
sigung_q wrote:I only get a blank page. Is there a workaround for this?


If you run Apache on Port 82, you must apply the portnumber in the URL: http://domainname:82

If you omiss the portnumber (which is standard), the URL yields to Port 80 - and Port 80 is already served by another process, which does not respond to the request (therefore the blank page). Anyway, it is a bad idea to change Apache to Port 82 (as you see, it leads to an ugly URL containing the portnumber), instead you should find out, which process already listenes to Port 80 and then change this program to listen to a different port. Usually Skype is known for this kind of problems, you can configure Skype not to use Port 80 in the Options menu and then restart Skype and Apache (and reset Apache to listen to Port 80).

If you are running Apache from Xampp, beware that Xampp is not suited for running online, your server will be hacked soon because Xampp is highly unsafe. Is is meant for development only.

Re: My Apache can't listen on 80

PostPosted: 09. January 2014 00:11
by blayderunner123
Had the same problem when attempting to run Apache on my windows *.1 machine to run Apache follow these steps:
1. Mouse-over and click on Config under Apache section in the XAMPP Control Panel -->
2. Select Apache (httpd.conf)
3. scroll down untill you reach section entitled "# Listen:"
3.a change "Listen" to port:8080
4. "save" httpd.conf and then exit.
5. click "Start"

Congratulations Apache is now running.

Note: Apache will run even if no one is logged in on the server at the moment) Select only for the Current User, on Port 8080

for more information go to: http://httpd.apache.org/docs/2.2/platform/windows.html

Re: My Apache can't listen on 80

PostPosted: 13. January 2014 02:04
by sigung_q
Thanx guys!! I changed it to port 82. I am using it for development right now, so it's not important for me to host a produced website yet.
Thanx about the zend server as well. I am thinking of self hosting in the future.