Page 1 of 2

Install problem: Apache won't start on W2K machine

PostPosted: 20. February 2005 12:28
by lmhudson
Have disabled ZoneAlarm firewall, shutdown IIS, quit Skype, and now apache_start.bat no longer complains about being unable to listen on port 0.0.0.0:43. It just hangs: "Apache 2 is starting..." I don't mind occasionally shutting down IIS or Skype, but I don't like shutting down my firewall. What changes do I need to make in httpd.conf to get past this point?

PostPosted: 20. February 2005 12:41
by Knappe
Step by step :

Only for test (!):
- edit the File "HTTPD.CONF" in your directory (?:\xampp\apache\conf\)
- change the directive "Listen 80" to "Listen 85"
- save
- restart Apache-Server

If the Apache-Server is now starting, you have another programm that use your Port 80 (check all running programms with your "Taskmanager").

If you would like to run IIS- und Apache-Serve together than you have only to change the Listen-Port in IIS or Apache.

If you like to call your Apache-Server with the changed "Listen Port" with your browser - localy
- type : http://localhost:85 (for the example above)

If you like to call your Apache-Server via Internet
- you have to change your router-configuration (TCP 80 (in) -> TCP 85 (out))

PostPosted: 20. February 2005 13:27
by Wiedmann
and now apache_start.bat no longer complains about being unable to listen on port 0.0.0.0:43. It just hangs: "Apache 2 is starting..."

You can see Apache in the tasklist? Fine -> thats's all. Open your Browser, go to the address http://localhost/ and have fun.

further test

PostPosted: 20. February 2005 14:11
by lmhudson
rebooted, so IIS, ZoneAlarm (firewall) and Skype are all running. Changed "Listen 80" to "Listen 85" in http.conf. running apache_start.bat produces
"(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. :make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs"
I then shut down skype and try again. Same result. Since Apache is now on 85, IIS shouldn't interfere. ZoneAlarm is certainly listening at all ports, but Apache.exe is fully enabled in ZoneAlarm's control panel.
Is there another experiment I can try?
thanks.

PostPosted: 20. February 2005 16:10
by Knappe
it seems, that you have 2 Listen-Directives :

HTTPD.CONF
There is minimum 1 "Listen"-directive.
LOOK if there is an "include"-directive für the SSL (Port 443, File (ssl.conf))
You have to change this port in this file too !

Code: Select all
"(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. :make_sock: could not bind to address 0.0.0.0:443


This is the binding-error for the SSL-Port !!

2 LISTEN directives

PostPosted: 20. February 2005 19:24
by lmhudson
Yes, in httpd.conf I have:
Include conf/ssl.conf

In ssl.conf I have:
Listen 443

Should I change one or both? I should perhaps explain that the purpose of this xampp install is to create a LAMP development platform on a W2K machine. I don't ever plan to do any real hosting.

PostPosted: 03. May 2005 10:12
by VBHol
Thanks Knappe. I have just fired up XAMPP for the first time and had the same problem with port 443. Would not have had any idea where to look.

Imhudson - you need to change both the listen ports in httpd.conf and ssl.conf.

IIS automatically bags port 80, so in httpd.conf you need to change to listen 8080. Whether or not you have IIS installed at the moment, change it to 8080 anyway. You never know when something is going to interfere later on.

The SSL port needs changing from 443. I switched mine to 4430 and apache now starts with no problems.

Once you have it running, browse to: http://localhost:8080. That's you start point from now on.

HTH and thanks again Knappe.
VBHol.

PostPosted: 12. June 2005 17:17
by ihmt
I've just encountered the same problem when trying to start up Apache. I've adjusted the port etc... as stated in this thread and finally Apache is running AOK.

Thanks for the advice.

PostPosted: 09. January 2006 17:11
by Hawleyjr
Hello, I'm having the same problem as above. I've tried everyones suggestions but nothing is working.

What I've tried:

1. Modified ssl.default.conf
a. changed Listen 443 to Listen 4430 <-No Luck
b. I commented out the the following line to see if I could pass the error ( I don't need SSL) #LoadModule ssl_module modules/mod_ssl.so

By commenting out the line, all it did was produce the second error (Below)

1. Modified httpd.conf
a. changed Listen 80 to Listen 8080 <- No luck


Code: Select all
F:\Program Files\xampp\apache\bin>apache
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs


Code: Select all
F:\Program Files\xampp\apache\bin>apache
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
Unable to open logs



EDIT: Win XP
No firwall no IIS


Any help would rock!

Thanks!

PostPosted: 10. January 2006 09:22
by Knappe
1. Modified ssl.default.conf

That´s the wrong file ! The correct file ist "ssl.conf" (see include-statement in the httpd.conf !!!).

F:\Program Files\xampp\apache\bin>apache
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
Unable to open logs


Why do you changed from Port 80 to Port 8080 ? It´s not neccessary if the Apache is the only Webserver on your machine.

Look in your httpd.conf-file again and search for
- the Listen-command and then
- include-directions
for a DOUBLE Listen-directive !

If you have only ONE listen-directive (in ALL the conf-files !) and this port ist in use you must look for a port-scanner (search in this forum) to test all your open ports on your system.

services that block apache ...

PostPosted: 10. January 2006 23:03
by manu martin
thanks ...i just stop the (IIS Admin service) ... and apache start as it should ... :lol:

now time to work !

Re:

PostPosted: 04. March 2010 12:59
by prasmick
Hawleyjr wrote:Hello, I'm having the same problem as above. I've tried everyones suggestions but nothing is working.

What I've tried:

1. Modified ssl.default.conf
a. changed Listen 443 to Listen 4430 <-No Luck
b. I commented out the the following line to see if I could pass the error ( I don't need SSL) #LoadModule ssl_module modules/mod_ssl.so

By commenting out the line, all it did was produce the second error (Below)

1. Modified httpd.conf
a. changed Listen 80 to Listen 8080 <- No luck


Code: Select all
F:\Program Files\xampp\apache\bin>apache
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs


Code: Select all
F:\Program Files\xampp\apache\bin>apache
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
Unable to open logs



EDIT: Win XP
No firwall no IIS


Any help would rock!

Thanks!


I had the same problem when I tried to restart Apache from the command prompt. Go to services and then try to start apache from there. It worked for me.
-Prasannah

Re: Install problem: Apache won't start on W2K machine

PostPosted: 30. March 2010 22:45
by 2potatocakes
Hi guys,

I ran into the same problem as you all. In case anyone else stumbles across this forum, here's how to fix it.

You don't need to stop any existing applications or processors to get apache working. Apache has problems starting up is because it is trying to use ports that are already being used by other programs. Especially Ports 80 and 443. Rather than going to lengths trying to figure out what is using the ports you need and disabling them you can just simply specify new ports for xampp to use.

Change the following lines in your xampp configuration by opening them up in a text editor like notepad or whatever you use

C:\xampp\apache\conf\httpd.conf:

* Scroll down and find “Listen 80″, change to “Listen 8080″
* Also find “ServerName localhost:80″, change to “ServerName localhost:8080"

C:\xampp\apache\conf\extra\httpd-ssl.conf

* Scroll down and find “Listen 443″, change to “Listen 4499″
* Also find “<VirtualHost _default_:443>”, change to “<VirtualHost _default_:4499>”
* and just below that find “ServerName localhost:443″, change this to “ServerName localhost:4499″

Now try re starting xampp and seeing if apache starts correctly. If it does you just have to remember to specify the port when you're using your browser. So now rather than just going to:
http://localhost/xampp/
You should now use: localhost:8080 (or whatever port you specified in httpd-ssl.conf)
http://localhost:8080/xampp/

*Also note, you don't specifically have to use ports 8080 or 4499. If you're still having problems and try repeating the steps and specifying a different port instead.

Kind Regards,

Lucas

Re: Install problem: Apache won't start on W2K machine

PostPosted: 31. March 2010 05:18
by MrG
Lucas,

You are a GENIUS!!! Thanks a million..... and may your tribe increase...

MrGam

Re: Install problem: Apache won't start on W2K machine

PostPosted: 06. April 2010 20:26
by shc1209
lucas!!!!!!!!!!!
you are sooooooooooo Amazing!!!!!!!
i search in many pages how to solve this f*cking problem but there is no right answer.
but you are really awesome!
i spent 3 hours until i read how to solve this problem...
thanks so much!!!!!! :D