title: Mac OS Big Sur - Homebrew Apache - 48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
body: <p>I have a problem with Apache on Mac OS Big Sur. After the OS update, the Apache (using Brew) doesn't work anymore.
  So I have decided to uninstalled the <code>httpd</code> Formula.
  Then tested is the preinstalled version of Apache works and it does.</p>
  <ol>
  <li>So I have stopped the preinstalled Apache <code>sudo apachectl stop</code></li>
  <li>Unloaded launcher <code>sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2&gt;/dev/null</code></li>
  <li>Updated the Homebrew
  <ul>
  <li><code>brew update</code></li>
  <li><code>brew doctor</code></li>
  <li><code>brew upgrade</code></li>
  </ul>
  </li>
  <li>Installed the httpd again <code>brew install httpd</code> (installed successfully)</li>
  <li>Started the httpd <code>sudo brew services start httpd</code></li>
  </ol>
  <p>However checking the status <code>sudo brew services list</code> I can see that the httpd service has status <code>error</code>.
  When I try to start apache using <code>sudo apachectl start</code> I'm receiving the error:</p>
  <pre><code>(48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
  no listening sockets available, shutting down
  AH00015: Unable to open logs
  </code></pre>
  <p>I've checked if maybe there is something else running on the 8080 port <code>lsof -i TCP:8080</code> but it's not.</p>
  <p>I've checked which Apache is used (<code>which apachectl</code>) and it seems to be the right one (<code>/usr/local/bin/apachectl</code>)</p>
  <p>No matter what port I'm trying to use, always there is an error that the address is already in use.</p>
  <p>Does anyone has any idea how to fix this problem?</p>