MAMP Pro: Apache cannot be started because the port is already in use
When I try to start my servers, Apache won't start and MAMP claims that the port ([::]: 8888) is already in use.
I've tried almost every way to find out which process is using that port (as have many of the previously mentioned SO solutions), but I don't get any results. Neither lsof nor netstat list anything about port 8888. Nothing seems to be using this port.
I need to either improve my search, or find that (if anything) is actually using the port, or somehow convince MAMP that the port is not actually being used. Any suggestions?
EDIT: Changing the port to 8887 allows Apache to start. This does not change the fact that nothing is using port 8888 and it should work with that port.
source to share
After upgrading to bash -4.3.27-10.4u I also noticed that apache does not start on port 8889 using MAMPS 1.7.2 running on Mac OS X 10.6.8 on Intel Core Duo. Sigh. The solution seems to have to go back to older versions of bash and sh.
Subsequent research confirms that a new SH OR a new bash OR both will prevent apache from starting.
source to share