How to upgrade to nginx 1.19.0 on Ubuntu 18 perfect server setup?

Discussion in 'Installation/Configuration' started by skysky, Mar 24, 2022.

  1. skysky

    skysky Member

    I am running the ISPconfig perfect server with ubuntu 18 + Nginx 1.18
    There is a nginx module that I want to use, and it requires Nginx 1.19 + , so I want to upgrade nginx to 1.19. but I can not upgrade to ver 1.19. I guess 1.19 is not treated as stable for ubuntu 18.

    1. Should I upgrade to nginx 1.19? How to do the upgrade?

    Add the repository for the stable version of Nginx
    $ sudo add-apt-repository ppa:nginx/stable

    Now update it
    $ sudo apt-get update

    Run install
    $ sudo apt-get install nginx

    nginx is already the newest version (1.18.0-3ubuntu1+bionic1).

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The nginx provided by the nginx developers will probably not work out of the box as it runs under a wrong user (nginx) compared to the nginx that ships with Ubuntu, which runs as www-data. So exchanging Nginx in that way will likely break your setup and the system and ISPConfig will stop working if you do so.
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Even Ubuntu 20.04 has nginx version 0.18.0, so my guess is nginx 0.19 is too new to yet be in any stable Ubuntu.
    Wait for 22.04 LTS, that may have a later nginx.
    If I were you, I would remove that extra nginx repository from apt configuration so yo do not by mistake install something from there.

Share This Page