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
I configured httpd.conf. In that file just replace:
Listen 80
for
Listen localhost:80
restart mamp. It worked for me.