Jump to content

Recommended Posts

Hello.

 

When ever I go to Start -> Programs -> Apache HTTP Server 2.2 -> Control Apache Server -> Start

 

A command prompt appears with this error:

 

"<OS 10048> only one usage of each socket address <protocol/netowrk address/port> is normally permitted. : make_sock could not bind to address "0.0.0.00" no listening sockets available, shutting down"

 

 

 

Any ideas? Thanks..

Link to comment
https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/
Share on other sites

That error means that there is already a program/service using the port Apache is trying to connect to.

 

Either disable the current program/service currently using port 80 or configure Apache to use a different port eg: 8080

Hmm. I wen to my httpd.conf and changed the line Listen 80 to Listen 8080.

 

Then I tried starting Apache and the command prompt opened and then quickly disappeared. And it still isnt working correctly because my localhost/info.php test still isnt working. Any thoughts?

Is there anything I need to change other then Listen to "8080."

 

I ask this because like I said, when I tell Apache to start, the command prompt pops up and then abruptly disappears and is not running in m processes in the background (I checked). When I go to http://localhost:8080 I get the Unable to Connect page. Am I missing something?

 

 

 

:EDIT And when I  go to http://localhost:80 it brings me to my local host server even though I change the Listen to 8080. Any thoughts?

 

How are you starting Apache? You should be starting/restarting/stopping Apache via the Apache Service Monitor which can be located via the Apache taskbar icon (lower right hand corner of the screen by the system clock).

 

I guess currently you are starting Apache by opening the httpd.exe file. You should not do this as it loads a new instance of Apache.

What version of Windows are you using? Seems like you are using Vista.

 

In order for the Apache Service Monitor to work on Vista you'll need to set the Program Compatibility to XP Service Pack 2 and run it with Administrator privileges (This is set via the Properties Window for ApacheMonitor.exe).

 

Another way would be to control it via (Start >) services.msc and selecting the Apache2 Service from the List and choosing Start, Stop or Restart to left of the services list.

Ok so I tried doing your first method and it changed my Vista coloring scheme to 'basic' haha and fucked up my color. So I closed Apache service monitor. Do you think I should just give up on Vista and just get XP?

Huh! Did you change the colour scheme of Vista or something? I didn't tell you to change the theme!

 

Just browse to ApacheMonitor.exe (path is something like C:/Program Files/Apache Foundation/Apache 2/bin) then right click on the file and select Properties from the menu. Click the Compatibly tab and apply the settings I suggested. Afterwards close any instances of ApacheMonitor.exe (easiest way is via Task Manager - Ctrl Alt Delete). Once all instances are closed (should only be one). Run ApacheMonitor.exe again and agree to the stupid UAC prompt that will now display. You should now be able to control the Apache Service via the Apache Monitor.

 

If you have XP at hand then yes use XP if you wish to stay sane. I dual boot XP and Vista on my PC.

What about the config file, it sounds like it's alright with the vista settings. If it starts at all it should work. You could try and turn off UAC (User Account Control) though. Where are you testing it from and what process are you looking for in the task manager. when apache is running httpd.exe should be in your processes. What does your config file look like too, cause if "Listen :80" isn't there, http://localhost:80 shouldn't work.

Ok so I tried doing your first method and it changed my Vista coloring scheme to 'basic' haha and fucked up my color. So I closed Apache service monitor. Do you think I should just give up on Vista and just get XP?

Huh! Did you change the colour scheme of Vista or something? I didn't tell you to change the theme!

 

Just browse to ApacheMonitor.exe (path is something like C:/Program Files/Apache Foundation/Apache 2/bin) then right click on the file and select Properties from the menu. Click the Compatibly tab and apply the settings I suggested. Afterwards close any instances of ApacheMonitor.exe (easiest way is via Task Manager - Ctrl Alt Delete). Once all instances are closed (should only be one). Run ApacheMonitor.exe again and agree to the stupid UAC prompt that will now display. You should now be able to control the Apache Service via the Apache Monitor.

 

If you have XP at hand then yes use XP if you wish to stay sane. I dual boot XP and Vista on my PC.

 

 

It works it works! I can get the server to start!

 

BUT...big but here... when ever I run ApacheMonitor.exe and click 'Allow' my Vista goes to basic color scheme and it looks so crappy!! Lol. This is killing me!!!!!

What about the config file, it sounds like it's alright with the vista settings. If it starts at all it should work. You could try and turn off UAC (User Account Control) though. Where are you testing it from and what process are you looking for in the task manager. when apache is running httpd.exe should be in your processes. What does your config file look like too, cause if "Listen :80" isn't there, http://localhost:80 shouldn't work.

 

 

Thats the thing...even when I turn it to Listen:8080, Localhost:80 still works. I must be missing a setting?

ok, two ideas. First if you don't mind turning off UAC, I know I can run the apache monitor with the Aero style turned on and it doesn't switch me to basic. (type User Accounts in the start menu and select turn of UAC, reboot) and it won't ask you to allow programs to run anymore. If you have antivirus then your computer is still as secure as XP is. the other is it appears you are editing a different config file, you could try and assign a different config file for apache and copying the one you have to where you set it... I'll look for the directions. (turning off UAC makes your user account run as an administrator all the time, by the way.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.