Installing Apache on Fedora 31

The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server software. Apache is an extremely popular web service that operates a large portion of the websites on the internet. This article will walk you through the simple process of installing Apache, and opening your server’s firewall up to allow web traffic through.


• Linux based server running Fedora 31


The following command will begin the installation of Apache. You may be prompted to enter ‘Y’ proceed through the installation:

# sudo dnf install httpd

We’ll now need Apache, running in order to display our site and accept connections. Use the following commands to start Apache, set it to start automatically upon boot, and open the server’s firewall to web traffic:

# sudo systemctl start httpd
# sudo systemctl enable httpd
# sudo firewall-cmd --add-service=http --permanent
# sudo firewall-cmd --reload

You should now be able to navigate to the IP address of your server in a browser, and see the Apache test page to confirm you’ve configured the server correctly. This page also will display useful information for further configuring Apache to serve your own custom website or application.

Leave a Reply

Your email address will not be published. Required fields are marked *