{"id":20336,"date":"2017-08-10T02:46:38","date_gmt":"2017-08-10T02:46:38","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=20336"},"modified":"2024-07-29T15:53:41","modified_gmt":"2024-07-29T15:53:41","slug":"how-to-fix-apache-error-make_sock-could-not-bind-to-address-80-on-windows","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-fix-apache-error-make_sock-could-not-bind-to-address-80-on-windows\/","title":{"rendered":"How to fix Apache Error make_sock: could not bind to address 80"},"content":{"rendered":"<h2>Apache Error make_sock: could not bind to address 80<\/h2>\n<p>This tutorial will teach you how to resolve the following Apache error during startup. An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80<\/p>\n<p>80 is the standard default port used for HTTP communication by the Apache Server. In this scenario, you want the Apache server to run on this port.<\/p>\n<h2>Error Trace<\/h2>\n<p>(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20337 size-full\" title=\"Apache Error make_sock could not bind to address\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error.png\" alt=\"Apache Error make_sock could not bind to address\" width=\"1916\" height=\"735\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error.png 1916w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error-300x115.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error-1024x393.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error-768x295.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Socket-Error-1536x589.png 1536w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<h3>Fix<\/h3>\n<p>The error is because of port conflict. The Apache is trying to start on port 80, however the port 80 is being used or blocked by another application or server. When two or more applications are trying to use the same port its called as port conflict.<\/p>\n<p>Check the process that is using the port 80.<\/p>\n<p><strong>\/&gt; netstat -qo\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20338\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening.png\" alt=\"Port 80 Listening\" width=\"1839\" height=\"810\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening.png 1839w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening-300x132.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening-1024x451.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening-768x338.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Port-80-Listening-1536x677.png 1536w\" sizes=\"auto, (max-width: 1839px) 100vw, 1839px\" \/><\/p>\n<p>In this case the IIS server is running on port 80. This could be the most possible case but not always true. The first <strong>intelligent guess<\/strong> is the <strong>standard servers<\/strong> that run on port 80!<\/p>\n<p>Try to find the process with the process ID.<\/p>\n<p><strong>\/&gt; tasklist\u00a0<\/strong><\/p>\n<p><strong>tasklist<\/strong> is the command line tool to display the processes and the associated IDs. This command is equivalent to <strong>ps<\/strong> utility in Linux.<\/p>\n<p>Alternatively, try accessing the webpage to know the application. We can omit the port number 80 as it is the default port<\/p>\n<p><strong>http:\/\/localhost:80<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20342\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80.png\" alt=\"IIS Server port 80\" width=\"1920\" height=\"818\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80-300x128.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80-1024x436.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80-768x327.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IIS-Server-port-80-1536x654.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Decide which process should be running on port 80. Change the default port for the IIS server or stop the server.<\/p>\n<p>Start and run the Apache server to resolve the port conflict error.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20343\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved.png\" alt=\"Apache Error Resolved\" width=\"1920\" height=\"626\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved-300x98.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved-1024x334.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved-768x250.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Apache-Error-Resolved-1536x501.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>That&#8217;s it!<\/p>\n<h3>Related Links<\/h3>\n<p><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-change-jenkins-port-number-on-windows\/\">https:\/\/www.testingdocs.com\/questions\/how-to-change-jenkins-port-number-on-windows\/<\/a><\/p>\n<p>More information on Apache HTTP web server:<\/p>\n<p><a href=\"https:\/\/apache.org\/\" rel=\"noopener\">https:\/\/apache.org\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Error make_sock: could not bind to address 80 : This tutorial will teach you how to resolve the following Apache error during startup. An attempt was made to<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-20336","post","type-post","status-publish","format-standard","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=20336"}],"version-history":[{"count":10,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20336\/revisions"}],"predecessor-version":[{"id":23452,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20336\/revisions\/23452"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=20336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=20336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=20336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}