It seems to me that EITHER httpd will produce error message OR curl
localhost will return something.  Please try the following:

rubys@rubysair ~ % sudo apachectl stop
/System/Library/LaunchDaemons/org.apache.httpd.plist: Operation now in progress
rubys@rubysair ~ % sudo killall httpd
No matching processes were found
rubys@rubysair ~ % sudo /usr/sbin/httpd
rubys@rubysair ~ % curl localhost | head -10
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9905  100  9905    0     0  2418k      0 --:--:-- --:--:-- --:--:-- 2418k
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <meta charset="utf-8"/>
    <title>Apache Whimsy</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="/assets/bootstrap-min.css"/>
    <style type="text/css">
      h2 {text-decoration: underline}
      header h2 span {display: none}
rubys@rubysair ~ %

- Sam Ruby

On Tue, Jun 16, 2020 at 8:49 PM Craig Russell <apache....@gmail.com> wrote:
>
> [MacBook-Pro-10:~/apache/git/whimsy] clr% which httpd
> /usr/sbin/httpd
> [MacBook-Pro-10:~/apache/git/whimsy] clr% /usr/sbin/httpd -v
> Server version: Apache/2.4.34 (Unix)
> Server built:   Feb 22 2019 20:20:11
>
>
> > On Jun 16, 2020, at 5:38 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > What does the following return?
> >
> >  which httpd
> >
> > - Sam Ruby
> >
> > On Tue, Jun 16, 2020 at 8:34 PM Craig Russell <apache....@gmail.com 
> > <mailto:apache....@gmail.com>> wrote:
> >>
> >> Well, not really:
> >> [MacBook-Pro-10:~/apache/git/whimsy] clr% httpd -v
> >> Server version: Apache/2.4.34 (Unix)
> >> Server built:   Feb 22 2019 20:20:11
> >>
> >>
> >>> On Jun 16, 2020, at 5:25 PM, Craig Russell <apache....@gmail.com> wrote:
> >>>
> >>> My httpd is from 2017.
> >>> [MacBook-Pro-10:~/apache/git/whimsy] clr% /usr/sbin/apachectl --version
> >>> [Tue Jun 16 17:23:21.665351 2020] [ldap:debug] [pid 18423] 
> >>> util_ldap.c(2567): AH01308: LDAP: SSL verify server certificate - FALSE
> >>>
> >>> AH00557: httpd: apr_sockaddr_info_get() failed for MacBook-Pro-10.local
> >>> AH00558: httpd: Could not reliably determine the server's fully qualified 
> >>> domain name, using 127.0.0.1. Set the 'ServerName' directive globally to 
> >>> suppress this message
> >>> (48)Address already in use: AH00072: make_sock: could not bind to address 
> >>> [::]:80
> >>> (48)Address already in use: AH00072: make_sock: could not bind to address 
> >>> 0.0.0.0:80
> >>> no listening sockets available, shutting down
> >>> AH00015: Unable to open logs
> >>>
> >>>
> >>>> On Jun 16, 2020, at 5:21 PM, Craig Russell <apache....@gmail.com 
> >>>> <mailto:apache....@gmail.com> <mailto:apache....@gmail.com 
> >>>> <mailto:apache....@gmail.com>>> wrote:
> >>>>
> >>>> Log file shows:
> >>>> Jun 16 17:20:22 MacBook-Pro-10 com.apple.xpc.launchd[1] 
> >>>> (org.apache.httpd): Please switch away from OnDemand to KeepAlive.
> >>>> Is that a real problem?
> >>>>
> >>>> Craig
> >>>>
> >>>
> >>> Craig L Russell
> >>> c...@apache.org <mailto:c...@apache.org> <mailto:c...@apache.org 
> >>> <mailto:c...@apache.org>>
> >>>
> >>
> >> Craig L Russell
> >> c...@apache.org <mailto:c...@apache.org>
> Craig L Russell
> c...@apache.org
>

Reply via email to