Skip to content

Case study · White-label

Rescuing WordPress after an infection and removing 504 errors

Apache

Elementor

MySQL

PHP

WordPress

Public sector

Rescuing WordPress after an infection and removing 504 errors

AI-generated visualisation. It replaces a confidential view of a white-label project.

Summary

An infected and overloaded WordPress portal was cleaned, rebuilt on a clean core and moved to an up-to-date environment. The scope covered WordPress 7, PHP 8.5, MySQL 8, Apache, HTTPS, credential rotation and removing the cause of the 504 errors.

01

Starting point

The portal ran on WordPress 6.2.2, PHP 8.0 and MySQL 5.7. Malware was also present in system files and across the whole hosting account. The server was overloaded, users hit 504 errors, and some updates and security measures were out of date.

02

Business problem

A public body needed a reliable, continuously available information portal. The infection and 504 errors limited access to content, and keeping the old environment risked the problem coming back. The repair had to preserve the look, content and operation of the pages.

03

Risks

The biggest risk was leaving a backdoor in files whose names looked legitimate, or in other applications on the same account. Updating the core and theme could expose incompatibilities, and dependence on a paid component without an active licence made safe maintenance harder.

04

Scope of responsibility

Working white-label, we made backups before and after the work, analysed the infection, restored clean WordPress files, updated the core, plugins and themes, modernised PHP and MySQL, moved the environment to Apache, enforced HTTPS, rotated passwords and keys, diagnosed the overload and tested the front end.

Repairing a portal without revealing the organisation

The website belongs to a public body, but the work was carried out as the partner’s back office. We don’t publish the name, city, domain, contact details or distinctive photos. We show the actual scope of the repair and testing.

6.2 → 7.0 — WordPress update and a clean core

8.0 → 8.5 — PHP version upgrade

MySQL 8 — migration from the older 5.7 database

504 → OK — the source of server overload removed

Anonymous WordPress portal with a diagnostic panel after removing the infection and 504 errors
AI-generated visualisation based on the actual scope of work; the organisation's interface and data have been replaced. Enlarge the board ↗
  • We replaced the infected system files with the original, clean WordPress core.
  • All administrator accounts got new passwords, and the security keys were rotated.
  • A paid component dependent on an expired licence was replaced by a free, compatible solution that keeps the site's look.
  • After moving to Apache, PHP 8.5 and MySQL 8, we checked the home page, subpages, images, styles and load.

05

Solution

WordPress was upgraded from 6.2.2 to 7.0, PHP from 8.0 to 8.5 and the database from MySQL 5.7 to 8.0. We replaced the core files with the original package, removed the malicious scripts and backdoors, and replaced the component dependent on an expired licence with a free compatible equivalent. HTTPS was enforced across the site and the source of excessive connections removed.


06

Architecture and integrations

The target environment is based on WordPress 7.0, PHP 8.5, MySQL 8, Apache and enforced SSL/HTTPS. All plugins and themes were updated, administrator accounts secured with new passwords and the WordPress security keys rotated.


07

Results

The home page and subpages render correctly, images and styles load properly, and the cause of the overload and 504 errors has been removed. A backup was made before the intervention and a complete backup after the work. The client also received a recommendation to check the other applications on the same account.

Technologies

WordPress 6.2 and 7.0, PHP 8.0 and 8.5, MySQL 5.7 and 8.0, Apache, SSL/HTTPS, Elementor, a clean WordPress core, malware analysis, security key rotation, 504 error diagnostics.

Next steps

We recommend periodic scans of the whole account, ongoing updates of WordPress, plugins and themes, monitoring of 5xx errors and checks of other sites and applications on the same hosting.

In a similar situation?

Let’s discuss a safe first step.