drud / quicksprint

A basic toolkit to get people started with ddev and a Drupal codebase on macOS, Linux, or WIndows
Other
24 stars 16 forks source link

Breaks when user has mysql already in the system #42

Closed florisvangeel closed 6 years ago

florisvangeel commented 6 years ago

when running: start_clean.sh or start_sprint.sh

Network ddev_default is external, skipping 
Failed to start sprint-20180408-2046: Unable to listen on required ports, localhost port 80 is in use,
Troubleshooting suggestions at https://ddev.readthedocs.io/en/latest/users/troubleshooting/#unable-listen 

have mariadb running from homebrew on socket.

rfay commented 6 years ago

Port 80 is a result of a webserver, not mysql, but the problem is real when somebody has something running on port 80. It's also an easy fix, with the URL given in the error message.

joelpittet commented 6 years ago

Maybe it's worth putting this on non-standard ports to avoid this conflict at the sprint?

rfay commented 6 years ago

That is worth considering.

liberatr commented 6 years ago

I am having an issue where I have some php-fpm listening on port 9000:

Failed to start sprint-20180409-1042: Unable to listen on required ports, localhost port 9000 is in use

I also think it would be good to add to those instructions, something about re-running the script after you change the config file, just to make it dead-easy for sprinters.

liberatr commented 6 years ago

So homebrew had started php-fpm. The solution for me was: brew services stop php70 That command could be different if you have php56 or php71 or something. You can check with brew services list.

BrianGilbert commented 6 years ago

@liberatr Just pushed a PR to move the IRC to 9999 instead

@rfay is there any way for us to change the web and db ports if we're not packaging the ddev docker-compose.yaml ?

rfay commented 6 years ago

Ports are changed in the config.yaml, not docker-compose. The link in the error message explains it. https://ddev.readthedocs.io/en/latest/users/troubleshooting/#unable-listen

BrianGilbert commented 6 years ago

@rfay whats the key to change the DB listening port? That page only lists http server and I can't find any mention of how to in the rest of docs when searching for mysql.

rfay commented 6 years ago

The mysql port is a transient port, not fixed, so doesn't matter.

florisvangeel commented 6 years ago

perhaps consider a fairly unused port like https://www.speedguide.net/port.php?port=8899
So we go from Drupal 8 to Drupal 9 in double pase ;). if people run java stuff its on 8080 and / or 8443

rfay commented 6 years ago

@idevit it's totally easy to change ddev port in the .ddev/config.yaml, lots of people do it. So just changing that as needed is good enough for the majority IMO.