Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
186 views
in Technique[技术] by (71.8m points)

XAMPP + Wordpress -- How to copy an existing site to edit locally

I'm attempting to get an existing wordpress website on my local device.

I'm also doing this "blind" meaning no one really knows the set up of this thing.

I've managed to FTP all the files from our hosting service. The issue is I can't seem to actually get the website to match what exists in prod. I initially thought it was a matter of me using a dummy DB rather than a copy of our prod db, or simply pointing XAMPP at the prod DB (which I am also curious how to do). I'm not sure this checks out since there seems to be content on the website that would not live inside a db.

My questions are as follows:

  1. Is there a good tutorial on how to port an existing wordpress site to your local device? I cannot seem to find anything that reasonably outlines this and is up to date. The one I found uses a plugin called "duplicator" which im unable to use successfully on the site. I'm not sure how this would differ from me simply grabbing the relevant files.

  2. After FTPing them -- I was brought to the wordpress install page locally. Similarly to what happens when you just download a clean WP version. Is this expected even with an existing site?

  3. I will certainly eventually need to hook this to our DB. Is there anyway to simply point XAMPP at a prod DB?

Thank you! Happy to provide any follow ups. I have a fair amount of dev experience, but I do not do web dev, and most of my experience have been in robust enviornments where I generally dont have to worry about these issues. Thank you!

question from:https://stackoverflow.com/questions/65835450/xampp-wordpress-how-to-copy-an-existing-site-to-edit-locally

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Well, the easiest method is to use the Duplicator plugin. The link below will give you instructions on how to move files using the plugin and moving the files manually.

https://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...