Question

Ubuntu LAMP on 16.04, how to upgrade to Apache 2.4.52

Due to security reason i need to upgrade to Apache HTTP Server 2.4.52 https://httpd.apache.org/security/vulnerabilities_24.html

in the past i have installed the Ubuntu LAMP on 16.04 from DigitalOcean

however doing ‘sudo apt upgrade’ i have

apache2 is already the newest version (2.4.18-2ubuntu3.17).

what to do? i used the DigitalOcean LAMP as i wanted to get rid of update issues, but this backfired

thanks

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

One way to proceed would be to upgrade your Ubuntu version to a newer one, that way you would get be able to upgrade your Apache instance to a newer one with apt upgrade.

You can take a look at the upgrade tutorials collection here:

https://www.digitalocean.com/community/tutorial_collections/ubuntu-lts-upgrades

Make sure to always take a backup of your server before proceeding with such major upgrades.

Alternatively, if you want to have a very specific version of Apache installed, you could compile Apache from source. The downside of this is that for every upgrade you would need to always do this manually and compile the instance from source.

Best, Bobby