I have both apache and mySQL running with the default MAMP ports (8888 and 8889 respectively) and everything seems to work, but when I switch the ports to 80 for Apache and
@Mazal
Finally I found your great great solution of fixing this localhost:80 and apachectl issue. However, the issue will resume back when after re-start against!!!!!!
So fix this goto perference-->when quiting MAMP--> [uncheck] the box stop server.
this will keep the port setting to localhost:80 and apachectl in green light.
cheers!