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
Starting ...
Get Networking All-in-One For Dummies, 7th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.