MAMP Pro: Apache couldn't be started because the port was already in use

Mystagogue picture Mystagogue · Sep 30, 2014 · Viewed 17k times · Source

When attempting to start my servers, Apache fails to start, and MAMP claims that the port ([::]:8888) is already in use.

I have tried virtually every way I know of determining what process is using that port (as well as many of the solutions previously listed on SO), but I get no results. Neither lsof or netstat list anything about port 8888. There does not appear to be anything using this port at all.

I need to either improve my search and find what(if anything) is really using the port, or somehow convince MAMP that the port is not actually in use. Any suggestions?

EDIT: Changing the port to 8887 allows Apache to start. This doesn't change the fact that nothing is using port 8888 and it should work with that port.

Answer

pinkp picture pinkp · Oct 29, 2014

Try going to activity monitor and searching for Mysqld and Httpd and end any processes for them. Then restart Mamp.