s_ff_da_b_ff Posted April 21, 2008 Share Posted April 21, 2008 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.. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/ Share on other sites More sharing options...
wildteen88 Posted April 21, 2008 Share Posted April 21, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-522977 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 21, 2008 Author Share Posted April 21, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523008 Share on other sites More sharing options...
wildteen88 Posted April 21, 2008 Share Posted April 21, 2008 If you changed the port you'll need to use http://localhost:8080/ instead of http://localhost Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523011 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 21, 2008 Author Share Posted April 21, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523122 Share on other sites More sharing options...
wildteen88 Posted April 21, 2008 Share Posted April 21, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523183 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 21, 2008 Author Share Posted April 21, 2008 When I open the Apache Service Monitor it wont let me click the 'Start' button so I assumed I had to do it through the Control Server option. Why do you think it will not let me click 'Start'? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523205 Share on other sites More sharing options...
wildteen88 Posted April 21, 2008 Share Posted April 21, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523217 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 22, 2008 Author Share Posted April 22, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-523482 Share on other sites More sharing options...
wildteen88 Posted April 22, 2008 Share Posted April 22, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-524143 Share on other sites More sharing options...
lupld Posted April 22, 2008 Share Posted April 22, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-524149 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 22, 2008 Author Share Posted April 22, 2008 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!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-524375 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 22, 2008 Author Share Posted April 22, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-524379 Share on other sites More sharing options...
lupld Posted April 23, 2008 Share Posted April 23, 2008 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.) Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-525121 Share on other sites More sharing options...
lupld Posted April 23, 2008 Share Posted April 23, 2008 Just checked, the location of the file is set during the compile. Unless you want to compile it from source, where is the file you edit at and what's it called? Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-525123 Share on other sites More sharing options...
s_ff_da_b_ff Posted April 23, 2008 Author Share Posted April 23, 2008 I appreciate the help lulp. I thought it over and I am leaving college in 2 days and back home I have XP. Im just going to uninstal this stuff off my vista and try again on my XP. Thanks though. Quote Link to comment https://forums.phpfreaks.com/topic/102170-apache-server-not-workingplease-help/#findComment-525234 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.