skip to Main Content

I am trying to upgrade Apache2 to a version higher than 2.4.26 so that I can enable HTTP/2. I have run these commands with no joy:

sudo add-apt-repository ppa:ondrej/apache2
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

I have Ubuntu ESM. Ubuntu 16.04.7

3

Answers


  1. Have you run:

    sudo apt install apache2
    

    Then restart Apache.

    Login or Signup to reply.
  2. Try adding these 2 lines to /etc/apt/sources.list

    1. deb http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main
    2. deb-src http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main

    and then

    sudo apt update

    sudo apt upgrade

    sudo apt dist-upgrade

    Login or Signup to reply.
  3. Some alternatives:

    • Downloading the source code from https://httpd.apache.org/download.cgi and installing in a different path such as /opt/apache2 – there could be a problem with dependencies such as OpenSSL ?
    • Running a Ubuntu 18.04/20.04/22.04 container with apache2 inside your Ubuntu 16.04 – not sure if docker is available in 16.04 ESM ?
    • My recommendation, do-release-upgrade and move to Ubuntu 18.04 ( https://help.ubuntu.com/community/BionicUpgrades ). You will get TLS 1.3 as an extra.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search