Apache, JungleDisk and Port 80

I was tearing what little hair I have trying to solve a very strange bug on Windows with Apache 2 & JungleDisk.
(Yes I use Amazon’s Simple Storage Service for all my backups).

I was getting the following errors in Event Log, for what appeared to be no reason.

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 .

The Apache service named reported the following error:
>>> Unable to open logs

I found some references to a similar problem, but only with IIS 6 on Windows 2003. I use Windows XP.

The current versions binds to localhost port 80 in order to enable drive mapping with the WebClient service.

But, nowhere in the documentation does it tell you this. This means, if you opt for the lazy simple life, using one IP address and let whatever program bind to whatever, you will get problems.

I came up with a few workarounds, I chose the latter;

  • Add a second IP address and bind Apache to that – too much like hard work.
  • Bind apache to another port – annoying.
  • Disable the Web Client option in Jungle Disk.

Disabling the Web Client does mean you won’t get your network drive mapping which might upset a few people. It never worked for me anyway.

netstat -ao may be useful in debugging what is stopping Apache opening the port.
Update, I found a few references ;

Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

2 thoughts on “Apache, JungleDisk and Port 80”

Leave a Reply

Your email address will not be published. Required fields are marked *