{"id":7466,"date":"2026-10-24T10:41:01","date_gmt":"2026-10-24T01:41:01","guid":{"rendered":"https:\/\/the-world-star.com\/?p=7466"},"modified":"2026-11-29T09:51:30","modified_gmt":"2026-11-29T00:51:30","slug":"how-to-fix-the-blogs-prepared-freeze-when-migrating-wordpress-from-bitnami-to-native-lightsail","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/server\/how-to-fix-the-blogs-prepared-freeze-when-migrating-wordpress-from-bitnami-to-native-lightsail-7466\/","title":{"rendered":"How to Fix the \"Blogs Prepared.\" Freeze When Migrating WordPress from Bitnami to Native Lightsail"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Preparation: Expanding PHP Capacity Limits and Timeouts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To import a 250MB backup file, update the new server&#039;s <code>php.ini<\/code> file to increase the limits. For the native WordPress (Debian) setup, you can find the relevant file here:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/php\/8.2\/apache2\/php.ini\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use code with caution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[Changes to Make]<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ini<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>upload_max_filesize = 512M\npost_max_size = 512M\nmemory_limit = 512M\nmax_execution_time = 600\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use code with caution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the settings, restart Apache2 to apply the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use code with caution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"699\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143302\/Screenshot-from-2026-10-24-17-09-29-1024x699-1.png\" alt=\"\" class=\"wp-image-6111\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143302\/Screenshot-from-2026-10-24-17-09-29-1024x699-1.png 1024w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143302\/Screenshot-from-2026-10-24-17-09-29-1024x699-1-300x205.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143302\/Screenshot-from-2026-10-24-17-09-29-1024x699-1-768x524.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Frozen at &quot;Blogs Prepared.&quot;\u2014The Culprit Wasn&#039;t a Timeout<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When I started the import, the progress bar reached 100%, but then it completely froze on the &quot;Blogs prepared.&quot; screen and refused to budge.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udcf7 [Image to insert here: Screenshot of the import screen stuck on &quot;Blogs prepared.&quot;]<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"268\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143336\/Screenshot-from-2026-10-24-17-14-24-1.png\" alt=\"\" class=\"wp-image-6113\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143336\/Screenshot-from-2026-10-24-17-14-24-1.png 721w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143336\/Screenshot-from-2026-10-24-17-14-24-1-300x112.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I initially suspected a timeout, but after checking the additional Apache error logs (<code>\/var\/log\/apache2\/error.log<\/code>), I discovered the real cause was entirely different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">text<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Sat Oct 24 08:34:10 2026] &#91;php:error] &#91;pid 17655:tid 17655] &#91;client xxx.xxx.xxx.xxx:5886] PHP Fatal error:  Trait \"Automattic\\Jetpack\\Connection\\Traits\\WPCOM_REST_API_Proxy_Request\" not found in \/var\/www\/html\/wp-content\/plugins\/jetpack\/_inc\/lib\/core-api\/wpcom-endpoints\/class-wpcom-rest-api-v2-endpoint-email-editor-bootstrap.php on line 30, referer: http:\/\/xxx.xxx\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">During the final stage of the import process, a <strong>fatal error caused by corrupted files in the Jetpack plugin<\/strong> included in the backup data brought the process to a complete halt.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">The Real Root Cause (Contributing Factors)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This freeze and migration nightmare were caused by a combination of environmental mismatches and trial-and-error setbacks:<\/p>\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Misunderstood Environment and Blind Command-Line Trials (The Main Cause):<\/strong><br>Early in the migration, unsure whether the new environment used &quot;Nginx&quot; or &quot;Apache,&quot; I blindly followed an AI chat session and rushed ahead, installing and configuring various things via the command line. This cluttered the internal configuration of the new environment, triggered errors, and caused the chat logs to bloat massively. The session itself became sluggish, leading to a complete operational breakdown\u2014a major blunder.<\/li>\n\n\n<li><strong>Incompatibilities from PHP Version Upgrade (PHP 8.1 \u2192 8.2):<\/strong><br>Older Jetpack code brought over from the source environment (PHP 8.1) clashed with the stricter type-checking and class-loading specifications of the new environment (PHP 8.2), throwing a fatal error.<\/li>\n\n\n<li><strong>WP-CLI Getting Caught in the Crash:<\/strong><br>I tried to safely disable the plugin via the command line (WP-CLI), but because the Jetpack error fired before the WordPress core could even initialize, even the <code>wp plugin<\/code> command got dragged down and forced to terminate.<\/li>\n\n<\/ul>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">The Fix: Forcibly Disabling the Plugin via SSH to Break Through<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After deleting the instance, recreating a clean environment from scratch, and starting over, I found that even WP-CLI wouldn&#039;t run. To work around this, I logged in via SSH and directly renamed the Jetpack plugin directory, physically preventing the system from loading it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user@stored-instance:~$ sudo mv \/var\/www\/html\/wp-content\/plugins\/jetpack \/var\/www\/html\/wp-content\/plugins\/jetpack_old\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use code with caution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The moment I changed the directory name, the system was freed from the error, and the frozen browser import screen immediately sprang back to life.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"268\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143353\/Screenshot-from-2026-10-24-17-42-00-1.png\" alt=\"\" class=\"wp-image-6114\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143353\/Screenshot-from-2026-10-24-17-42-00-1.png 721w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143353\/Screenshot-from-2026-10-24-17-42-00-1-300x112.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Import Completed Successfully<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The file restoration ran smoothly to the very end, and the import completed successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"305\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143405\/Screenshot-from-2026-10-24-17-42-48-1.png\" alt=\"\" class=\"wp-image-6115\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143405\/Screenshot-from-2026-10-24-17-42-48-1.png 721w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2026\/10\/25143405\/Screenshot-from-2026-10-24-17-42-48-1-300x127.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Proceeding with trial-and-error installations when the specifications of a new server environment are unclear is a recipe for setbacks and extreme risk.<br>Starting fresh with a clean environment, identifying the root cause of the error (the fatal error), and handling it physically proved to be the ultimate key to recovering from a total breakdown.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Preparation: Expanding PHP Capacity Limits and Timeouts To import a 250MB backup file, update the new server&#039;s php.ini file to increase the limits. For the native WordPress (Debian) setup, you can find the relevant file here: bash Use code with caution. [Changes to Make] ini Use code with caution. After updating the settings, restart Apache2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6111,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/the-world-star.com\/?p=6080","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[3],"tags":[959,960,961,67,68,70,337,339,672,674,679,686,688],"class_list":["post-7466","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-error-resolution","tag-server-setup","tag-troubleshooting","tag-server","tag-wordpress","tag-aws","tag-lightsail","tag-bitnami","tag-all-in-one-wp-migration","tag-jetpack","tag-php-vulnerability","tag-php-8-2","tag-server-migration","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=7466"}],"version-history":[{"count":1,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7466\/revisions"}],"predecessor-version":[{"id":7467,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/7466\/revisions\/7467"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/6111"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=7466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=7466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=7466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}