TechBooky AI Assistant
TechBooky AI Assistant
👋 Welcome to TechBooky AI Assistant

I can help with:
🔎 Tech News
🤖 AI Topics
💻 Gadgets
☁️ Cloud
✍️ Guest Posts
📢 Advertising
🔗 Backlinks
📩 Newsletter
  • AI Search
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise With TechBooky
  • Contact Us
TechBooky
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
TechBooky
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Home Open source

How to Safely Migrate a WordPress Site to a New Server (Step-by-Step Guide)

Paul Femi Balo by Paul Femi Balo
March 25, 2025
in Open source, Tips
Share on FacebookShare on Twitter
Share this story

Send it to someone who should read it.

f Facebook X X in LinkedIn wa WhatsApp tg Telegram @ Email
In Brief
  • Debugging with wp-config.php and the WordPress debug.log When a migrated site isn’t working properly and you can’t immediately tell why, enabling WordPress’s debug mode can shed...
  • WordPress has built-in debugging constants that, when enabled, will display or log error messages for PHP issues.
  • We’ll focus on using the debug log so you can capture errors in a file.

8. Debugging with wp-config.php and the WordPress debug.log

When a migrated site isn’t working properly and you can’t immediately tell why, enabling WordPress’s debug mode can shed light on the problem. WordPress has built-in debugging constants that, when enabled, will display or log error messages for PHP issues. We’ll focus on using the debug log so you can capture errors in a file.

Open the wp-config.php on the new server and ensure the following lines are present (add them if not):

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

Putting WP_DEBUG to true turns on debugging mode (which causes PHP notices/warnings to be triggered). WP_DEBUG_LOG set to true will save those errors to a file called debug.log in the wp-content directory​. Setting WP_DEBUG_DISPLAY to false ensures that errors are not shown on the webpage to visitors (so your site won’t visibly break or reveal warnings to users), but instead they’ll be silently logged. After adding these, save wp-config.php. Then, load the page or action that is causing trouble.

Now, via FTP or File Manager, check the file wp-content/debug.log. This file will contain any errors, warnings, or notices that have occurred. The messages here can be very insightful. For example, you might see a PHP Fatal error about a function redeclaration or an undefined function – which could indicate a plugin didn’t load properly. Or a MySQL error indicating a missing table. Or a warning about file permissions, or a notice about a deprecated function. Each entry is timestamped, so look for entries corresponding to your recent tests.

Some common findings and how to address them:

  • Allowed memory size exhausted…: This indicates a PHP memory limit issue – the site ran out of memory. The error will look like “Fatal error: Allowed memory size of X bytes exhausted…”. If this happens right after migration, possibly the new server’s PHP memory limit is lower. You can increase the memory available to WordPress by editing wp-config.php and adding:

    define('WP_MEMORY_LIMIT', '256M');

    (256M is a good value for most medium sites)​. This sets WordPress’s memory limit for the front-end. If the error occurs in admin, you might also bump WP_MAX_MEMORY_LIMIT. You could alternatively adjust the server’s PHP configuration (php.ini) if you have access. After increasing, reload and see if the error goes away​.

    Also worth reading
    Automattic Interim CFO Exits After Boardroom Turmoil Schema Markup in WordPress: A Step-by-Step Guide to Rich Result Matt Mullenweg Says He Is Back In Control At Automattic Recovering SSH Access on AWS – A Step-by-Step Guide Too Much Gemini? Here’s How To Dial Back Gemini In Your Google Workspace Apps How One Engineer Built a Local AI News Roundup With Docker & Qwen
  • Plugin-specific errors: The debug log might show an error coming from a specific plugin PHP file. For instance, “Call to undefined function curl_init() in …/pluginX/file.php” would hint that the cURL extension isn’t enabled on the new server’s PHP – enabling that extension would fix it. Or it might be a simple path issue. If a plugin is causing fatal errors and you can’t easily fix it, you might deactivate that plugin (rename its folder) until you figure out a solution or update it.

  • Table not found errors: e.g., “Table ‘mydb.wp_sometable’ doesn’t exist”. This tells you something didn’t import. Perhaps a custom plugin had its own table that wasn’t in your SQL dump (some backup exports only include standard tables). You’d need to migrate that table as well or reinstall that plugin so it recreates the table.

  • Notice about translation domain or missing translation files: If WP_DEBUG is true, you might see notices like “PHP Notice: load_textdomain… translation file not found for domain X”. These are usually benign and mean that a plugin or theme tried to load a language file that isn’t present. For example, if a plugin’s translation files didn’t get copied over, or if a domain name changed (affecting a path in the file). These warnings (often referring to a text domain for translations) won’t break the site; you can resolve them by ensuring the .mo language files for that plugin/theme are in wp-content/languages or the plugin’s languages folder, or simply ignore if you don’t need those translations. To suppress such notices, you can leave WP_DEBUG false on live sites.

  • Deprecated function warnings: These might appear if the new environment uses a newer PHP or WP version and some old code in a theme/plugin is outdated. While not urgent, it’s a good reminder to update those plugins or code.

After debugging and fixing issues, remember to turn off debug mode (set WP_DEBUG back to false, and/or WP_DEBUG_DISPLAY true if it was changed). Or at least disable display and logging on production, because leaving debug on can slightly impact performance and fill your server with log files over time. Only keep it on while troubleshooting.

If the site is now functioning correctly on the new server with no significant errors in debug.log, you can breathe a sigh of relief – the migration is essentially successful. The final steps are to deal with any lingering plugin-specific issues and ensure the live site transition is smooth.

Related Reading

More contextual TechBooky stories selected from tags, categories and article context.

  • WordPress theme switch
    A Comprehensive Guide to Resolving File Permissions…
  • wp-speculative-loading-plugin-page-speed-e1712935040275
    WordPress Launches Speculative Loading Plugin To…
  • blog5f352fc3b2393_wp
    Hackers Exploit Popular WordPress Backup Tool Used…
  • https___dev-to-uploads.s3.amazonaws.com_uploads_articles_kqmbj9rjwqfghln5r5jv
    How to Convert SQL Server to Postgres
  • php1
    PHP Releases Emergency Fixes for Two Critical RCE Flaws
  • images (2)
    The Untold Story of WordPress and WP Engine's Clash
  • gettyimages-2181259946
    Matt Mullenweg Says He Is Back In Control At Automattic
  • assets_task_01jrfxkvwqeexbx349fmgw9baz_img_0
    Schema Markup in WordPress: A Step-by-Step Guide to…
Keep Reading Smarter

Search TechBooky with AI

Use TechBooky's AI Search to explore the context behind this story and related coverage across the site.

Try AI Search
More On This Topic
Open source Tips
Follow TechBooky

Follow TechBooky for more technology stories and newsroom updates.

f Facebook X X in LinkedIn ig Instagram wa WhatsApp

Page 8 of 11
Prev1...789...11Next
Tags: tipswordpresswordpress migration
Paul Femi Balo

Paul Femi Balo

Paul Femi Balo is the founder and publisher of TechBooky. He covers artificial intelligence, African technology, digital infrastructure, enterprise technology and the global digital economy.

Search TechBooky
Open TechBooky AI Search Try the AI Assistant

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Block Unveils Dessa Voice AI That Can Run on a Laptop October 25, 2026
  • Moonshot Launches Kimi K3.1 Pro With Million-Token Context October 25, 2026
  • UK Study Finds Mythos 5 Pursued Real-World Attack in AI Test October 25, 2026
  • As the US and China Build Rival AI Blocs, Where Does Africa Stand? October 25, 2026
  • Apple Blocks Compromised Web Certificates on iPhone and Mac October 24, 2026
  • Arc Browser Will Stop Working on 22 December as Dia Takes Over October 24, 2026
  • Google Details Offline AI TB Screening at South African Gold Mine October 24, 2026
  • Meta Takes Muse AI Agent to Japan in First Expansion Beyond North America October 24, 2026
  • Cassava Adds Nvidia Nemotron to Its Locally Hosted African AI Service October 24, 2026
  • Apple Limits iPhone Duo Orders to Two Per Customer as Launch Begins October 23, 2026
  • Canva Builds Its Own Image Model With Craft Launch October 23, 2026
  • OpenAI Decisions API Targets Faster, Cheaper Agent Workflows October 23, 2026

Browse Archives

October 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Sep    

Quick Links

  • About TechBooky
  • Advertise With TechBooky
  • Contact us
  • Submit Article
  • Privacy Policy
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • Artificial Intelligence
  • Gadgets
  • Metaverse
  • Tips
  • AI Search
  • About TechBooky
  • Advertise With TechBooky
  • Submit Article
  • Contact us

© 2025 Designed By TechBooky Elite

Discover more from TechBooky

Subscribe now to keep reading and get access to the full archive.

Continue reading

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.