Copy of a magento site

Hi

I have a magento site with its database sized about 1,4GB. This is my production site.

In order to make tests, I would like to copy this site to my developer server. I have fully backed-up database from phpMyAdmin on my productio nsite and I have created an empty instalation of magento on my developer server.

What should be next steps so I can have an exact copy of my production site on my developer site but without any of them interfearing each other if I made a change?

Thank you.
LVL 15
gplanaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerCommented:
Ideally, you'd have your DNS configured that the original url will point to your developer site. Also, your myqsl database would need the same credentials and rights for the magento database.
If possible, also use the same physical disk location for the files (for instance /var/www etc).
0
gplanaAuthor Commented:
Thank you, but what if on my developer machine is installed under a folder? So the URL has this folder too (not installed on htdocs root folder).
Also database credentials are different, and of course physical disk location is different too.
Is there a config file on magento where I can change these settings?
Can I just copy files and database and edit this config file and all will work?

Thank you.
0
GaryCommented:
Install (import) the db sql on the new server.
Then you just need to load Magento in your browser and continue as a new install.
But if you have copied the code from your other install then you will need to go into
app/etc
and remove or rename local.xml
0
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

gplanaAuthor Commented:
I have looked at local.xml but it seems BD credentials are not there. Where could they be?
0
GaryCommented:
What do you mean BD?
0
gplanaAuthor Commented:
Sorry, I mean DB (=Database)
0
GaryCommented:
When you moved it over did you rename local.xml to something like local.xml.old and then run through the installation process again?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gplanaAuthor Commented:
No. I will try that and let you know. Thanks.
0
gplanaAuthor Commented:
Excellent. It works!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.