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!
-
@leokhoa
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:
https://www.dropbox.com/s/8qz128ekltjznk4/conf.PNG?dl=0
https://www.dropbox.com/s/2qwar5p8tmzcyru/error.PNG?dl=0
https://www.dropbox.com/s/u9hkury0wi125y6/3.PNG?dl=0Whatever port I assign to Nginx, it shows me the same trouble port 80 in use.
Thanks for taking the time to review.
-
@WilBar :
Can you test by adding another Nginx version?
https://forum.laragon.org/topic/240/tutorial-how-to-add-another-nginx-version
-
I have this problem too