How To Install Apache On Fedora 42 : A Step-by-Step Guide for Beginners

How To Install Apache On Fedora 42 : A Step-by-Step Guide for Beginners

Here is step-by-step instruction on how to install Apache (HTTPD) on Fedora 42 :

🧰 Step 1 : Update Your System

sudo dnf update -y

🌐 Step 2 : Install Apache (httpd)

sudo dnf install httpd -y

🔥 Step 3 : Start and Enable Apache

Start Apache :

sudo systemctl start httpd

Enable Apache to start on boot :

sudo systemctl enable httpd

✅ Step 4 : Check Apache Status

sudo systemctl status httpd

🧱 Step 5 : Configure the Firewall (if enabled)

Allow HTTP and HTTPS traffic :

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

🌍 Step 6 : Test in Browser

Open a web browser and visit :

http://localhost

You should see the Apache test page : "Fedora Test Page" or similar.

Tags :