Apache Troubleshooting

Опубликовано: 13 Май 2026
на канале: Otter Tech
16
0

🛠️ Apache Troubleshooting | Linux Level-2 Series | Lab 21

Welcome to another real-world troubleshooting lab! In this task, you’ll identify and fix Apache service issues across multiple servers in the Stratos Datacenter.

📌 Lab Objective:
Detect the faulty application server and ensure Apache is running properly on all servers.

🛠️ Task Requirements:

Identify the server where Apache is failing
Ensure Apache runs on port 3004
Document root must be: /var/www/html
Apache must be running on ALL app servers
Do NOT disable firewall
Verify using curl from jump host

💻 Step-by-Step Solution:

🔹 1. Check Apache status on all servers

ssh stapp01 "systemctl status httpd"
ssh stapp02 "systemctl status httpd"
ssh stapp03 "systemctl status httpd"

👉 Identify the faulty server (service failed or inactive)

🔹 2. Fix Apache configuration (on faulty server)

vi /etc/httpd/conf/httpd.conf

🔧 Ensure:

Listen 3004
DocumentRoot "/var/www/html"

⚠️ Remove any ; at the end of paths

🔹 3. Start & enable Apache

systemctl restart httpd
systemctl enable httpd

🔹 4. Test from jump host

curl http://stapp01:3004
curl http://stapp02:3004
curl http://stapp03:3004

✅ Expected Outcome:

Welcome to Xfusioncorp industries!

📚 What You’ll Learn:

Apache service troubleshooting
Fixing configuration errors
Port configuration
Multi-server debugging
Real-world incident handling

🌟 Why This Lab Matters:
Production systems often break unexpectedly. This lab teaches you how to quickly diagnose and resolve issues across distributed systems.

🎯 Series: Linux Level-2
Master real-world troubleshooting and system administration skills.

🔔 Don’t forget to like, share, and subscribe for more tutorials from OtterTech!

#Linux #Apache #Troubleshooting #DevOps #SystemAdministration #Networking #OpenSource #Nautilus #StratosDatacenter #LinuxLevel2 #100DaysOfDevOps #OtterTech #Lab21