I've been using mamp for a while now and everything has been working great. Then today I go to start it up and mamp alert tells me that apache is already running on that port and to pick another one. So without starting mamp, I type in local host in the web browser – my usual way to get to the sites that I'm developing – and a page pops up and it reads IT WORKS!, which tells me that I have an index.php file somewhere on my computer that echos It works!. But mamp is not running and I can't find this stupid it works file anywhere. Is there any way to diagnose this and perhaps kill this apache server so that I can start mamp back up without switching my ports?
How to diagnose an unknown apache setup
apache
Related Question
- Localhost doesn’t find all files in Sites-Folder
- Apache on OSX 10.8 not starting
- MacOS – El Capitan Server using SSL on Apache – AH01276: Cannot serve directory
- How to set up “localhost” document root as Mac’s “Sites” folder with MAMP PRO 4
- MacBook – Apache won’t start on reboot
- MacOS – Solve /Users/theusername/Sites/foo ~/bar localhost/~theusername High Sierra Apache server connection Internal Server Error
- MacOS – MAMP still can’t access Apache after creating local virtual hosts
Best Answer
If mamp is the only server you're running locally, you might want to try opening activity monitor, look for all running myslqld processes and quit them, then restart Mamp
or, as asked, through the terminal: killall -9 mysqld