To verify that the process is listening on port 80, you can use lsof in the terminal window:
$ sudo lsof -iTCP:80 -sTCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 88 root 4u IPv6 0xffffff8018804600 0t0 TCP *:http (LISTEN) httpd 90 _www 4u IPv6 0xffffff8018804600 0t0 TCP *:http (LISTEN) httpd 14843 _www 4u IPv6 0xffffff8018804600 0t0 TCP *:http (LISTEN)
This will confirm that you have successfully enabled apache.
(I have xcode installed, but I think lsof is part of a normal installation)
ADDED:
This confirms that apache is listening on port 80. The next step I would like to do is look at the access logs to see what apache started when you requested "/", as shown in the apache error returned to your browser. This is what mine shows. Note that the HTTP GET request is displayed with a return code of 200 (success):
bash-3.2# grep 'GET / ' /private/var/log/apache2/access_log 127.0.0.1 - - [12/Sep/2012:16:46:45 -0400] "GET / HTTP/1.1" 200 44 127.0.0.1 - - [12/Sep/2012:16:49:44 -0400] "GET / HTTP/1.1" 200 44
You can also confirm that the URL of your browser is requesting by updating the browser window and then confirming that apache is logging this new request in access_log.
Tim b
source share