I am trying to run a live website built on Drupal on my PC XAMPP server. I copied the website's root directory and exported the database.
On second PC (Windows 10), I installed XAMPP server and created the database and imported the sql file and placed the website in the folder C:/xampp/htdocs/
I also changed the config file database settings to use my localhost database and its credentials.
Everything seem fine, but when I run the website as localhost/mysite. It is showing a fatal error.
I expected the drupal site will open normally. But it doesn't.
So, without going in to the technical details. I want to know that did I made any mistake or forget to correctly setting up the environment in my PC.
Does the Drupal meant to be first backed-up and then we need to restore it on a Drupal environment? in other words, Is it perfectly ok to just copy and paste the code and import database and it will run?
My XAMPP PHP version is 7.x. So will it be a problem? Note: My server is using PHP 5.6 version.
What are changes I need to do to make it run normally?