Hello,
I am having trouble getting a staging site set up on a subdomain so that I can develop websites on the staging domain and push updates to the live site at the click of a button. I am using WPVivid Backup and Migration Pro plugin for this. In order for the plugin to create staging sites, I have to create a directory for the plugin to clone the live website into. The directory has to be empty or the plugin will not create the staging site. Here is how I tried to do this:
Create subdomain with wordpress so there will be nginx configuration etc
sudo wo site create dev.domain.com --wpfc --letsencrypt --force
Delete contents of htdocs
sudo rm -r /var/www/dev.domain.com/htdocs/*
Deleting the wordpress installation results in a 403 error when trying to access the domain. Therefore, the plugin fails to create the staging site.
What can I do to get this to work? I have to install the staging site on a subdomain so that all of my plugins can be activated.
Thank you!