Hosting operational checks
Choose who operates each layer
Managed WordPress hosting can delegate patching, backups or caching to a provider, but the service agreement determines exactly what is included. A VPS gives control over Nginx, PHP-FPM, operating system and database; it also gives you those operational duties. A container deployment packages runtime components but still needs durable media and database storage, network isolation, credential management and upgrades. Select by team skills, recovery objectives, expected traffic and support requirements, not by the label alone.
Managed: check provider backup/restore and cache exclusionsVPS: own OS, Nginx, PHP-FPM, database and monitoringContainers: own image lifecycle, persistent data and service boundariesSeparate readiness and public HTTPS
The Nginx /health endpoint proves only that the frontend can answer. A real application readiness check should also exercise the PHP handler and any necessary database operation with a low-cost query, without exposing diagnostic details publicly. The lab has no database and only an ordinary HTTP loopback listener. Production requires verified TLS termination, correct application canonical URLs and a trusted forwarding policy; do not blindly trust client-provided scheme headers. Check public DNS, certificate hostname and expiration separately.
curl --max-time 3 -H "Host: blog.test" http://127.0.0.1:19449/healthcurl --max-time 3 -H "Host: blog.test" http://127.0.0.1:19449/news/# Expected after separately starting the lab: frontend-ready; public-newsBuild a recoverable backup set
WordPress content spans database records and files such as media, themes and configuration. Store compatible snapshots as one recovery set with a timestamp and release identifier. Keep backups encrypted and out of the web root, restrict access and regularly test restoration to an isolated environment. A database export is not a copy of uploaded files. For write-heavy sites, use a consistency strategy appropriate to the database and application. A configuration rollback may not undo a database migration.
Recovery set R7 (illustrative) database export + matching uploads snapshot application release identity + reviewed configuration encrypted backup location + restore procedure isolated restore verification + recovery time observedRelease changes with an explicit rollback boundary
Before a release, review the diff, validate the configuration in an isolated environment, verify PHP compatibility and plugin requirements, and record a tested recovery point. During maintenance, coordinate writes with the application and database owners. After activation, verify a static asset, public page, protected page, private cache exclusion and logs. A successful nginx -t establishes syntax and referenced-file access only, not PHP readiness. Stop the release if behavior differs from the agreed contract. Roll back configuration and application artifacts only when compatible with the database; otherwise follow the tested migration recovery plan.
nginx -p "$PWD/" -c nginx.conf -t# Only for the already-running disposable lab instance, after checking its PID:nginx -p "$PWD/" -c nginx.conf -s reload# Recheck frontend, PHP response and cache privacy; retain the prior reviewed config.Use the accompanying Chapter 47 manual practice and lab. Configuration snippets are excerpts, not complete production WordPress configurations. The complete fixture and expected results are provided separately.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Hosting operational checks
Assess decisions from the lesson and the original lab.
Which backup is sufficient for a full WordPress restore?
What does a 200 frontend health response establish?
Why rehearse restoration separately?
When is rolling back application files alone potentially unsafe?
What determines managed hosting responsibilities?