Personal project · November 2026

Apache update automation

Tested

I built an AI-assisted PowerShell updater for my self-hosted Apache installations. The goal was to make upgrades repeatable without manually rebuilding the server configuration or losing the existing Windows service.

Apache HTTP ServerPowerShell 5.1Windows ServerTLSSHA-256Rollback

What the tool does

It detects the installed version, downloads the intended Windows x64 package, verifies the supplied SHA-256 checksum, backs up the existing installation and preserves configuration and service settings. Syntax validation and service health checks form part of the upgrade, with a rollback path designed to restore the previous installation if an upgrade fails.

Supporting an older server

During testing on Windows Server 2012 R2, the normal PowerShell download path failed with a TLS handshake error. I added an alternative curl download path that retained certificate validation and checksum verification. This allowed the update to complete without disabling HTTPS validation.

Testing on real infrastructure

In November 2026 I upgraded Apache from 2.4.69 to 2.4.71 on both Windows Server 2012 R2 and Windows Server 2025. The older server completed the upgrade using the download fallback. Post-upgrade checks included configuration validation and a running service. I also confirmed the hosted site was still responding.

I tested the tool on my own infrastructure. Rollback is included, but not every failure mode has been tested. Updating Apache does not make an unsupported operating system secure.