Question AStaging Site
How can I set up a staging site for my new site?
How can I set up a staging site for my new site?
AnswerWhen creating a staging site or just a copy of your existing site for testing or basically any reason, there are a few rules we strongly encourage users to follow.
- Avoid Nesting: In order to avoid possible conflicts between your sites, it is important to separate your sites into completely separate folders. For example, if you have a production site and a staging site, the layout might look something like this where the public_html folder is your web server’s root path.
/public_html/production_site/[worpress site 1 file/folders here]
/public_html/staging_site/[worpress site 2 file/folders here]Note: Do not place the staging_site in a or under the production_site directory
- Separate Databases:You must create separate databases for each site. So you might create a database named prod_db for the production site and another database named stage_db for the staging site. Never try to use the database for both sites.
- For a full overview of a staging site, see the post How to Create a WordPress Staging Site.