On October 22, 2026, a message from our cloud provider flagged the latest PHP security issues. We went to check what our own WordPress server was actually running.
It was still on PHP 8.3.35. We pulled the updated Docker image and checked again: 8.3.36. Good. Except the website itself was still using 8.3.35. The patched image was on disk, but we hadn't replaced the running container yet. That's the step worth checking before you close the terminal.
Here's how we checked and updated our site on October 22. We use Docker Compose, with Apache inside the WordPress container and Nginx in front. If your setup is similar, you can follow the same checks using your own service names. This was routine patching and verification; we didn't send exploit traffic to the site.
What the PHP announcement says
PHP published fixes for CVE-2026-109618 and CVE-2026-109619 on October 21. Both can lead to unauthenticated remote code execution. The fixed releases in supported branches were 8.2.35, 8.3.36, 8.4.27, and 8.5.12. The announcement covers web-serving installations, including PHP-FPM and Apache with mod_php; it identifies mod_php as the highest-risk configuration. Updating PHP is the complete fix. Temporary mitigations address particular paths and do not make an installation safe. See the PHP security announcement.
Reading this later? Check for newer security releases before choosing a version. These were the release-day fixes for these two issues. If your Linux vendor backports patches, check its advisory too: a package can contain a fix without adopting the upstream release number.
Updating WordPress and updating PHP are different jobs
It's tempting to head straight for the WordPress Updates screen. That takes care of the application, but PHP lives underneath it. A successful dashboard update doesn't tell you whether the server's PHP package or container changed.
On our site, WordPress files live in a persistent volume and MySQL runs as a separate service. We could replace the web container while keeping those files and the database. The catch: updating PHP on the host wouldn't update PHP inside that container.
So first, find out where your site's PHP comes from:
- On managed hosting, ask the provider for the patched PHP release or the package advisory confirming a backport.
- On a server with PHP-FPM, identify the pool and service handling the site's requests.
- With Docker, identify the web service, its image, and the container currently using it.
If you're starting in the WordPress dashboard, look under Tools → Site Health → Info → Server. Keep a note of the version so you can compare it after the update.
Start with the container that's running now
Our Compose service is called wordpress. From the directory containing the Compose file, you can identify the running container and check its PHP binary with:
docker compose ps wordpress
docker compose exec -T wordpress php -v
docker inspect --format '{{.Image}}' \
"$(docker compose ps -q wordpress)"
Before the update, the container reported:
PHP 8.3.35 (cli)
That gave us a useful starting point: the CLI binary inside the web container was on 8.3.35. We still wanted to check a request through Apache after the update. We'll come back to that below.
We saved the running image ID too. The tag wordpress:php8.3-apache is a moving label. It may point to a newer image tomorrow, while your existing container keeps running the one it started with.
Pull the new image—and check what's in it
We were already using the official wordpress:php8.3-apache image, so we stayed on PHP 8.3 for this update:
docker pull wordpress:php8.3-apache
docker run --rm --entrypoint php \
wordpress:php8.3-apache -v
The downloaded candidate reported:
PHP 8.3.36 (cli)
This was the important pause. The downloaded image had 8.3.36, but the live container still had 8.3.35. A pull puts an image on the server. The running container needs to be replaced before the website can use it.
If that second command still shows an affected version on your server, stop and check whether a patched image is available. The download can succeed even when it hasn't brought you the version you need.
Save the site before replacing the container
Before touching the running service, we saved a consistent MySQL dump, an archive of the WordPress file volume, and a copy of the Compose configuration in a private backup directory. We checked that both archives contained data and kept the previous image under a local recovery tag.
Each piece has a job. Posts and settings are in the database. Uploads, themes, plugins, and configuration are in the file volume. PHP and its packaged components come from the image. Saving the image alone won't save your articles or uploads.
We kept the old image for recovery, with one obvious catch: it contained the vulnerable PHP release. If we had needed to use it again, we would also have needed to address the site's exposure while finding a working patched build.
On a busy site, plan around incoming writes so the database and files can be recovered together. Our database dump and file archive were separate operations, rather than one atomic snapshot of the whole site.
Recreate the web service
After the version check and backups, we replaced only the WordPress service:
docker compose up -d --no-deps --force-recreate wordpress
docker compose exec -T wordpress php -v
Now the running container reported PHP 8.3.36. Its image ID matched the one we'd downloaded. The update had reached the service handling the site.
Here, --no-deps let us replace the web service without starting its dependencies. Review your own volume and network settings before running it. In particular, keep the persistent volumes: that's where the site data lives.
A container recreation can briefly interrupt requests. Schedule accordingly if your site handles transactions or has availability requirements.
Ask the web server which PHP it is using
Seeing the right version in the terminal was encouraging. We wanted one more check through the web server, because a machine can have several PHP installations and a shell command may reach a different one from a visitor's request.
We used a tiny, temporary PHP probe returning only PHP_VERSION and PHP_SAPI. We requested it through the local Apache listener, then removed it. Those two values answered our question without leaving a full phpinfo() page exposing configuration details.
The response was:
{"php":"8.3.36","sapi":"apache2handler"}
That was the result we needed: an HTTP request through Apache was using 8.3.36. If your deployment has separate workers or other websites, check those runtimes separately.
If you use PHP-FPM instead, verify the pool behind the relevant virtual host and restart or replace its workers as required by your deployment. If you use managed hosting, combine the web-reported version with the provider's patch confirmation.
Take a quick walk through the site
With PHP updated, it was time to check the site itself. We requested the homepage, an existing article, the login page, the sitemap, and ads.txt. All returned HTTP 200. We also checked the recent web-container logs for PHP fatal errors, parse errors, and warnings; none matched that check.
For a content site, those are useful first checks. Administrative workflows and scheduled tasks need their own checks. If you run a shop, extend your list to checkout, payments, email, and background processing before calling the maintenance done.
We also checked that the article's HTML still contained one analytics loader and one AdSense loader. If you rely on those services, check their dashboards as well; a script in the page is only one part of the setup.
Leave yourself a useful record
You don't need a long report to make the next update easier. We kept the old and new versions, image IDs, backup location, the web-runtime response, and the checks we'd run. That gives us something concrete to compare next time.
Keep that record privately, with the date and the advisory you followed. If you share the experience publicly, leave out credentials, private backup paths, and full environment output—and remove temporary diagnostic files when you're finished.
If you've just pulled the patched image, go back to the running container and check its version. That was the gap in our own update sequence: the fixed image was on disk before it was serving the site. Recreating the container and checking an HTTP request closed that gap.
For a different example of checking what a successful-looking operation actually produced, see why a MySQL count query returns 1 instead of the real total.
