macOS High Sierra 10.13.3 - apache2 running, httpd not
Numerous sites and pages, including those hosted on Apple here, show how to get, at its most basic level, the most simple set up in the world, the basic apache2 web site on a MacBook Pro. I don't care about anything other than making:
<b> Hi there! </b>
.... show up when I navigate to http://localhost/~tony/main or http://localhost or whatever.
1) when I type: apachectl configtest, it shows AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist. The same error is repeated with a -host2 instead of -host, and then it says httpd: Could not reliably determine the server's fully qualified domain name. I don't know what file that "/usr/docs/dummy-host" is being referenced in. From several sites I have closely followed instructions and have uncommented certain lines from various files in /etc/apache2, the /extra directory, things like that.
2) When I type into my Safari browser: http://localhost/~tony I should, as a few people have said, see a file list of the "sites" that I have set up. My directory looks like: /users/tony/Sites/main Under main, there is one file called index.html and inside that is the very basic "Hello World" type of thing. Safari tells me that it can't connect to the local server: localhost.
3) when I type: ps -ef | grep 'httpd' nothing shows up except for the grep process...
I have some very basic experience setting up apache on other platforms; not Mac. There are only a few configuration files touched by me. I am confident that it is a needle in a haystack!
Can anyone out there please help me?
MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13.3), Apache web server