XAMPP Apache Webserver localhost not working on MAC OS

Amit Battan picture Amit Battan · Jan 3, 2011 · Viewed 164.2k times · Source

I install XAMPP server on MAC OS 10.6 it was working fine. After a lot of days I checked it, but not working this time, localhost not opening this time.

after some R&D I reinstall XAMPP server after uninstall

When I start the apache after reinstall it giving port 80 running a another webserver Then I restart system, then apache start ok, but same local host not working

Then I check Web Sharing in my System Preference then it was already Tuned Off ...

Please anybody tell me where I am wrong?

Answer

Yakov Fain picture Yakov Fain · Feb 18, 2013

This is what helped me:

sudo apachectl stop

This command killed Apache server that was pre-installed on MAC OS X.