Running CiviCrm on a separate domain on the same server
On my production server (Ubuntu) I have a Wordpress and also a CiviCrm database.
My aim is to have a staging server on the same server but as a separate domain. I have been able to successfully copy my production Wordpress files to the staging server and get to it from the internet. That is I can get to the entire staging website from the internet. The problem that I am having is setting up CiviCrm in its separate db on the staging server. I use Plesk on this server and used Plesk to setup a staging server/subdomain.
Plesk copied all the files from Prod to the staging server in sub-directory structure - /var/www/vhosts/example.org/subdomain.example.org. My prod files are in /var/www/vhosts/example.org
I have copied the civicrm db from prod to staging and given it a different name, user and password. (civicrmstaging)
My questions are
- What CiviCrm files do I need to change in the staging environment? Is it only civicrm.setting.php?
- what statements in civicrm.setting.php do I need to change? I have changed the user and sql database password for civicrmstaging db in civicrm.setting.php
- Do I need to change something within the CiviCrm sql tables?
- are there any other files that needs to be changed in the staging environment?
I cant seem to find the appropriate docs for my setup scenario.
Any help would grateful.