Install problem: Apache won't start on W2K machine

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Install problem: Apache won't start on W2K machine

Postby lmhudson » 20. February 2005 12:28

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?
lmhudson
 
Posts: 3
Joined: 20. February 2005 11:49

Postby Knappe » 20. February 2005 12:41

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))
Knappe
 
Posts: 114
Joined: 18. November 2004 17:40

Postby Wiedmann » 20. February 2005 13:27

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

further test

Postby lmhudson » 20. February 2005 14:11

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.
lmhudson
 
Posts: 3
Joined: 20. February 2005 11:49

Postby Knappe » 20. February 2005 16:10

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 !!
Knappe
 
Posts: 114
Joined: 18. November 2004 17:40

2 LISTEN directives

Postby lmhudson » 20. February 2005 19:24

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.
lmhudson
 
Posts: 3
Joined: 20. February 2005 11:49

Postby VBHol » 03. May 2005 10:12

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.
VBHol
 
Posts: 1
Joined: 03. May 2005 10:05

Postby ihmt » 12. June 2005 17:17

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.
ihmt
 
Posts: 3
Joined: 11. June 2005 20:02

Postby Hawleyjr » 09. January 2006 17:11

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!
Hawleyjr
 
Posts: 1
Joined: 09. January 2006 16:59

Postby Knappe » 10. January 2006 09:22

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.
Knappe
 
Posts: 114
Joined: 18. November 2004 17:40

services that block apache ...

Postby manu martin » 10. January 2006 23:03

thanks ...i just stop the (IIS Admin service) ... and apache start as it should ... :lol:

now time to work !
manu martin
 
Posts: 1
Joined: 29. December 2005 17:06
Location: Montreal ,Quebec,Canada

Re:

Postby prasmick » 04. March 2010 12:59

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
prasmick
 
Posts: 1
Joined: 04. March 2010 12:56

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

Postby 2potatocakes » 30. March 2010 22:45

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
2potatocakes
 
Posts: 2
Joined: 30. March 2010 22:33

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

Postby MrG » 31. March 2010 05:18

Lucas,

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

MrGam
MrG
 
Posts: 1
Joined: 25. December 2009 10:40

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

Postby shc1209 » 06. April 2010 20:26

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
shc1209
 
Posts: 1
Joined: 06. April 2010 20:14

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests