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

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

The last time I upgraded in 2017, it messed up the server. I’ll take my chances.

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:

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