Title: Setting up a development install/environment
Last modified: August 18, 2016

---

# Setting up a development install/environment

 *  [csautot](https://wordpress.org/support/users/csautot/)
 * (@csautot)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/setting-up-a-development-installenvironment/)
 * The problem that I have with trying to set up a development environment is that
   WP stores the site’s URL and directory location in the database. So if you have
   your development version set up at a different URL (say at localhost or dev.yoursite.
   com) the linking between pages will not work. One solution that I came up with
   is to use 2 separate databases. This way the settings for the 2 sites can be 
   stored in the database that corresponds to it. I don’t like this method and wish
   there was an easier way. Does anyone have a solution to the issue of WP storing
   site-specific settings in the database? Do you sync 2 databases or have you found
   a solution to use 1 database for both your production site and dev site?

The topic ‘Setting up a development install/environment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [csautot](https://wordpress.org/support/users/csautot/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/setting-up-a-development-installenvironment/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
