Problem when starting Nginx in any port
Hello everyone, I just installed the latest version of laragon on my computer with windows 10. But I have a problem when trying to start Nginx. Nginx is assigned port 80 and when I start it, it gives me an error "Nginx can not start, reason: Port 80 is in use", but I have already replaced this port with other ports and it shows me the same message "Nginx can not start, reason : Port 80 is in use ", whatever port you assign. I also reviewed the Nginx configuration files and the changes are saved when assigning a new port for it. But if I assign port 80 to Apache it starts without problems. So I do not know where the problem is, maybe someone could help me. Thank you.
@WilBar : You can use Menu > Tools > netstat to detect which program occupies port 80
@leokhoa it was the first thing what i did. But I replace the port 80 by other one. And I have the same trouble. It shows me the same massage.
@WilBar : What do you mean "replace by other one"?
You should let the port free before running Nginx. Maybe Apache can run in your situation but it will cause trouble.
This post is deleted!
The situation is the following:
when assigning any port (free) to nginx, this still gives me an error of port 80 in use.
I leave pictures to explain myself better:
Whatever port I assign to Nginx, it shows me the same trouble port 80 in use.
Thanks for taking the time to review.
Can you test by adding another Nginx version?
I have this problem too
I'm having this same problem. I haven't changed any default ports Apache is running on 80/443 and Niginx WAS running on default ports 8080/8443. Yet I still get
"Service Nginx can not start. Reason: Port 80 is in use! ..." Can Apache and Nginx not run at the same time? Two days ago they're both ran no problems!
Laragon is a good alternative, but not worth the headache, I don't need pretty urls I I need a dev server that works!
please find a solution to this.
Could you please provide Nginx Configuration?
Since it has been 6 hours since my last post without an answer, I can safely assume no help with your software is going to be given and I can uninstall your software??
@bckelley : Can you try cleaning all auto virtual hosts generated by Laragon.
- Click Menu > Nginx > sites-enabled > Delete all [auto]
- Reload Nginx
Nope does nothing! When you patch this let me know, seems like it could be a great piece of software, but for now, I've lost two messing with and can't waste any more time with it.
I re-install laragon that was the only thing that make it work