Report this

What is the reason for this report?

Ubuntu LAMP on 16.04, how to upgrade to Apache 2.4.52

Posted on January 20, 2022
md60

By md60

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



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!

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.