setting mamp ports to 80 and 3306

不想你离开。 提交于 2019-11-29 02:33:55
thebiglebowski11

Just in case anyone is having the same problem, here is how I fixed it:

I opened the Activity Monitor program and selected "All Processes"
Next I search for "mysqld" in the search text field. There is a good chance that you have an instance of mysql running and you have to find it and hit quit process.
Restart MAMP and you should be all set.

mazal

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.

I configured httpd.conf. In that file just replace:

Listen 80

for

Listen localhost:80

restart mamp. It worked for me.

@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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!