title: Clean reinstall and fix of httpd service error on macos
body: <p>I'm still having some problems on using httpd (aka Apache2) after the update of my MacOs on BigSur.</p>
  <p>I tried to make a clean reinstall of apache2 using the brew httpd services (like said in a lot of tutorials) but it still not working. I make a summary of the steps taked and I'll add some debug command.</p>
  <p>To reinstall I done:</p>
  <pre><code>sudo apachectl stop
  sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2&gt;/dev/null
  
  brew install httpd
  </code></pre>
  <p>After that I reboot and launched the command:</p>
  <pre><code>brew services start httpd
  ==&gt; Successfully started `httpd` (label: homebrew.mxcl.httpd)
  </code></pre>
  <p>But if I run the following command:</p>
  <pre><code>brew services list
  Name              Status  User            Plist
  dnsmasq           started root            /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
  fuseki            stopped                 
  httpd             error   matteo.ceradini /Users/matteo.ceradini/Library/LaunchAgents/homebrew.mxcl.httpd.plist
  mongodb-community started matteo.ceradini /Users/matteo.ceradini/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
  unbound           stopped 
  </code></pre>
  <p>As you can see the httpd is in an error status (in fact going to localhost:8080 I get an error) and I can't understand why.</p>
  <p>Any suggestion how to fix this?</p>
  <p>Thank you.</p>