{"id":177,"date":"2009-07-02T16:39:34","date_gmt":"2009-07-02T21:39:34","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=177"},"modified":"2009-07-13T16:59:38","modified_gmt":"2009-07-13T21:59:38","slug":"apache-error-only-one-usage-of-each-socket-address","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2009\/07\/apache-error-only-one-usage-of-each-socket-address\/","title":{"rendered":"Apache Install and Ambiguous Errors"},"content":{"rendered":"<p>I installed Apache 2.2.11 on the Windows XP portion of my desktop workstation for development purposes, but I got a lot of ambiguous errors when starting from the Apache Service Monitor or the Windows start menu.<\/p>\n<p>Finally, when I started Apache from the command line I got a more informative error:<br \/>\n(OS 10048) Only one usage of each socket address (protocal\/network address\/port) is normally permitted. : make_sock: could not bind to address 127.0.0.1:80 no listening sockets available, shutting down<\/p>\n<p>It turns out, I had Skype running, which by default binds to ports 5520, 80, and 443. There are several solutions:<br \/>\n<!--more--><\/p>\n<ol>\n<li>Quit Skype and don&#8217;t run Skype and Apache at the same time. Not ideal, but it works.<\/li>\n<li>Change which port Apache uses. In your Apache2\/conf\/httpd file, change the line &#8220;Listen 80&#8221; to something like &#8220;Listen 8888&#8221;. Apache should start, but you&#8217;ll need to access it via http:\/\/localhost:8888 instead of merely http:\/\/localhost<\/li>\n<li>Change which ports Skype uses for incoming connections. Go to <em>Tools&#8211;Options&#8211;Advanced&#8211;Connection<\/em> and un-check the box next to &#8220;Use port 80 and 443 as alternatives for incoming connections.&#8221;<\/li>\n<\/ol>\n<p>As far as I can tell, the last option has no ill-effect on Skype, although it might if your firewall or router is blocking port 5520.<\/p>\n<p>I ended up installing Apache 2.0 in addition to Apache 2.2, as I was having trouble with mod_perl with the latter. I ran into the same issue there as well, and once I quit Skype I was able to start Apache.<\/p>\n<p>Strangely enough, I now seem to have both Skype and Apache running and both listening on port 80, so perhaps I&#8217;ve misdiagnosed the problem completely.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed Apache 2.2.11 on the Windows XP portion of my desktop workstation for development purposes, but I got a lot of ambiguous errors when starting from the Apache Service Monitor or the Windows start menu. Finally, when I started Apache from the command line I got a more informative error: (OS 10048) Only one &hellip; <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2009\/07\/apache-error-only-one-usage-of-each-socket-address\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Apache Install and Ambiguous Errors<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[73,74,75],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-apache","tag-skype","tag-xp"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":4,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/177\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}