Chat with us, powered by LiveChat Creating a staging environment in cPanel - Synergy Wholesale

Creating a staging environment in cPanel

Category: Web Hosting

Please note: These are general steps you can take to create a staging sub-domain in cPanel and copy a website over to it. However, please keep in mind that there might be some extra steps we cannot cover in this guide on any changes you may need to make, that might be specific to your website or CMS (WordPress, Magento, Joomla, etc).

Create the staging/dev sub-domain

  1. Log in to cPanel.
  2. Click on Subdomains under Domains.
  3. Under Create a Subdomain, input the following:
    1. Subdomain: Input “staging” or “dev” (without the quotes)
    2. Domain: In the drop-down menu, choose the domain name you want to create the sub-domain for
    3. Document Root: This should be filled out for you if you click outside the Subdomain or Domain boxes
  4. Click Create.

Creating the staging/dev database and database user

Create a new database

  1. Log in to cPanel.
  2. Click on PHPMyAdmin under Databases.
  3. Click on the database you want to clone/copy to a new dev/staging database to the left of the page.
  4. Click on the Operations tab.
  5. Under Copy database to, input the suffix you want for the new dev staging/database (this can be “dev”, “staging” or whatever you like).
  6. Make sure the Structure and data option is selected bellow (there is no need to make any other changes).
  7. Click Go.

Create a new database user and adding it to the new database

  1. Log in to cPanel
  2. Click on MySQL Databases under Databases
  3. Under Add New User, input the following:
    1. Username: We suggest making the beginning of the username the same as the user for your live site, but add “_dev” or “_staging” at the end.
    2. Password: This can be anything you like, as long as it meets the strength requirement.
    3. Password (Again): Simply input the same password to confirm
  4. Click Create User
  5. Then, under Add User To Database
    1. Select the user you just created in the User drop-down menu
    2. Select the database you created in the Database drop-down menu
  6. Click Add
  7. Check the ALL PRIVILEGES checkbox on
  8. Click Make Changes

Copy the website files to the new staging/dev folder

  1. Log in to cPanel.
  2. Click on File Manager under Files.
  3. Navigate to the folder that your website is contained in (typically this is the public_html folder).
  4. Click on the top file/folder, then hold SHIFT and click on the bottom file/folder.
    cPanel compress files
  5. Click Compress.
  6. Click Compress Files in the dialog box that appears.
  7. Click on and drag the compressed file to the new staging/dev folder, which you should see to the left of the File Manager interface.
  8. Open the folder you moved the compressed file into by clicking on it.
  9. Right-click on the compressed file, then click Extract.

Final steps

From here, you may need to make some changes to your staging/dev site’s configuration files in order for it to function properly. Because there are so many different websites and website platforms out there. Unfortunately, we cannot cover this part of the process, as there are so many unknown variables.

More Info Request
  • Select All
  • Sample Pricing Guide
    Due to the nature of our services as a wholesale provider, we do restrict full pricing from being released. You can request a sample pricing guide to give you some insight as to what you can look forward to by becoming a partner with Synergy Wholesale.
  • API Information
  • Whitelabel Billing Information
  • Migration Process
Required
* Required
Thank you for submitting a More Info Request!
An email will be sent to you shortly with the requested information.
Begin your 7-day free-trial today!
Get Started
Close