Update: I managed to complete the installation by killing all processes on port 80, however, I have no idea if this is a long-term fix (presumably not).
Mac:
# find & kill processes which are using port 80
sudo lsof -i tcp:80 | grep LISTEN | awk '{print $2}' | xargs kill -9
Windows:
# find processes which are using port 80
netstat -ano | findstr :80
# kill process by PID. replace "<PID>" with result from the above command.
taskkill /PID <PID> /F
Thanks for sharing! Alas I came across and tried this solution but to no avail. There’s something (2 things actually) running on my machine over port 80 that cannot be killed.
I followed the same advise given by the online documentation and still have the same issue whenever I close DevKinsta and re-open it. Everytime I start the app I have to use the terminal to kill all tasks using port 80 before it will run properly. Too bad I was not able to test it as I wanted to.
For windows there are the following instructions which I am not sure if they solve the issue:
# find processes which are using port 80
netstat -ano | findstr :80
# kill process by PID. replace "<PID>" with result from the above command.
taskkill /PID <PID> /F
Hey @michael, any update on being able to use different ports for nginx?
This is a show stopper for me. I’m trying to create a workflow for migrating client sites from Joomla to WP, so the Joomla sites live in my host’s native web service. I figured using DevKinsta was a quick way to get the new WP sites installed, work on them locally, and pushed back to Kinsta.
I can’t move the main web service ports, as I have a lot of existing infrastructure and development toolchains that expect them to be on the native ports.
This is pretty fundamental stuff. The DevKinsta containers are literally guests. They shouldn’t assume they can just usurp the default service ports on the host.
I’ve tried changing them in the nginx config in the container, but the container just crashes when I try and restart nginx. I’d be happy with that as a solution for now, if you have any suggestions on how to move the ports by hand while we wait for it to be a built in feature.