O'Reilly logo

Networking All-in-One For Dummies by Doug Lowe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6

Running Apache

In This Chapter

arrow Getting Apache up and running

arrow Using the HTTP configuration tool

arrow Restricting access

arrow Creating virtual hosts

arrow 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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required