27.2 Installing the Apache Web Server Packages
The current release of Fedora typically does not install the Apache web server by default. To check whether the server is already installed, run the following command:
# rpm -q httpd
If rpm generates output similar to the following, the apache server is already installed:
httpd-2.4.41-9.fc31.x86_64
Alternatively, if rpm generates a “package httpd is not installed” message then the next step, obviously, is to install it. To install Apache, run the following command at the command prompt:
# dnf install httpd