Monday, October 19, 2026
HomeeCommerceWhat's a WordPress Staging Web site and How Do You Set One...

What’s a WordPress Staging Web site and How Do You Set One Up?

[ad_1]

While you’re updating your website, including new options, or rolling out a brand new design, you need to make the method as seamless and secure as doable. And when you can at all times restore a backup when you have one available, it’s higher to keep away from that within the first place. 

The easiest way to do that is with a WordPress staging website (additionally known as a staging surroundings), which you should use to check and deploy main modifications. So if the change that you simply make breaks something — whether or not that’s including a brand new plugin, modifying code, or switching themes — it received’t have an effect on your stay website. Because of this you continue to make gross sales and supply a wonderful expertise for potential prospects.

What’s a staging website?

Staging websites are copies of your stay website hosted on a separate URL (also called a take a look at or staging URL). They’re often the ultimate step within the growth course of earlier than deploying both a brand new web site or important modifications made to an current website. On a staging website, you possibly can take a look at new plugins, options, and design modifications all with out affecting your stay website.

Not solely will your stay retailer not go down when you make a mistake, you can too take no matter time it is advisable to take a look at and experiment with out complicated website guests.

Key elements of a staging website

Whereas your staging surroundings needs to be as near an actual reproduction of your stay website as doable, there are a couple of key variations: 

  • Your stay website can be hosted at “yourdomain.com”, and your staging website might want to use a special area identify (e.g. yourdomainname.staging395312.com). 
  • Your staging website shouldn’t be public-facing.
  • Relying on the way you arrange your staging website, it’s possible you’ll have to manually replicate sure elements of your stay surroundings like SSL certificates, PHP variations, and different server settings.

What sort of modifications ought to I make with a staging website?

When you’re fixing a typo, updating a product value, or making different minor modifications to your website, it’s not going to be price copying your stay website over to a staging surroundings, making the change, and re-deploying again to stay once more. Simply make your minor modifications in your stay website and transfer on along with your day. 

It is best to use a staging website when making the next modifications:

  • Manually updating plugins, themes, or WordPress core
  • Including new plugins
  • Enabling important new performance with current plugins
  • Making main design and content material modifications to current pages and posts
  • Redesigning your website completely
  • Switching fee gateways or making different main performance modifications

The place is a staging website hosted?

Staging environments are often hosted by means of a hosting supplier — typically the identical one which hosts your stay website. You’ll be able to create a one-click staging website by means of your host, construct one manually with a internet hosting supplier, or use localhost by yourself pc.

Listed below are some advantages and downsides to every sort of staging website:

One-click staging

One-click staging is often supplied on managed WordPress internet hosting plans.

Professionals:

  • It’s quick and easy to deploy out of your internet hosting firm’s admin panel.
  • It typically consists of one-click stay deployment.
  • It mechanically generates a staging URL, so that you don’t should buy a special area for testing, or fiddle with subdomains and DNS.
  • It’s sometimes included in your internet hosting plan, so there aren’t any added prices. 
  • It mechanically updates root URLs within the staging website’s database.
  • It’s simply accessible to collaborators.
  • Search engines like google are mechanically discouraged from crawling content material. 
  • It makes use of a safe https:// connection.

Cons:

  • Some hosts might use plugins for one-click staging deployment that battle along with your theme or different plugins in your website.
  • You don’t have any management over what strategies are used to create the staging website.

Guide staging on an online host

When you don’t have internet hosting with one-click staging otherwise you don’t like the way in which your internet hosting supplier units up their staging websites, you possibly can nonetheless arrange your personal. 

Professionals:

  • You will have management over the way you copy your stay website to the staging surroundings.
  • You’ll be able to select your personal customized take a look at URL.
  • You need to use any internet hosting firm you need.
  • It’s simply accessible to collaborators.

Cons:

  • It takes longer to arrange and re-deploy to your stay website.
  • You will have to pay further internet hosting and area registration charges.
  • Your SSL certificates is probably not mechanically enabled in your take a look at area.
  • This may be extra vulnerable to errors.
  • Your internet hosting supplier might not allocate sufficient sources to rapidly deploy a staging website to a stay website. That is particularly frequent on shared internet hosting plans.
  • You’ll have to manually test “Discourage search engines like google from indexing this website” in WordPress’ Settings → Studying.
  • You’ll have to make your staging website unavailable to the general public utilizing a upkeep mode or privateness plugin.

Staging with localhost

Localhost staging is usually a nice possibility when you’re used to creating domestically and don’t want to attach with a crew of individuals for testing. It does have fairly a couple of drawbacks that it’s best to have in mind, although.

Professionals:

  • You don’t should be linked to the web to work on or take a look at sure components of your website — you possibly can work on a flight, in your subway commute, or out tenting in the course of the desert.
  • Your website might load extra rapidly than in your net host, making growth and testing quicker.
  • Your take a look at website is personal and inaccessible to the general public by default.
  • There aren’t any further area registration or internet hosting charges.

Cons:

  • Preliminary localhost setup may be time-consuming and is a reasonably technical course of. When you’re making an attempt to deploy a staging website rapidly and have by no means developed domestically earlier than, this feature shouldn’t be your first alternative.
  • It takes longer to arrange and re-deploy to your stay website than with a one-click staging website.
  • You’ll have to manually add an SSL certificates.
  • Deploying to a stay website may be extra vulnerable to errors.
  • You received’t be capable to take a look at fee gateway transactions, notification emails, or any service that’s linked by way of API with out an web connection.
  • It’s not very accessible to collaborators.

The right way to arrange a staging website

On this part, we’ll cowl organising a staging website along with your host, manually, and utilizing a plugin on a hosted surroundings. These steps must also translate to organising a staging website on localhost. When you’re new to utilizing localhost, Jetpack has an article with good suggestions for localhost growth instruments. 

Earlier than you begin

Irrespective of the way you arrange your staging website, just remember to have: 

  • Internet hosting that meets WooCommerce necessities. In case your internet hosting doesn’t meet WordPress necessities, you won’t be capable to copy your stay website over efficiently. 
  • A staging area identify linked to your net host. Some internet hosting firms might allow you to arrange new situations of your website on take a look at URLs that they personal. Others might require that you simply use your personal bought area identify. When you’re utilizing a URL you personal, make it possible for it’s linked to your internet hosting account by means of your DNS data.
  • Login particulars in your internet hosting management panel. These particulars are often the identical because the login info in your internet hosting account. When you’re not sure, test along with your internet hosting supplier.
  • Safe file switch protocol (SFTP) credentials. These may be present in your internet hosting management panel. When you’re not sure the place to seek out them, ask your host’s help. The small print you will have are:
  • Host (your stay server’s IP tackle)
  • Username
  • Password
  • Port quantity

Even when you intend to make use of a plugin to repeat your stay website to a staging surroundings, the migration might not go easily. You need to be ready to repeat your website over manually. To take action, you’ll want an SFTP utility like: 

For this instance we’ll be utilizing Filezilla, however most SFTP shoppers work equally.

Organising a WordPress staging website along with your host

Many internet hosting suppliers supply one-click staging environments, particularly as a part of managed WordPress plans. That is the best option to arrange a staging website as a result of your host takes care of the vast majority of the give you the results you want. They will additionally present help must you run into any points. 

The precise steps you’ll have to take will fluctuate primarily based in your supplier, so try their documentation for all the main points you want. On this instance, we’ll be organising a staging website with Siteground.

In your Siteground account, go to the Web sites tab and click on Web site Instruments beneath the web site you need to duplicate. Go to WordPress → Staging.

Within the Choose WordPress Set up dropdown, select the location you’re engaged on. Then, add a reputation in your staging website and click on Create.

creating a staging site with a hosting provider

When you have recordsdata positioned outdoors of the standard WordPress setup — e.g. customized JavaScript — a field will seem asking if you wish to embrace these in your staging surroundings. Embody them in the event that they’re part of your website performance or design. It will fluctuate for every setup. Then, click on Verify.

And that’s it! You’ll be able to entry your staging website from the identical space in your management panel and push modifications to your stay website in a couple of clicks as effectively.

Organising a staging website utilizing a plugin

In case your internet hosting supplier doesn’t supply staging, utilizing a plugin to make a duplicate of your stay website and migrate it to a staging surroundings is the best choice. Not solely is it simpler than the guide methodology, it’s much less time consuming and produces fewer errors. We’ll use the WP Staging plugin for this instance, however different choices embrace Jetpack, BackupBuddy, and Transferito. 

The method for every plugin will differ, so when you resolve to go along with one thing apart from WP Staging, you’ll need to learn the plugin’s documentation earlier than going by means of the migration course of. After all, earlier than you do something, again up your stay website!

After you put in and activate the plugin, navigate to WP Staging → Staging Websites in your WordPress dashboard. There, you possibly can choose the elements of your database and the recordsdata you need to embrace in your staging surroundings. Every little thing can be chosen by default, and that is the best possibility for almost all of web sites. 

creating a staging site with WP Staging

Now, click on Begin Cloning. The time it takes to create your staging website will fluctuate primarily based on its dimension, however the plugin will hold you up to date all through the method.

progress bar for creating a staging site

As soon as the method is full, you’re good to go! You’ll see directions for accessing the staging copy and might log in utilizing the identical credentials as your stay website. 

Observe that you’ll want the premium model of the plugin to push modifications from staging to stay. Nevertheless, when you aren’t a developer and don’t have staging instruments as a part of your internet hosting plan, the convenience of use will almost certainly be definitely worth the funding. 

Organising a WordPress staging website manually

The next steps are primarily based on a number that makes use of cPanel. In case your host makes use of an alternate like Plesk or a proprietary management panel, the steps ought to nonetheless be fairly comparable. Nevertheless, when you’re not sure, you possibly can doubtless discover help in your internet hosting supplier’s assist documentation or by reaching out on to their buyer help crew.

Step 1: Make a backup of your stay website 

Take a backup of your stay website earlier than you start copying your website to staging simply in case something goes incorrect. 

Step 2: Copy your recordsdata out of your stay server to your desktop

You’ll want an SFTP shopper and login credentials. When you aren’t positive what these are, ask your internet hosting supplier.

  1. Log in to your net server utilizing your SFTP shopper. Enter the credentials supplied to you by your host for the Host, Username, Password, and Port fields.
connecting using filezilla
  1. Navigate to a folder in your pc the place you need to obtain your website recordsdata. In most SFTP shoppers, native recordsdata seem within the left pane and exterior server recordsdata on the best.
finding site files via filezilla
  1. Navigate to the general public listing in your net server (proper pane). This folder is often referred to as ‘public_html’ or ‘www.’ The listing identify can fluctuate, nonetheless, so test along with your internet hosting supplier when you’re not sure.
site files as shown in filezilla
  1. Choose the entire recordsdata from the best pane and drag them to the left pane. It will take some time relying on what number of recordsdata you could have and your connection velocity.
moving sites from the server to a local computer

Step 3: Export your stay website’s database

When you’ve moved your recordsdata out of your stay server to your desktop, you’ll have to export your database and import it to your staging surroundings. When you attempt to go to your staging URL earlier than importing your database, you’ll see the message ‘error establishing database connection.’

database connection error

Not like your WordPress recordsdata, the database shouldn’t be accessible by means of SFTP or the cPanel file supervisor. To entry and export your database, you’ll use phpMyAdmin. You will discover phpMyAdmin in cPanel below Databases.

phpMyAdmin in cpanel

In phpMyAdmin:

  1. Choose your database.
  2. Click on the Export tab.
  3. Choose Fast because the export methodology, select SQL because the file sort, then click on Go.
exporting database tables

It will obtain a .sql file to your pc. Take a word of the place that is saved, as you’ll have to import this in your staging net server.

Step 4: Import your stay website’s database to your staging server

To add your stay website’s database, you’ll first have to create a brand new, clean database on the staging server.

  1. In your internet hosting management panel, go to the ‘Databases’ part and click on MySQL databases. 
  1. Create a brand new database. On this case, the database is known as ‘tutorial_mydb.’
creating a new database
  1. Create a database consumer. Within the MySQL Customers part you’ll create a brand new consumer. Use a novel username (not “admin” — get inventive) and a robust password.
creating a new database user
  1. Add the database to the consumer. Within the Add consumer to database part, choose the consumer and database you simply created, then click on Add.
adding a user to a database

5. Assign all privileges to the consumer account and click on Make Modifications.

assign user privileges

Voilà! You’ve efficiently created a clean database into which you’ll be able to import your stay website’s database.

Step 5: Edit your wp-config.php file

The wp-config.php file accommodates essential details about your database. This file connects WordPress to important information like put up content material, put up meta, customers, and theme and plugin settings. Your wp-config.php file should be up to date with the staging server’s database info in order that your new staging website can talk along with your database.

  1. In your pc, discover the copy of your wp-config.php file that you simply downloaded out of your stay website. Then, open it in a textual content editor of your alternative, like VS Code or Notepad++.
  1. Go to the mySQL part of the file and substitute your stay website’s database particulars with these you simply created.
// ** MySQL settings – You will get this information out of your net host ** //

/** The identify of the database for WordPress */

outline( ‘DB_NAME’, ‘yournewdatabasename’ );

/** MySQL database username */

outline( ‘DB_USER’, ‘yournewdatabaseuser’);

/** MySQL database password */

outline( ‘DB_PASSWORD’, ‘yournewdatabasepassword’ );

Some wp-config.php recordsdata additionally include the next traces:

outline(‘WP_SITEURL’, ‘https://yoURLivesite.com’);

outline(‘WP_HOME’, ‘http://yoURLivesite.com’);

When you see these traces in your file, you’ll want to alter them to the URL of your staging server.

  1. Save your wp-config.php file and overwrite the one you uploaded to your net server by dragging and dropping it over utilizing your SFTP shopper.

Step 6: Import your stay website’s database

  1. Go to phpMyAdmin in your net server. In cPanel, you’ll discover this below Databases.
  2. Choose your newly created database, then click on the Import tab.
  3. Click on Select File and discover the sql file that you simply exported earlier.
importing a database

4. Click on Go to start the import course of. Relying on the scale of your database, it’d take a short while to import. When the import is accomplished, it’s best to see all of your database tables on the left.

Step 7: Change the foundation URLs in your website’s database

Now that your information has been imported, you’ll want to exchange all situations of your stay website’s URL along with your new staging website URL.

  1. Open phpMyAdmin and choose your database.
  2. Click on in your wp_options desk. Tables often seem on the left.
wp_options table in ftp

3. As soon as opened, it’s best to see the primary two choices. Look below the option_name column for the labels siteURL and house.

4. Double click on on the siteurl and residential possibility values below the option_values column and alter each of those to your staging URL. Be sure to don’t embrace a ahead slash (/) on the finish of the URL.

editing siteurl in the database

5. Open your browser and kind in your staging website’s URL with /wp-admin/ on the finish (e.g. https://yourstagingsite.com/wp-admin/). It will redirect you to the login web page. 

Permalinks are the everlasting URLs for pages and posts in your web site and their underlying construction. Generally your put up and web page hyperlinks might not work in your staging website until you flush your permalinks first. It is a easy course of.

  1. In your staging website’s WordPress dashboard go to Settings → Permalinks.
  2. Click on Save Modifications. You shouldn’t have to alter something within the settings.
editing WordPress permalinks

Step 9: Search and substitute your stay website’s URLs in your database

Your web site almost certainly has no less than a couple of self-referencing hyperlinks that use the foundation URL. In your staging website, you don’t need these hyperlinks to nonetheless reference the stay website, so that you’ll have to do a search and substitute. The perfect and most secure approach to do that is with a plugin. For this instance, we’re utilizing the Higher Search Change plugin.

Reminder: earlier than doing something to your database, make sure that to create a backup.

In your WordPress dashboard:

  1. Go to Plugins → Add New.
  2. Seek for Higher Search Change.
  3. Click on Set up Now → Activate. 
  4. In your WordPress dashboard, go to Instruments → Higher Search Change.
  5. Fill the Seek for subject along with your stay website URL (e.g. livesite.com). 
  6. Fill the Change with subject along with your net server URL (e.g. stagingsite.com).
  7. Choose the database tables that you simply need to carry out the search/substitute on. Normally it’s solely mandatory to use this to the wp_posts and wp_postmeta tables.
  8. Verify Run as dry run?.
  9. Click on Run Search/Change. The dry run implies that this may make no modifications, however it would present you the variety of modifications that can be made while you do truly run the search and substitute.
  10. Verify for modifications. When the dry run is full, it’s best to see various modifications. When you don’t, then it’s possible you’ll have to double-check your URLs. In case your URLs are right and there’s nonetheless nothing to alter, then you definitely don’t should do something additional and might delete the plugin.
  11. If there are modifications to make, uncheck the Run as dry run? possibility and click on Run Search/Change.
  12. Deactivate and uninstall Higher Search Change. As soon as your search and substitute has been accomplished and also you’ve checked that the location is working appropriately, you possibly can deactivate and uninstall the plugin.

Take a break and seize a cup of espresso. You’ve accomplished your guide staging website setup and might now start troubleshooting, experimenting, and testing!

Take a look at your staging website for errors

Irrespective of the strategy you utilize to create your staging website, it’s best to take a look at it to verify nothing has gone awry in the course of the setup course of after which take a look at it once more after you’ve made your modifications and updates. The precise belongings you would possibly take a look at will differ from web site to web site, however right here’s a guidelines of some inquiries to ask in the course of the testing course of:

Entrance-end:

  • Does the web site show as anticipated on each desktop and cellular? 
  • Do all hyperlinks work?
  • Are interactive components functioning appropriately (e.g. carousels, buttons, accordions, pop-ups)?
  • Are you able to submit varieties? Are the submissions acquired?
  • Do your Cart and Checkout pages work appropriately?

WordPress dashboard:

  • Do your dashboard pages load appropriately?
  • Are you able to add and edit posts, pages, and merchandise?
  • Can your web site be listed by search engines like google? Go to Settings → Studying and guarantee Discourage search engines like google from indexing this website is unchecked.
  • Do your plugin and theme pages and settings work?
  • Can you put in new plugins?

Hold your stay website secure and stop downtime

Whichever possibility you select, take a look at out any main updates and modifications to your website in a staging surroundings as a substitute of immediately in your stay website. Doing so will hold your stay website secure from issues from new plugins, stop downtime on account of errors or conflicts, and make sure that your guests take pleasure in a seamless and uninterrupted consumer expertise. 

Protect your store and your customers with Jetpack

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments