title: macOS Mojave - httpd process is running, but sudo apachectl stop results in httpd (no pid file) not running
body: <p>Title pretty much covers it. I have an apache web server taking over localhost. When I visit <a href="http://127.0.0.1" rel="nofollow noreferrer">http://127.0.0.1</a> I see a white page with &quot;It works!&quot; on it. Default apache stuff.</p>
  <p>I take a look at running httpd processes, which shows multiple running</p>
  <pre><code>&gt; ps -ef | grep httpd
      0 47867     1   0  8:24AM ??         0:00.18 /usr/sbin/httpd -D FOREGROUND
     70 47871 47867   0  8:24AM ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
  </code></pre>
  <p>This is interferring with another service I want to use for localhost. So I try to kill the local apache only to get the &quot;not running&quot; response.</p>
  <pre><code>&gt; sudo apachectl stop
  httpd (no pid file) not running
  </code></pre>
  <p>So how do I stop the running apache process?</p>