If you need a more open staging environment, you can manually create a sports website on a subdomain where you can try out code changes, etc. It is necessary to use subdomain instead of localhost so that the hardware environment is the same. In the next step, I will explain how to arrange everything. If you’re new to WordPress, this process can be a little daunting, but we’ll do our best to explain it in detail.
This approach is definitely more complicated than the previous two answers. So if you need to simplify things, we recommend using one of the above alternatives. This technique also makes it difficult to bring your own setup into live sports. This is an important aspect of everything else. Note: Before starting this procedure, make sure you have an up-to-date backup of your website online.
Step 1: Create a Subdomain Using cPanel
First you need to create a subdomain so that you can use your website. Go to cPanel and look for the Subdomain option. Your cPanel may also have a great style, but the actual options should be the same: Then create a subdomain called “staging” or something similar:
Step 2: Create an FTP account on your new subdomain
Next, you want to create a new account FTP to your subdomain. This ensures that everything is continually separated. Look for the FTP Accounts option and click on it: Then enter your new account details. Make sure the folder matches your subdomain’s (file root) folder:
Step 3: Upload WordPress Documents to Online Sports Website
Next, you need to apply a new FTP account to upload documents to your website. First, download the version WordPress current and upload: So you may need to replicate these 3 folders from your current WordPress site: … /wp-content material/upload…/wp-content material/problem…/ wp-content/plugins also upload to your career page. If your folders are particularly large, you can use the cPanel file manager to speed up your system. Otherwise FTP is fine. In our humble opinion, using FTP: Publishing large folders can take a long time.
Step 4: Export/Import Database
Next, you want to export the database from your live website and import it into a live web page. A dedicated plugin called WP Migrate DB is good for this. After installation and activation, run it from Tools → Database Migration. This plugin automatically updates all login paths in the database to include the online URL of the new entertainment website. This is clearly necessary to ensure that the workplace actually works. Enter the same URL and folder path that you used when expanding the subdomain. Then export the database. Next, you need to create a new database on your online ledger website and enter all the information. Go back to cPanel and find the MySQL Databases option – click here to create a new database – also create a new database and give the user permission to access the new database, then go to PHPMyAdmin. Find the database you created, click Import and select the reports exported using WP Migrate DB. Then click Go to import the information into your database.
Step 5: Edit the wp-config.Hypertext wizard registry to include it in the new database,
Now, this is the final step! You have to modify the wp-config. Personal homepage document on the test website to implement the new database and username information. Also, make sure the database prefix matches the one used on your live site. You probably don’t want to enable anything here, but it may depend on the prefix used for your live WordPress site. For example, the residence test website uses ‘wpov’ because it is a database prefix, so we had to create this conversion. Then add it lower back for your FTP server.
Step 6: Log in and restrict get right of entry to to your recreation page
If all goes nicely, you should now be able to login to your work page the usage of the exact identical username/password as your energetic web page. You need to do one more component: Restrict get entry to on your internet site. Start through going to Settings → Reading and checking the Discourage search engines from indexing this web page container. This will prevent Google from indexing your website. If you need to limit entries you can use a plugin called Hide My Site. Visitors must first enter a password to access any part of the website. If you want, you can share the developer’s website by sharing her password, but outsiders cannot access her website.
Conclusion
Hoping you have understood how to build a WordPress staging website. In case you have any queries, or even doubts about the same, share them in the comments section below.
Write A Comment