Can I set up a staging website.

Yes, you can. If you are using WordPress, please read this helpful article. If you are using a different CMS such as Drupal, Joomla, or even your own custom-coded website, you can create a staging environment manually by following the steps below.

Creating a Staging Environment in Plesk

Log in to your 1st Domains account:

  • Navigate to Client login
  • Enter your Account ID and Password, then click "Login".

Access the Web Hosting Control Panel:

  • On the "Account Manager" page, click on "Manage Domains & Services".
  • Select the domain name you wish to manage from the list.
  • Under the "Domain Name Services" section, click the "Web Hosting Control Panel" link to log in to the Plesk Control Panel.

Create the staging folder:

  • On the Dashboard tab, or in the left-hand menu, click "Files".
  • Open the httpdocs folder. This is your live site's root folder. Clicking "Files" should open the "httpdocs" folder by default.
  • Click on "+" and from the dropdown menu select "Create Directory"
  • Name the directory whatever you want. This will be the staging sites root folder.
    • You could name it
    • Staging,
    • development, 
    • dev,
    • Or newsite
      its just something for you to access to view the new site.
  • Once the folder is created, navigate to it and upload all the files for your new website.
  • If your website requires a database, create a new database for the staging site. DO NOT use the live Database

Access your staging site:

To view the new site, navigate to your domain name with the staging folder added to the end of the URL.
For example, if the staging folder is called newsite, you would go to: https://mydomainname.co.nz/newsite.
Remember to change "mydomainname.co.nz" for you domain name.

Optional:

Usually you will not want the public or search engines to access or index the staging site while it is being built. For this reason, we recommend placing password protection on the staging folder.
Follow the steps below:

  • While you are still in Plesk
  • Go to "Website & Domains" in the left hand menu. And this should open the Dashboard tab as well.
  • Click "Password-Protected Directories"
  • Click on "Add Protected Directory"
  • In the text feild "Directory name *" You will see the / this represents the httpdocs folder and we just need to add the new folder after that. So in the example above we would enter newsite after the /
  • The text field "Title of the protected area" is optional. This will show on the pop up.
  • Click on Create

Under the protected Directories list you should now see the new protect folder. Now click on that folder.

  • Click on " + Add User"
  • Enter the Username and Password. Remember to store the password somewhere safe as you will need this to view the staging site.
  • Click on "Create" and you will be taken back to the users page showing the new user.

Now that the staging folder has been protected, when you go to load the staging site, you will be presented with a pop-up. It is here you enter the username and password for the user that you just created in Password protected directories. This will stop the staging site from being indexed by Search engines and also no one else seeing the site until you are ready to launch.

Launching the New Website

When you are ready to launch the newly designed site, you can move the staging files to the root folder.

This usually involves:

  • Copying the staging files into the httpdocs folder.
  • If your site uses a database, checking that the site's URL in the database has been updated to the main domain name (removing the staging folder from the address).

Once everything is working correctly, you can remove the staging folder and delete the password protection.

Important: Backup Your Existing Site

Always backup your existing sites file, by either zipping them up into a zip file or moving those files up a directory into a folder outside the httpdocs folder structure. If there are any issues with the new site, you can quickly restore the old version by moving the original files back.

Get in touch

For any additional help, give us a call on 0800 2000 24 (+6439629520) (8AM to 6PM, Monday to Friday).