Securing amirs.life: PHP Vulnerability Response and VPS Maintenance
· 4 min
Securing amirs.life: PHP Vulnerability Response and VPS Maintenance
Date: October 22, 2026
Category: Server Administration, Cybersecurity and Infrastructure
Reading time: 5 minutes
Why I temporarily took my VPS offline
Website security does not begin and end with application code. The operating system, PHP runtime, web server and server management environment must all be maintained and secured.
After identifying a potentially serious PHP security issue, I decided to take my VPS offline temporarily. My objective was to avoid unnecessary exposure while investigating the server configuration and determining the appropriate update procedure.
The server runs Ubuntu 24.04 LTS with Plesk Obsidian and hosts infrastructure associated with amirs.life.
This article documents the environment, the checks performed, the problems encountered and the remaining work required before the server can be considered fully secured.
1. Identifying the server environment
The first step was to establish the actual software configuration.
The server was running:
- Ubuntu 24.04.5 LTS
- Plesk Obsidian 18.0.81.3
- Ubuntu-packaged PHP 8.3
- Plesk-managed PHP 8.3
- Plesk-managed PHP 8.4
An important finding was that multiple PHP installations coexist on the same server.
The PHP version displayed by a command-line session does not necessarily match the version used by a website through PHP-FPM. For that reason, I also inspected the PHP handlers registered with Plesk.
This distinction matters because updating only the default CLI installation may leave a separate web-serving runtime unpatched.
2. Reviewing package sources and system updates
Next, I refreshed the Ubuntu package indexes and simulated the available upgrades.
The simulation identified updates for several system and security-related packages, including AppArmor, Fail2ban and Plesk Watchdog.
Eight other packages had upgrades deferred because of phased updates.
Two additional issues emerged during this process.
A system clock discrepancy
Ubuntu initially rejected some repository metadata because its timestamps appeared to be in the future relative to the server clock.
I inspected the time synchronization service and restarted it.
After synchronization, APT no longer reported that the Ubuntu repository metadata was not yet valid.
Accurate system time is important for reliable package management, certificate validation and security-log analysis.
A missing Plesk repository signing key
The Plesk PHP 8.3 and PHP 8.4 repositories could not verify their digital signatures. APT reported a missing public key with the ID 5B6AB2160B50DB96.
I retrieved the official Plesk signing key and checked its complete fingerprint before adding it to the trusted key store.
The fingerprint matched the expected key. However, the PHP repositories continued to report signature verification errors afterward.
The underlying cause has therefore not yet been established. The repository configuration must be investigated further before PHP updates can safely proceed.
3. Why repository signature verification matters
APT uses digital signatures to verify the authenticity of repository metadata. These checks help prevent software from being installed from unauthenticated or improperly configured sources.
When signature verification fails, disabling the security checks is not an appropriate workaround.
Instead, the repository configuration should be examined, including any Signed-By directives and the keyrings referenced by the PHP repositories.
Maintaining the integrity of the update mechanism is itself an important part of server security.
4. Work completed so far
The following actions have been performed:
- Identified the Ubuntu and Plesk versions.
- Inventoried the registered PHP handlers.
- Refreshed the Ubuntu package indexes and simulated available upgrades.
- Inspected and restarted time synchronization.
- Verified the Plesk signing key against its full fingerprint.
- Added the verified key to the trusted key store.
- Retried repository index updates.
The remaining signature verification error means the patching process cannot yet be considered complete.
5. Remaining recovery steps
Before declaring the server fully operational, the following tasks remain:
- Investigate and resolve the Plesk PHP repository signature error.
- Install the appropriate Ubuntu and Plesk security updates.
- Verify that the PHP versions actually used by the websites contain the required security fixes.
- Confirm that PHP-FPM and the web server operate correctly.
- Test the Laravel applications and the amirs.life administration interface.
- Investigate evidence of exploitation if there is a concrete suspicion of unauthorized access.
- Restore public access only after the relevant security and functionality checks have passed.
Conclusion
This incident highlights the importance of treating server security as a layered process. Keeping a server secure requires current software, trustworthy package repositories, accurate system time and visibility into the runtimes that actually serve production websites.
I have investigated the environment, restored time synchronization and verified the Plesk signing key. The outstanding repository error must still be resolved before I can confirm that every PHP installation is patched.
For amirs.life, the principle remains straightforward: verify the security and integrity of the infrastructure first, then restore full public service.