Skip to content

Post-migration WordPress smoke tests on cPanel

The smoke test checklist to run after a WordPress migration to cPanel — what to verify, in what order, and how to know you have actually finished.

“The site loads” is not a smoke test. A site can load and still have broken checkout, broken contact form, missing images on internal pages, or a search that returns nothing. The actual smoke test is twenty to thirty minutes of structured verification — done before DNS cuts over, ideally on a hosts-file override, so you find problems while you still have time.

What’s happening

Migration touched files, the database, the URL space, possibly the PHP version, possibly the web server (Apache to LiteSpeed). Each of those is a potential break point. Smoke testing systematically exercises each layer so you discover the broken thing before users do.

How to verify

Set up a hosts-file override pointing the production domain at the new server IP:

# /etc/hosts on your laptop
198.51.100.10 example.com www.example.com

Restart the browser, browse the site. You’re now seeing the new server while the rest of the world still sees the old one. This is your testing surface.

The fix

The smoke test, in order:

  1. Homepage. Loads, looks right, no console errors, no broken images.

    curl -I https://example.com
    curl -sS https://example.com | head -20

    200 OK, content present, no PHP warnings in the output.

  2. One inner page from each top-level section. Articles, products, About, Contact. Each should load and look like the old site.

  3. Admin login. Browse to /wp-admin/, log in. Dashboard renders. No critical errors. Plugins page shows the same active plugins as before.

    wp user list --role=administrator
    wp plugin list --status=active
  4. Settings sanity check. Settings > General has the correct siteurl. Settings > Permalinks has the right structure. Settings > Reading has the right homepage. Settings > Discussion has the right email.

  5. Media. Open any image-heavy article. All images load (no 404s). Visit /wp-admin/upload.php — the media library shows recent uploads.

  6. Search. Use the site search to find a known piece of content. If results are missing, the search index isn’t built (most WordPress sites use database LIKE queries, which work immediately; some use a search plugin with its own index that needs rebuilding).

  7. Forms. Submit the contact form. Confirm you get the email. If you don’t, SMTP is broken — check wp-config.php constants and the SMTP plugin settings.

    wp eval 'wp_mail("you@example.com", "test", "test body");'

    If WP-CLI returns true but no email arrives, the mail server is accepting and dropping. Check the cPanel mail log.

  8. E-commerce (if applicable). Add a product to cart. Cart page loads. Checkout page loads. Submit a test transaction in sandbox mode. Confirm the order email arrives.

    For Stripe/PayPal sandbox, the keys in production-versus-staging usually differ — confirm the right keys are active.

  9. Scheduled tasks. Check WP-Cron and system cron:

    wp cron event list --due-now
    crontab -l

    No backlog, system cron firing.

  10. Caching layer. If LiteSpeed Cache is active, confirm cache headers:

    curl -I https://example.com | grep -i 'x-litespeed'

    First hit may be miss, second should be hit.

  11. Redis / Memcached. Confirm object cache is engaging:

    wp redis status
  12. HTTPS and HSTS. All resources load over HTTPS. No mixed content warnings in the browser console. If HSTS is configured, the header is present.

  13. Robots.txt. /robots.txt returns the right content. Check there’s no leftover Disallow: / from a staging environment.

  14. Sitemap. /sitemap.xml (or the path your SEO plugin uses) renders. Submit to Search Console if it’s been resubmitted.

  15. Error log monitoring. While clicking through, watch:

    tail -f ~/public_html/error_log

    Any PHP warning is acceptable on a busy site. Any PHP fatal is a stop-the-migration moment.

  16. External integrations. Any plugin that calls outside (Google Analytics, Mailchimp, CRM webhooks) needs verification. Trigger the integration and confirm the data lands on the other side. Many integrations whitelist the source IP, which is different on the new server — verify each.

  17. Performance baseline check. Run the same TTFB/PageSpeed test you ran before migration. New numbers should be at least as good. If they’re worse, investigate before cutover.

Only when every check passes does DNS cut over. For environments where this kind of disciplined verification is the norm, Stack Harbor handles migrations and smoke testing under migration.

Stack Harbor operates production WordPress at scale — see enterprise WordPress support for the managed model, or book a WordPress consult for a written read of your current shape.