How do I update Apache2 on Ubuntu 18.04?

Linode Staff

What is the best way to upgrade Apache2 for my Ubuntu 18.04 Linode? Do I need to add the ppa:ondrej/apache2 repository?

1 Reply

When upgrading your Apache2 web server on Ubuntu 18.04 you will want to add the ppa:ondrej/apache2 repository. To get Apache2 updated, enter the following commands:

sudo add-apt-repository ppa:ondrej/apache2

Then run the updates.

sudo apt update

Then install the most recent version of Apache2.

sudo apt install apache2

This should get your Apache2 fully updated.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct