Page 1 of 2

Unable to start Apache on Vista

PostPosted: 01. July 2008 15:12
by Dubber Dan
I've just done a fresh install and everything went fine. But now after a restart Apache won't start.

In Event Viewer in Vista I'm getting the error:

"The Apache service named reported the following error:
>>> (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:80 "

Any suggestions?
D

PostPosted: 01. July 2008 15:26
by icetee
I've been confronted with the same error on win.xp - but finally, the apache worked normaly. After a reinstall (deninstall and new setup) the error didn't occure again.

make_sock: could not bind to address 0.0.0.0:80

Are you sure no other software do use the port 80 a second time ?!

PostPosted: 01. July 2008 15:50
by Dubber Dan
Have tried uninstalling/reinstalling now a couple of times and it don't wanna play.

I'd already changed the settings in Skype to make it not use ports 80 and 443 and also tried it without that running at all but still no joy

PostPosted: 01. July 2008 16:15
by icetee
Which version of Xampp do you have in use ?!

Try out: http://www.apachefriends.org/en/xampp-beta.html
[xampp-win32-1.6.7-installer-beta1.exe]

PostPosted: 01. July 2008 16:25
by Dubber Dan
I'm using xampp-win32-1.6.6a-installer so will uninstall and give that newer version a whirl

PostPosted: 01. July 2008 16:28
by icetee
Try it out and inform us about the result ;-)
BUT ATTENTION: That is a beta-release. It might not work.

PostPosted: 01. July 2008 16:42
by Dubber Dan
No joy with the beta :-(

Installs fine and apache/mysql/filezilla start fine. Stop each service and then start again and apache fails

PostPosted: 01. July 2008 16:46
by icetee
WOW - i just say.
Have you tried to start apache manually ?!
(apache_start.bat) It worked fine until you restart ?!

EDIT:
Did you change anything in the php.ini or httpd.conf ?!
What ist with the error.log ?!

Starting the apache_start.bat should give out an error.
If not then edit the batch with e.g. notepad and add "Pause" at the end, then try out again.

PostPosted: 01. July 2008 18:07
by Dubber Dan
Have just tried to start Apache from the batch file and it just sits there with

Apache 2 starting ...

but doesn't seem to get anywhere, even after 5mins.

Just restarted my laptop, fired up the XAMPP control panel it it is showing Apache running. Stopped the service, but it won't start up again (tried from Windows Services, apache_start.bat and the XAMPP control panel).

Not changed any of the files, it's a fresh default install

:-(

The log file is showing:

[Tue Jul 01 18:02:27 2008] [notice] Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6 configured -- resuming normal operations
[Tue Jul 01 18:02:27 2008] [notice] Server built: Jun 14 2008 19:02:12
[Tue Jul 01 18:02:27 2008] [notice] Parent: Created child process 3980
Apache server shutdown initiated...
Child 3980: Child process is running
[Tue Jul 01 18:02:29 2008] [notice] Child 3980: Acquired the start mutex.
[Tue Jul 01 18:02:29 2008] [notice] Child 3980: Starting 250 worker threads.
[Tue Jul 01 18:02:29 2008] [notice] Child 3980: Starting thread to listen on port 443.
[Tue Jul 01 18:02:29 2008] [notice] Child 3980: Starting thread to listen on port 80.
[Tue Jul 01 18:07:59 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 01 18:07:59 2008] [notice] Child 3980: Exit event signaled. Child process is ending.
[Tue Jul 01 18:08:00 2008] [notice] Child 3980: Released the start mutex
[Tue Jul 01 18:08:01 2008] [notice] Child 3980: All worker threads have exited.
[Tue Jul 01 18:08:01 2008] [notice] Child 3980: Child process is exiting
[Tue Jul 01 18:08:01 2008] [notice] Parent: Child process exited successfully.

PostPosted: 01. July 2008 18:10
by Dubber Dan
apache_start.bat


@echo off
echo Diese Eingabeforderung nicht waehrend des Running beenden
echo Bitte erst bei einem gewollten Shutdown schliessen
echo Please close this command only for Shutdown
echo Apache 2 is starting ...

apache\bin\apache.exe

if errorlevel 255 goto finish
if errorlevel 1 goto error
goto finish

:error
echo.
echo Apache konnte nicht gestartet werden
echo Apache could not be started
pause

:finish

PostPosted: 01. July 2008 18:43
by icetee
Hmm.
Do you have a firewall ?!
That could be a reason.

PostPosted: 01. July 2008 19:01
by Dubber Dan
Well blow me, I was sure I'd tried with and without the Vista firewall, but that seems to be it. The odd thing is though that Apache HTTP Server is listed in the exceptions (by default) but isn't working.

What do I need to add to allow Apache to run while the Vista firewall is on?

PostPosted: 01. July 2008 19:07
by icetee
I'm sorry, but i have XP and don't use Windows-Firewalls.
Google doesn't say anything how to configure Vista-Firewall correctly...

http://www.personalfirewall.comodo.com/
That is the COMODO-Firewall. It's free, very secure and easy to configure ;-)
I use it myself. The only thing you should do is to disable the "defense" (it's just the intern-defense: e.g. if you enable the (intern-)"defense" you have to
allow set-up programms to create a dictionary, an exe-file, an icon -etc. >> not very user-friendlie ^^))

PostPosted: 01. July 2008 19:27
by Dubber Dan
hehe, funnily enough, I used to use Comodo my old laptop, but thought I'd give the vista firewall a try. That's gone out the window and i'll go back to what i know ;-)

PostPosted: 01. July 2008 19:45
by icetee
^^
Ok, all clear :)