This KB article describes setting up staging for a client that has an existing (live) site on another web host.
- Have the client set up a web hosting account with MediaLyon (NameHero)
- Go to MediaLyon > Web Hosting > Sign Up Today > mybusiness.medialyon.com > Web Hosting > Order Now
- Choose a Domain... "I will use my existing domain and update my nameservers" > www.avisight.com > Use
- Once ordered, a cPanel for avisight.com will be setup in WHM
- Add a 'staging' subdomain in cPanel
- Log into NameHero > Reseller Account > Log in to WHM > List Accounts > select the cPanel for avisight.com
- Go to Domains > Subdomains > Create a Subdomain
- Subdomain: staging, Domain: avisight.com, Document Root: staging > Create
- Install WordPress on the staging site.
- Go to cPanel > Softaculous Apps Installer > WordPress > Install Now
- https:// staging.avisight.com delete wp (Install)
- Point the DNS
- Go to domain host registrar (GoDaddy)
- Log in using Laz@MediaLyon > Account Settings > Delegate Access > Select Account I can Access (William O'Donnell - Avisight) > Access Now
- Go to Domains > avisight.com > 3 Dots > Manage DNS > DNS Records > Add
- Type="A", Name="staging" (must be the same as subdomain name), Data="67.227.157.33, TTL="Default" > Add record
- Verify the sight is still up and staging DNS is resolving.
- Go to the main site, avisight.com, and make sure it's still up (live).
- Go to whatsmydns.com > type in staging.avisight.com > confirm it's resolving to 57.227.157.33.
- Log into staging.avisight.com/wp-admin and build the new site.