How to Transfer your WordPress staging website to live

0

 Transferring a WordPress staging website to a live website can be a bit complex, but here are some general steps that may apply:

  1. Create a backup of your staging website, including the database and all files. This will ensure that you can restore your website if something goes wrong during the transfer process.

  2. Make sure that the staging website is fully functional and that all changes and updates are complete.

  3. Make sure that the live website is also backed up and that you have the necessary access to the live website's files and database.

  4. In your staging website, Install and activate a plugin such as All-in-One WP Migration or Duplicator, it will help you to export your website and import it to the live website.

  5. Use the plugin to export your staging website, including the database, media files, and all other files.

  6. Import the exported package to your live website, this process may take some time depending on the size of your website.

  7. Once the import process is complete, check your live website to ensure that everything is working correctly.

  8. Update the URLs in your live website's database, you can use a plugin such as Velvet Blues Update URLs.

  9. Test the live website thoroughly to ensure that all links, images, and functionality are working correctly

It's important to note that this process may cause some issues with your website's functionality, and plugin compatibility, so it's best to test your website thoroughly after making the change to ensure that everything is working correctly. Additionally, it's important to consider a maintenance window to do the transfer, to avoid any downtime for your visitors.

Other Procedure

This Means your WordPress Website is Live Follow the Instruction Below

The file wp-config.php already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

Backup staging and live site

  1. Access cPanel > File Manager > [staging site folder].


  • Highlight everything inside the folder > Right-click on any of the folders and click Compress.

Compress means to package files and folders into a single archive file.

  • A prompt box will appear. Give the compressed archive a name that is easy to reference. For this tutorial, the backup archive is named ‘stagingfiles.zip’. If you are unsure which compression to choose, use ‘zip’.


  • Right click on the compressed archive file > Download (so you have a copy on your computer’s local drive).
  • Repeat the same process for the live site folder (typically in the ‘public_html’ folder).

Backup staging and live site database

  1. Access cPanel > phpMyAdmin.
  2. On the left navigation bar, navigate to the staging site database.
  3. In the main panel, click Export.
phpMyAdmin interface indicating where to find your database and the export button.
  • Choose Quick export method > SQL format > Go (this will download the database onto your computer’s local drive.
phpMyAdmin interface showing where the Go button is in the Export panel.
  • Repeat the same process for the live site database.

The migration process

  1. Access cPanel > File Manager > navigate to public_html folder.
  2. Create a folder called ‘old’. Highlight everything in public_html folder (except for old folder), then move to old folder.
  3. Navigate to the staging site folder, then move all files and folders to public_html folder.
  4. Go back to cPanel Home > phpMyAdmin
  5. Navigate to the staging site database > go to the wp-options

    wp-options’ table and update the option values of ‘siteurl’ and ‘home’ to the correct URL. For example, from http://lakashighschool-com.stackstaging.com/ to https://lakashighschool.com/
  6. Click Edit then Go to save


  7. Open a new page on your web browser and type in your domain name and access WordPress backend (e.g. [domain name/wp-admin]) > Update Permalinks.
  8. Check the entire website for broken links. If you have too many links to check, there are plugins available for your convenience.

If Problem Encounter Remove Redundant Files or Fresh Install then Migration

Post a Comment

0Comments

"Please keep your comments respectful and on-topic."
"Your email address will not be published."
"HTML tags are not allowed in comments."
"Spam comments will be deleted."

Post a Comment (0)