I have a completely live eCommerce WordPress website, I want to run the code locally so that I can debug the code. If it's not possible, is there any other best approach in this case? I want to make development easier. Right now after every code change I need to update through FileZila and refresh staging pages to see the modifications and its difficult to debug too.
Asked
Active
Viewed 55 times
0
-
There are so many tutorials and guides about this, did you try searching? If your use case is somehow different, you need to explain specifically what you need, what you tried, what happened, etc. Check out [how to ask](https://stackoverflow.com/questions/how-to-ask), and how to create a [minimal, complete, and verifiable example](https://stackoverflow.com/help/mcve). – Don't Panic Mar 19 '20 at 23:47
-
I have a wordpress website. I wanted to make modifications to the page templates. I would like to know the best practice for such a development process as a developer that I should know – Nithin Suresh Mar 19 '20 at 23:57
2 Answers
1
- Install local development: https://github.com/wordpress/wordpress-develop
- Copy your themes and plugin folder to development.
- Migrate database.

An Nguyen
- 190
- 6
-
Thanks for that. I'm having a huge database so its not working for me to make a local copy of the same. What should I do in this case ? – Nithin Suresh Mar 20 '20 at 15:24
-
@NithinSuresh You just need to import db via commandline: https://stackoverflow.com/questions/17666249/how-do-i-import-an-sql-file-using-the-command-line-in-mysql – An Nguyen Feb 04 '21 at 02:56
1
Downloaded local environment: https://www.apachefriends.org/index.html
Increase file size for local environment: https://w3guy.com/fix-size-xampp-installation-folder-size/
Install WordPress: https://www.wordpress.org
Install themes and plugins
-
Thanks for that. I'm having a huge database so its not working for me to make a local copy of the same. What should I do in this case ? – Nithin Suresh Mar 22 '20 at 13:25