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?
try
sudo /Applications/XAMPP/xamppfiles/bin/apachectl start
in terminal
To be able to do this, you will have to stop apache from your terminal.
sudo apachectl stop
After you've done this, your apache server will be be up and running again!
Hope this helps
This is because in Mac OS X there is already Apache pre-installed. So what you can do is to change the listening port of one of the Apaches, either the Apache that you installed with XAMPP or the pre-installed one.
To change the listening port for XAMPP's Apache, go to /Applications/XAMPP/xamppfiles/etc and edit httpd.conf. Change the line "Listen 80" (80 is the listening port) to other port, eg. "Listen 1234".
Or,
To change the one for pre-installed Apache, go to /etc/apache2. You can do the same thing with file httpd.conf there.
After changing you might need to restart your Mac, just to make sure.
In my case, Web Sharing was running, which blocked XAMPP.
'Untick' Web Sharing in the Bluetooth Settings (or Network), which causes HTTPD to show in activity log.
Apache should now run and be available!
I had similar issue after integrating MongoDB into XAMPP. However executing the command "sudo apachectl stop" fixed the problem
If you are also running skype at the same time. It will give you error:
port 80 running a another webserver
First close skype and restart your apache it will work fine.
sudo /Applications/XAMPP/xamppfiles/bin/apachectl start
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
Both commands are working like charm :)
This is what helped me:
sudo apachectl stop
This command killed Apache server that was pre-installed on MAC OS X.
I had success with easy killing all active httpd processes in Monitor Activity tool:
1) close XAMPP control
2) open Monitor Activity
3) select filter for All processes (default is My processes)
4) in fulltext search type: httpd
5) kill all showen items
6) relaunch XAMPP control and launch apache again
I was having this exact problem, the above solutions didn't make much sense to me.
My Solution:
Turn of Bluetooth! Worked a treat ..
After connecting my macbook pro to iphone5 (hotspot) I started getting error message, after turning of bluetooth the error message is gone ..Hope that helps somebody!
Found out how to make it work!
I just moved apache2 (the Web Sharing folder) to my desktop.
go to terminal and type "mv /etc/apache2/ /Users/hseungun/Desktop"
actually it says you need authority so
type this "sudo -s" then it'll go to bash-3.2
passwd root
set your password and then "mv /etc/apache2/ /Users/hseungun/Desktop"
try turning on the web sharing, and then start xampp on mac
Same thing as mine on OS X Mavericks.
After a couple of trials by error while changing Apache configuration, I got weird output on localhost/xampp. Thought PHP engine was messed up. However, 127.0.0.1/xampp is working completely okay.
Finally, I cleaned up the browser cache and reload the page again and Voila!
Resolved on Firefox...
I had to disable OSX's built-in Apache server (XAMPP support thread):
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
This allowed XAMPP to start on 80, while POW runs on 20559.
What had failed: I reconfigured /etc/apache2/httpd.conf
to listen on an alternate port and rebooted OSX. No luck.
This solution worked perfectly fine for me..
1) close XAMPP control
2) Open Activity Monitor(Launchpad->Other->Activity Monitor)
3) select filter for All processes (default is My processes)
4) in fulltext search type: httpd
5) kill all httpd items
6) relaunch XAMPP control and launch apache again
Hurray :)
Source: Stackoverflow.com