Comment 1 for bug 1512344

Revision history for this message
Thomas Ward (teward) wrote : Re: [Master Bug] Package nginx-* failed to install/upgrade due to Port 80 not being able to be bound to.

When trying to fix this yourself...

(1) Check the output of one of these two commands:

'sudo netstat -tulpn | grep :80' OR 'sudo ss -tulpn | grep :80'

This will indicate what processes are listening on IP/Port combination *:80

(2) Once you know the process/pid that is listening on Port 80, kill it. Either stop the service (for example, if Apache is the one causing the conflict, use `sudo service apache2 stop`), or kill the process itself.

If you intend to use things side by side, such as Apache *and* nginx, temporarily stop one service while installing the other. Then modify your configurations so neither service is listening on the same ports as each other, and start up the services. This will resolve the issues.