Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Create a Staging Site for WordPress

We are all familiar with the white screen of death. There are many reasons behind this issue but the most important one is updating failure of plugins, themes or Wordpress site. The only gateway to recover fast from this issue is ‘staging site.’ Many readers ask how to update plugins or themes and test new plugins or software without affecting the current site. As per our opinion, being a WordPress user you have the privilege of using a WordPress Staging site and avoid complex situations. We will show you possible systematic ways to create a staging site for your WordPress.

Why you should create a WordPress staging site

Most of the WordPress support providers use staging site while building a new website. However, this process is extremely helpful while improving or updating the current site. While testing software, plugins, and updates, you can ensure that the user experience of the page viewers is not affecting. Besides, working on a staging site will eliminate the chances of a negative impact of crashed site on the live site. No doubt, it is good for business.

Setting up a WordPress staging site

Clearly setting up a Wordpress Staging site is not an amateur’s job. You may need to consult with pro WordPress developers for this task. However, the job could be done in three possible ways, which is manual, using web hosts and using plugins. Here are details about staging WordPress site:

  1. Set a WordPress staging site manually

For manual approach, you require significant coding knowledge. First, you need to create a subdomain on your main domain. It will help you to run the staging site in a discrete folder. Give the sub-domain a name and select sub-domain from the drop-down menu. The “document root” text box will show a location based on the subdomain inside the cPanel. It will look like: public_html/staging. Click “create” while you complete the process.

Next, you have to create an FTP account to access the staging site and avoid the live site. After the creation of subdomain, you should copy data from the main site to staging site. Search for the box “Copy Database To” and enter staging database’s name. Copy both data and structure without changing any setting and select “Go” to run the copy site. After copying the site, select it from the left sidebar and launch it, then click “SQL” tab. Run following SQL queries:

First query: UPDATE wp_options SET option_value = REPLACE(option_value, ‘ORIGINAL_URL’, ‘NEW_URL’);
Second query: UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, ‘ORIGINAL_URL’, ‘NEW_URL’);
Third query: UPDATE wp_posts SET guid = REPLACE(guid, ‘ORIGINAL_URL’, ‘NEW_URL’);
Fourth query: UPDATE wp_posts SET post_content = REPLACE(post_content, ‘ORIGINAL_URL’, ‘NEW_URL’);

Hit the go button and wait for confirmation. Now, download a fresh copy of WordPress software from WordPress.org and upload it. Then all of the plugins and media file and theme should be copied. After that, you will be able to copy database with the WordPress staging installation. Only then WordPress will connect with staging database and detect WordPress was successfully installed. You will be asked to log in and the login credentials should be same as on the actual website.

  1. Set WordPress staging site with Web Host

Many WordPress care plans come with one-click opportunity to create staging site. Yes, your host can bear all the responsibilities of creating a staging environment. Sometimes, the WordPress service packages also offer a command line tool. Hosting sites add speed, accuracy, and security. Besides, if you have a less technical knowledge, asking help from the WordPress service providers will be great. They offer it in so advanced level that you don’t have to continue reading this post and just sign up for their service package.

Besides, the host can offer complete documentation or guide for creating a staging site. Although the price is high, the main advantage of this process is its simplicity. Using host’s tool to create a copy of own site requires limited or no technical knowledge. However, the disadvantage or risk is also high as you may have no control over anything that may go wrong in staging procedure. Even experienced WordPress developer will admit that paying extra to the WordPress hosts is worth it.

  1. Set WordPress staging site with plugins

Using plugin for this purpose may be the easiest and cost-effective process. With the access to WordPress admin area, you can easily install a staging plugin. A staging plugin from reliable source cover the process of copying databases and create a discrete staging WordPress site. Here are four reliable and popular plugins for creating staging site:

  • WP Staging

This plugin has 4.8-star rating along with 3000 active installations. The main reason behind its popularity is its simple installation. After installing this plugin click on the option “Create New Staging Site.” Then enter the name of your staging site to create a subdirectory. Confirm scan of files, database tables, and other advanced modules. Finally, click “Start Cloning” to start the process. After completion of the project, just log in to your staging site. The admin credentials remain same in this process.

  • All-in-One WP Migration

This is a well-known plugin commonly used for migrating WordPress websites. It comes with 4.7 rating and 100000 active installs. It will help you to make an exact facsimile of your website, which is ideal for all-purpose testing. After installation, click on the “All-In-One WP Migration > Export.” You will find it in the WordPress admin. With this plugin, you will have the power to change the domain name to other subdomains. You can also delete spam comments and reduce the size of the file. After the transportation, you can import the file to a new WordPress installation on a subdomain. Then, install the plugin on a new site and go to All-In-One WP Migration > Import within WordPress admin. Use drag and drop process to export file in appropriate place and start.

  • WP Stagecoach

This plugin is could be installed and create a staging site within few minutes. After its installation, click on “WP Stagecoach” and you will be able to set a URL for your staging site. you can also create a password if required. Then select “Ride the Stagecoach” to build staging environment. You will have the privilege to use same user credentials of the original site while logging in the staging site.

  • Duplicator

With 4.9 star rating and 700,000 active installs, this plugin is certainly popular among the WordPress users as well as WordPress backup service providers. You can install this plugin easily and start creating back up file just by clicking “Create New Button.” Click “Build” button to scan the system. Download both archive and installer files and upload them to an empty directory on the web host with FTP. In a web browser paste and go the URL of install file. Here you can change the configuration as well as the settings of the empty database. Hit “Run Deployment” button and step by step update the database and run a test after it is completed. The best part is there is no need for the WP installation for a new site.

Conclusion

The thought of creating a staging WordPress site may be stressful for a website owner, But, if you own a WordPress website, you have the power to use several plugins and skip the hectic of technical steps. If you are afraid to rely on the plugins, you can do it manually or depend on web hosts. In both cases, you will require a little bit of technical and coding knowledge. Whatever will be your preference, we are here to help you. Stay connected for more details.

The post How to Create a Staging Site for WordPress appeared first on WP Web Help.



This post first appeared on Top 15 WordPress SEO Plugins For 2017, please read the originial post: here

Share the post

How to Create a Staging Site for WordPress

×

Subscribe to Top 15 Wordpress Seo Plugins For 2017

Get updates delivered right to your inbox!

Thank you for your subscription

×