Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 310
Mystagogue Avatar asked Sep 30 '14 15:09

Mystagogue


People also ask

How do I start Apache in MAMP?

To do this, navigate to MAMP > Preferences in the MAMP application menu: You can change the port used by Apache to avoid conflicts with Skype and other applications. Click on Ports at the top of the Preferences window, enter a new port for Apache, and click on OK to save the change.

What port does MAMP use?

The default configuration for MAMP uses ports 8888 and 8889, and 7888. That way, the MAMP servers can run alongside other servers installed on your Mac.

Which is better MAMP or Xampp?

MAMP does not offer standalone installers for WordPress and is less customizable than XAMPP. Its dashboard also has fewer options compared to the latter. However, MAMP is easier to manage than XAMPP, whereas XAMPP offers higher levels of customization.


1 Answers

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

like image 173
pinkp Avatar answered Oct 11 '22 02:10

pinkp