HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   nginx will not start after update today (http://www.howtoforge.com/forums/showthread.php?t=60855)

rlischer 7th March 2013 20:22

nginx will not start after update today
 
So I installed the latest server updates today on the server and nginx would not start, the error is:
"nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)"

I did a search and found that "fuser -n tcp 80" fixes the problem. Now it seems that I have to run this command after every reboot.

Any ideas?

Config looks like this:
Code:

server {
        listen 80;
        #listen [::]:80 default_server;

Debian Squeeze Perfect Server, nginx, ISP Config 3.0.5.1

Thanks!

falko 8th March 2013 14:53

Is there anything else (e.g. Apache) listening on port 80 already?

rlischer 8th March 2013 15:11

Quote:

Originally Posted by falko (Post 293525)
Is there anything else (e.g. Apache) listening on port 80 already?

Not that I know of. I never installed Apache. Everything was fine until I did an update, whatever packages that were updated within this past week caused it.

rlischer 8th March 2013 16:41

Here is what it says on boot-up.
 
1 Attachment(s)
Here is what it says on boot-up.

rlischer 8th March 2013 17:08

I just noticed it says starting "Apache2" I have no idea where or how Apache got on this server. I checked my command history, I never installed it. Would an update install Apache or add it to the startup? How can I get rid of a startup program that's not really installed?

Code:

root@server:~# apt-get remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


rlischer 8th March 2013 17:24

Ok, this command fixed my problem: "sudo update-rc.d -f apache2 remove"


All times are GMT +2. The time now is 08:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.