WordPress website - Apache2 Web Service Incident report

WordPress website - Apache2 Web Service Incident report


Introduction:

In the world of DevOps and SysAdmin, even the most seasoned professionals encounter unforeseen challenges. In this incident report, we unravel a real-time scenario where a WordPress website, fueled by a LAMP stack, grappled with 22-minute period of 500 internal error messages. Join us on a journey through the timeline, root cause analysis, and the valiant efforts to resurrect the website.

Issue Summary 

From 10:28 AM to 10:50 AM, Users using my WordPress site had 500 internal error messages. So I made a maintenance check on the Apache server and it was returning a 500 error whenever I ran it on a local host (curl -sI 127.0.0.1).

The root cause of this issue was an invalid configuration change due to a typo error in the /var/www/html/wp-settings.php configuration.

Article content

Timeline:

  • 10:25 AM: Unassuming Configuration Push Begins
  • 10:28 AM: Outage Unleashed
  • 10:30 AM: The Race to Resolve Kicks Off
  • 10:35 AM: Tracing the Apache2 Process
  • 10:42 AM: Failed Attempts and Frustration
  • 10:47 AM: Spotting the Culprit
  • 10:50 AM: Victory Achieved, Apache2 Runs with a Proud Status 200

Root Cause and Resolution:

At the core of this incident was a configuration change gone awry. Without a safety net of a thorough testing phase, a change was unleashed into the production environment at 10:25 AM. This change, specifying a file access error in the WordPress configuration settings, left the server unable to read from the unknown file. A simple typo error on a line further complicated matters, causing a cascade effect that led to a failed fix attempt.

As the 500 errors surfaced at 10:28 AM, our protagonist (the site administrator) swiftly initiated a maintenance check. With no rollback configuration available, a manual inspection of the configuration ensued. The Apache2 process was inspected, leading to a brief moment of hope at 10:42 AM, where an assumption about missing files was made and quickly dispelled.

It wasn't until 10:47 AM that the needle in the haystack was found – a typo error in the /var/www/html/wp-settings.php file.

Article content

The server, desperately trying to find a misspelled file, was throwing a tantrum. A swift fix, executed at 10:50 AM, restored the correct web pages and brought the server back to life, now responding with the coveted status 200.

Article content

Corrective and Preventive Measures:

After the fix, the following are actions I was taken to address the issue and help prevent recurrence:

1. Rollback Protocols: Instituted a robust rollback process to swiftly undo changes causing disruptions.

2. Monitoring Services: Implemented a proactive monitoring service for read-and-write operations, ensuring prompt detection of anomalies.

Conclusion:

Challenges are inevitable, but how we navigate them defines our expertise. This incident report serves not only as a post-mortem analysis of a WordPress website's hiccup but also as a beacon of learning for developers and administrators alike. Remember, even in the face of a 500 internal error, with a vigilant eye and strategic measures, victory can be snatched from the jaws of defeat. Happy coding!

Fatima Sarr

Vendeuse poissonerie|Software Engineer

1y

helpfull post thanx adam musk

Linda Nwachukwu

Digital marketer || skincare coach || product manager || content writer || girl in tech || Student @alx_africa ALX SE

1y

i love your image representation Adam.... i always look forward to your posts/. keep it up.

To view or add a comment, sign in

More articles by Adam Babatunde Sanusi

  • Why Use Web Hosting or Virtual Servers

    I came across some interesting questions recently: "Hey Adam, I want to host my portfolio. Should I get a server for…

    4 Comments
  • Announcing Schedu Web App

    Introduction The SCHEDU School Management System isn't just a portfolio project; it's a collective desire to…

  • AirBnB Clone: A Full Stack Developed Website

    Introduction This article contains the stages of my recently concluded but not fully deployed student project to build…

  • What happens when you type google.com in your browser and press Enter

    Introduction You must have been using google.com for a long time now, have you ever wondered what it is and how it…

    1 Comment
  • Airbnb clone - The Console

    As the clock ticks into the third month of Sprint 2 in the alx_africa Software Engineering curriculum, I find myself…

    6 Comments

Insights from the community

Others also viewed

Explore topics