'ubd' Process interfering with MAMP in port 80

A few days ago my Apache server stopped "starting up". Does anyone know about this issue.

I believe this is happening now because I, stupidly, moved the file named index.php to the htdocs/ folder.

I ran lsof -i | grep LISTEN lsof -i | grep LISTEN to get:

  mysqld 297 waltercarvalho 10u IPv4 0xc942753e30142a85 0t0 TCP *:mysql (LISTEN) ubd 611 waltercarvalho 18u IPv4 0xc942753e310c9f35 0t0 TCP *:49228 (LISTEN) ubd 611 waltercarvalho 19u IPv6 0xc942753e2d7a5635 0t0 TCP *:49228 (LISTEN) Dropbox 720 waltercarvalho 18u IPv4 0xc942753e310c90c5 0t0 TCP *:17500 (LISTEN) Dropbox 720 waltercarvalho 25u IPv4 0xc942753e31c584dd 0t0 TCP localhost:26164 (LISTEN) 

When I try to start the Apache server on port 80 to access localhost (clean path), I get:

I ran sudo /Applications/MAMP/bin/startApache.sh to get:

  (48)Address already in use: make_sock: could not bind to address [::]:80 (48)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs 

This means that port 80 is used. You can find my httpd.conf file at:

http://pastebin.com/dta3hND8

I have been trying to fix this for several hours, very disappointing. I have tried everything.

Thanks.

0
source share
2 answers

Referring to fvu comments. I found the answer here:

fooobar.com/questions/1322157 / ...

+1
source

I am struggling with this problem .. sure enough that it is interference that interferes. I found a solution that works like a charm, although not a permanent fix. I execute the sequence quite often. it’s an annoyance, but at least these steps are clear, simple and predictable! .. AND, I will return my 80/3306.

fix courtesy of Abhinava Court.

  • Launch MAMP. Open a terminal by typing a terminal in Spotlight (Command + Space).

  • Open the MAMP settings (Command +,) and click Reset MAMP Ports (Port 8888 and Port 8889 for Apache and MySQL, respectively). Click OK.

  • Switch to the terminal. Type sudo apachectl stop to shut down the Apache system.

  • Restart MAMP.

  • Open the MAMP settings again and select "Set as default" Apache and MySQL ports. This will set the Apache and MySQL ports to 80 and 3306 respectively.

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

  • Go back to MAMP and click "Open Start Page" (or go to http://localhost/MAMP/?language=English in your browser)

And you did.

0
source

Source: https://habr.com/ru/post/1397539/


All Articles