Note

Update Apache on RHEL and Ubuntu

RHEL

RHEL 8, 9, and 10 ship httpd via Application Streams. Supported versions are listed in the Red Hat Application Streams life cycle.

Check for updates:

sudo dnf check-update httpd

If a newer version is listed, apply it:

sudo dnf update httpd

Confirm the installed version:

httpd -v

Ubuntu

Refresh the index, then upgrade apache2:

sudo apt update
sudo apt upgrade apache2

Confirm the installed version:

apache2 -v

Optional: list available httpd streams

On RHEL, list every stream dnf knows about:

sudo dnf module list httpd