Apache HTTP Server vulnerability countermeasure upgraded to v2.4.52 | そう備忘録

Apache HTTP Server vulnerability countermeasure upgraded to v2.4.52

Apache HTTP Server

There was an article about a vulnerability in Apache HTTP Server with a maximum severity of High, and that we should upgrade to v2.4.52.

This blog is running on AWS EC2 (Elastic Compute Cloud) with Ubuntu 18.04 and WordPress.

The web server uses Apache, so I found out that it is affected and decided to upgrade.

The other day, I had to deal with the Log4j vulnerability in the Arduino IDE.

The 2.4.52 version is available here.

Apache HTTP Server 2.4.52

Environment

The environment is as follows.

Server

AWS(Amazon Web Services)

Instance type : t2.small

Server OS

Ubuntu Server 18.04 LTS

CMS

WordPress 5.8.2

Apache

2.4.29 → 2.4.52 (Version up)

Version Up Procedure

Checking the current version

Login to the server with terminal software and check the current version with the following command.

apache2 -v

v2.4.29 was installed.

v2.4.29 was installed.

Check the installable version

Check the installable version registered in the repository.

sudo apt show apache2

The already installed v2.4.29 was displayed.

2.4.29

Updating the package list

Use the following command to add the repository and update the package list.

sudo add-apt-repository ppa:ondrej/apache2

It will stop in the middle, so press Enter to continue the process.

Update the package

The repository has been added and the package list has been updated.

パッケージリストが更新された

Check again

Again, check the installable version with the following command.

sudo apt show apache2

This time, v2.4.52 was the target.

Targeted for 2.4.52

Updating the package list

The first step is to update the package list.

sudo apt-get update

Updated.

Update the package list

Upgrading apache2

Use the following command to upgrade (install) apache2.

sudo apt-get install apache2

When prompted to continue, enter y.

enter y

Installed.

Installed.

Check the version

Again, use the following command to check the version.

apache2 -v

It has been upgraded to v2.4.52.

It has been upgraded to v2.4.52.

Restarting Apache

Restart Apache with the following command.

sudo systemctl restart apache2
Restarting Apache

Confirmation

Just to be sure, I checked that the page would display as it should.

Before running it in the production environment, I built a virtual environment using VirtualBox and tested it beforehand in that environment.

This concludes this article.

Finally.

I hope this article will be useful to someone somewhere.

souichirou kikuchi

I'm Japanese. A reminder to remember what I've done. I'm blogging in the hope that it will be helpful to others who want to do similar things. I mainly write blogs about LEGO, AWS (Amazon Web Services), WordPress, Deep Learning and Raspberry Pi. At work, I'm working on installing collaborative robots and IoT in factories. I passed the JDLA (Japan Deep Learning Association) Deep Learning for GENERAL in July 2019. If you have any questions, please leave them in the comments at the bottom of the article.

comment

Name, Email, and Website are optional.
and, your Email address will not be published.