upgrade nginx 1.6 to 1.13

Discussion in 'Installation/Configuration' started by ahnabil, Dec 9, 2017.

  1. ahnabil

    ahnabil New Member

    Hello,

    all of my trials have failed, i want to upgrade nginx to the latest nginx available, but i couldn't

    upgrading nginx on the server is fine, but then the web gui doesn't work after upgrading nginx, some packages are removed "nginx-common" when upgrading, so maybe thats the issue, help appreciated
     
  2. ahnabil

    ahnabil New Member

    Code:
    cat htf_report.txt | more
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.1.9
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.6.30-0+deb8u1
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 443 (Webserver SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Unknown process (nginx.conf) (PID 1046)
    [INFO] I found the following mail server(s):
            Postfix (PID 4094)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 2232)
    [INFO] I found the following imap server(s):
            Dovecot (PID 2232)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 2253)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:993          (2232/dovecot)
    [anywhere]:995          (2232/dovecot)
    [localhost]:10023               (1514/postgrey.pid)
    [localhost]:10024               (2115/amavisd-new)
    [localhost]:10025               (4094/master)
    [localhost]:10026               (2115/amavisd-new)
    [localhost]:3306                (1992/mysqld)
    [localhost]:10027               (4094/master)
    [anywhere]:587          (4094/master)
    [localhost]:11211               (1285/memcached)
    [anywhere]:110          (2232/dovecot)
    [anywhere]:143          (2232/dovecot)
    [anywhere]:111          (829/rpcbind)
    [anywhere]:80           (1046/nginx.conf)
    [anywhere]:465          (4094/master)
    [anywhere]:21           (2253/pure-ftpd)
    ***.***.***.***:53              (1240/named)
    [localhost]:53          (1240/named)
    [anywhere]:22           (1231/sshd)
    [anywhere]:25           (4094/master)
    [localhost]:953         (1240/named)
    *:*:*:*::*:993          (2232/dovecot)
    *:*:*:*::*:995          (2232/dovecot)
    *:*:*:*::*:10023                (1514/postgrey.pid)
    *:*:*:*::*:10024                (2115/amavisd-new)
    *:*:*:*::*:10026                (2115/amavisd-new)
    *:*:*:*::*:587          (4094/master)
    [localhost]10           (2232/dovecot)
    [localhost]43           (2232/dovecot)
    [localhost]11           (829/rpcbind)
    *:*:*:*::*:465          (4094/master)
    *:*:*:*::*:21           (2253/pure-ftpd)
    *:*:*:*::*:53           (1240/named)
    *:*:*:*::*:22           (1231/sshd)
    *:*:*:*::*:25           (4094/master)
    *:*:*:*::*:953          (1240/named)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    fail2ban-postfix-sasl  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 25
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,1
    43,993
    fail2ban-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain fail2ban-postfix-sasl (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain fail2ban-pureftpd (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    
     
  3. ahrasis

    ahrasis Active Member

    Add nginx stable ppa, then update and upgrade.
     
  4. ahnabil

    ahnabil New Member

    i'm on debian 8
    so what i did was
    Code:
    wget http://nginx.org/keys/nginx_signing.key
    apt-key add nginx_signing.key
    rm nginx_signing.key
    nano /etc/apt/sources.list
    and added the repos
    deb http://nginx.org/packages/debian/ jessie nginx
    deb-src http://nginx.org/packages/debian/ jessie nginx
    apt-get update
    apt-get install nginx
    
    and now i'm on nginx 1.12.2, but still the control panel is dead with the same output from the troubleshooting script

    point me if i'm doing something wrong
     
  5. ahrasis

    ahrasis Active Member

    Can you start nginx after installing it? Any nginx error log?
     
  6. ahnabil

    ahnabil New Member

    no nginx runs just fine but when i try to run only
    Code:
    [email protected]:~# nginx
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] still could not bind()
    
    altough starting nginx is fine
    Code:
    [email protected]:~# service nginx status
    [ ok ] nginx is running.
    
     
  7. ahrasis

    ahrasis Active Member

    Check /etc/bind/ for files ending with err and try to fix them via ispconfig panel. It seems like wrong ip is set but I am not sure.
     
  8. ahnabil

    ahnabil New Member

    no .err files and the problem is that i can't get into the ispconfig panel
     
  9. ahrasis

    ahrasis Active Member

    Try:
    Code:
    sudo fuser -k 80/tcp
    service nginx start
     
  10. ahnabil

    ahnabil New Member

    never mind i've started fresh on debian 9 and didn't use the auto installer, i've now have nginx 1.10

    whats the right way to update nginx on ispconfig!!
     

Share This Page