nginx will not start after update today

Discussion in 'Installation/Configuration' started by rlischer, Mar 7, 2013.

  1. rlischer

    rlischer Member HowtoForge Supporter

    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!
     
    Last edited: Mar 7, 2013
  2. falko

    falko Super Moderator ISPConfig Developer

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

    rlischer Member HowtoForge Supporter

    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.
     
  4. rlischer

    rlischer Member HowtoForge Supporter

    Here is what it says on boot-up.

    Here is what it says on boot-up.
     

    Attached Files:

  5. rlischer

    rlischer Member HowtoForge Supporter

    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.
     
    Last edited: Mar 8, 2013
  6. rlischer

    rlischer Member HowtoForge Supporter

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

Share This Page