I have mac OS X and would like the built-in apache webserver to run. So I open up “System Preferences”, click on “Sharing” and enable “Web sharing”. Web server starts (apparently) and the system displays two links which I can use. One is just my ip and the other is my ip/username. Both links just result in “no connection” error in the browser. It doesn’t appear to reach apache at all, like apache isn’t running.
So I open up terminal and enter:
ps aux | grep apache
no apache process found. I then try the following command:
netstat -ln | grep ':80 ' | grep 'LISTEN'
and nothing is returned. So it appears apache isn’t running.
Why would the system preference tell me otherwise? And how can I fix it?
I would use Terminal (/Applications/Utilities), and then try to start apache from the command line.
Try this to help debug:
when it is dying silently. Also, check the
error_logat:You can use TextEdit for the
error_log, if you feel more comfortable with a GUI text editor.Let me know how it goes!