Running a WordPress site on your local machine is a great way to do development. I’ve taken advantage of this to do development while on flights (and yes, I realize that in about 5 years it’s going to seem positively quaint that there used to be flights without Internet access).
Today, I’d like to tackle two common issues when running a WordPress site locally:
- Handling differing database connection details
- Handling plugins that can’t or shouldn’t run on a localhost
- You have your site in a Git repository
- You have a working LAMP/MAMP/WAMP/whatever setup.
- You already know how to do a mysqldump and import that dump to your local machine
Database connection details
Your database user and password are (or should) be different on your localhost than they are on your production environment. One way to handle this is to have
wp-config.php not be in version control and have…
View original post 287 more words