setting mamp ports to 80 and 3306

后端 未结 4 595
时光取名叫无心
时光取名叫无心 2020-12-09 23:06

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

4条回答
  •  天命终不由人
    2020-12-09 23:12

    i posted my solution here.. but will it annoy the editor gods to re-post? i found this works so clearly and consistently that it's worth evangelizing.

    fix courtesy of Abhinav Sood.

    1. Launch MAMP. Open Terminal by typing terminal into Spotlight (Command + Space).

    2. Open MAMP Preferences (Command + , ) and click on Reset MAMP Ports (Port 8888 and Port 8889 for Apache and MySQL respectively). Click on OK.

    3. Switch to the terminal. Type sudo apachectl stop to shutdown the system Apache.

    4. Restart MAMP.

    5. Open MAMP Preferences once again and click on Set to Default Apache and MySQL ports. This will set the Apache and MySQL ports to 80 and 3306 respectively.

    6. Switch to the terminal. Type sudo apachectl restart to restart Apache.

    7. Switch back to MAMP and click on Open Start Page (or go to http://localhost/MAMP/?language=English in your browser)

    And you’re done.

提交回复
热议问题