Chapter 6
Running Apache
In This Chapter
Getting Apache up and running
Using the HTTP configuration tool
Restricting access
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.
Installing Apache
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access