Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. Plesk Control Panel
  3. How to use Plesk to stage websites
Updated on June 21, 2024

Plesk Control Panel

  • Folder icon closed Folder open iconHow to log in and out of Plesk
  • Folder icon closed Folder open iconHow to add new domains and subdomains in Plesk
  • Folder icon closed Folder open iconHow to manage databases and database users in Plesk
  • Folder icon closed Folder open iconGetting started with the Plesk File Manager
  • Folder icon closed Folder open iconHow to manage DNS zones in Plesk
  • Folder icon closed Folder open iconHow to access webmail in Plesk
  • Folder icon closed Folder open iconHow to manage e-mail accounts in Plesk
  • Folder icon closed Folder open iconHow to configure an e-mail forwarder in Plesk
  • Folder icon closed Folder open iconHow to configure an e-mail alias in Plesk
  • Folder icon closed Folder open iconHow to enable auto-reply messages for an e-mail account in Plesk
  • Folder icon closed Folder open iconHow to use the Plesk spam filter
  • Folder icon closed Folder open iconHow to manage e-mail deliverability settings in Plesk
  • Folder icon closed Folder open iconHow to set up Gmail as the e-mail provider in Plesk
  • Folder icon closed Folder open iconGetting started with Plesk
  • Folder icon closed Folder open iconPlesk e-mail features
  • Folder icon closed Folder open iconHow to manage FTP accounts in Plesk
  • Folder icon closed Folder open iconHow to back up and restore sites in Plesk
  • Folder icon closed Folder open iconHow to generate a CSR and install an SSL certificate in Plesk
  • Folder icon closed Folder open iconHow to manage users in Plesk
  • Folder icon closed Folder open iconHow to use Plesk to protect directories with a password
  • Folder icon closed Folder open iconHow to schedule tasks in Plesk
  • Folder icon closed Folder open iconHow to use the WordPress Toolkit in Plesk
  • Folder icon closed Folder open iconHow to generate and renew Let’s Encrypt SSL certificates in Plesk
  • Folder icon closed Folder open iconHow to use Plesk to stage websites
  • Folder icon closed Folder open iconHow to switch PHP versions and settings on Plesk
  • Folder icon closed Folder open iconHow to redirect users to SSL connections in Plesk
  • Folder icon closed Folder open iconHow to use Git with Plesk
  • Folder icon closed Folder open iconHow to view and filter logs in Plesk
  • Folder icon closed Folder open iconHow to remove password protection from the site statistics page
  • Folder icon closed Folder open iconHow to install a self-signed SSL certificate in Plesk
  • Folder icon closed Folder open iconHow to use SSH keys with Plesk
  • Folder icon closed Folder open iconHow to view resource usage information in Plesk
  • Folder icon closed Folder open iconHow to change your Plesk password
  • Folder icon closed Folder open iconHow to manage user roles in Plesk

How to use Plesk to stage websites

Estimated reading: 4 minutes 112 views

This article describes how to use Plesk to stage websites.

Plesk is no longer included with new Hostvento Hosting plans, but it is still available on legacy Managed WordPress accounts. You can install Plesk manually on unmanaged VPS and Dedicated servers.Table of Contents

  • About website staging
  • Setting up the website staging environment
  • Copying the website
  • Copying databases
  • Publishing the site
  • More Information

About website staging

It is important to test a site’s code and content before you publish it and make it available to the public. The easiest way to do this is by using a website staging environment. With just a few quick steps, Plesk enables you to easily configure a testing environment for your site.

Setting up the website staging environment

You can host the staging environment in your current webspace on Plesk by creating a new domain or subdomain. For example, if your primary domain is example.com, you could create a staging.example.com subdomain to use as the testing environment.

For information about how to create a domain or subdomain in Plesk, please see this article.

Copying the website

After you configure the staging environment, you must copy everything from the existing production environment to the new staging environment. To do this, follow these steps:

  1. Log in to Plesk.If you do not know how to log in to your Plesk account, please see this article.
  2. In the left sidebar, click Websites & Domains:Plesk - Sidebar - Websites and Domains
  3. Locate the website you want to copy, and then click Website Copying:Plesk - Website Copying iconThe Copy Files page appears:Plesk - Copy Files page
  4. Under Copy Destination, select Website in Plesk.
  5. In the Site name list box, select the destination domain.
  6. In the What to do with existing files section, select what you want to do with any files that may already exist on the destination domain.
  7. Click OK. Plesk copies the site to the destination domain.

Copying databases

If your website uses a database (or multiple databases), you should copy them to the staging environment also. To do this, follow these steps:

  1. Log in to Plesk.If you do not know how to log in to your Plesk account, please see this article.
  2. In the left sidebar, click Databases.
  3. Locate the database you want to copy, and then click Copy:Plesk - Databases copy iconThe Copy Database page appears:Plesk - Copy Database page
  4. In the Destination database server list box, select localhost:3306.
  5. In the Destination database section, select Create database with name, and then type a name for the new database.
  6. Select the Create a full copy check box.
  7. Click OK. Plesk copies the database.
    After the database copy is complete, you should modify your site’s scripts in the website staging environment to connect to the newly copied database. For example, you may need to modify the connection string to use the new database name, username, and password.

Publishing the site

After you have tested the staging environment, you can “go live” and publish it. To do this, follow these steps:

  1. Log in to Plesk.If you do not know how to log in to your Plesk account, please see this article.
  2. In the left sidebar, click Websites & Domains:Plesk - Sidebar - Websites and Domains
  3. In the list of domains, locate your production site, and then click Hosting Settings:Plesk - Hosting Settings
  4. In the Document root text box, type the directory for the staging site environment.
  5. Click OK.
    If your site uses a database, don’t forget to adjust the database connection strings to connect to your live database!

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to use Plesk to stage websites

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento