New Staging Sites
- Head to our Siteground server -> WHM -> solutioserver.com -> cPanel.
- Click Subdomains. Under Create a Subdomain, fill out the 3 fields. For subdomain, enter the name of the client/business, without spaces or punctuation. (Abbreviated is fine.) For the Document Root, enter: /public_html/businessname
- Click create when done.
- Head to the Let’s Encrypt settings in cPanel and apply an SSL certificate to the newly created subdomain.
Starting in 2019 we’ve started installing fresh copies of WordPress from the Softaculous app in cPanel. This video shows how to install WordPress to the subdomain you created previously.
If using Divi, download the latest version here and add it from the Themes page. Then install the Child Theme from here. If using Avada, find the download link in Basecamp or purchase a copy from CodeCanyon. After that, install Child Theme Configurator and setup a child theme, and set it as the default theme. If using any other type of theme, just make sure to setup a child theme for it and use that going forward.
- In Settings->Permalinks, choose Post Name.
- In Settings->General Settings, erase the Tagline and set the Time Zone to Detroit.
- In Settings->Reading, check the box at the bottom ‘Discourage search engines from indexing this site’.
- For both posts and pages, delete the sample, head into Trash, and delete it again.
- Finally, on the project’s Basecamp, edit the Staging post and insert the URL, admin URL, username, and password.
- A few common plugins we use and are worth installing at this point are SG Optimizer, WP Migrate DB, and Wordfence. See Plugins.
- NEW: Install Updraft Plus and configure it to create a daily backup to solutio-staging-backups folder on our Amazon server.
Duplicate a Site to Staging
On the original site’s cPanel, zip up and download the files. On the site’s backend, use the WP Migrate DB plugin: in the find+replace section, set the domain and document root appropriately, then export. On the staging server, upload and unzip the files. Create a new database, add the staging user, and use phpMyAdmin to import the exported DB. Finally use the File Manager’s File Editor to correct the site’s wp-config.php, replacing the database name, user, and password.
Duplicate a Staging site to a new Staging site
Create new subdomain, create new database, add user. Copy files from one subdomain to another and edit wp-config to point to new database. Go to original staging site backend and MigrateDB, replacing urls. Upload export to new database. Clear your google cache, login at wp-login.php, clear permalinks, clear google cache.