In This Chapter
Getting Apache up and running
Using the HTTP configuration tool
Creating virtual hosts
Creating web pages
All the popular Linux distributions come with Apache, the most popular web server on the Internet today. In most cases, Apache is installed and configured automatically when you install Linux. Then setting up a web server for the Internet or an intranet is simply a matter of tweaking a few Apache configuration settings and copying your HTML document files to Apache’s home directory.
To install Apache, open a console or terminal window and enter the following command:
sudo dnf install httpd
Assuming that Apache is not already installed,
dnf will ask for your permission to install Apache. Enter y to proceed. Be patient while the package downloads and installs.
You’ll also want to install the graphical configuration program by running the following command:
sudo dnf install system-config-httpd