Title: Two Installs, Same Database
Last modified: August 20, 2016

---

# Two Installs, Same Database

 *  [hob](https://wordpress.org/support/users/jaechick/)
 * (@jaechick)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/two-installs-same-database/)
 * I’d like to have two installations of wp running from the same database; one 
   public facing, read only & without /wp-admin, the other internal facing and (
   ideally) write only. While it seems like a relatively simple setup I can’t find
   any documentation about setting this up.
 * What I’m trying to achieve is an environment where a client will log into his
   site at login.domain.com, produce content there which populates the db which 
   then publishes to domain.com for reading. His site regularly get’s hacked and
   I’m attempting to secure.
 * I’m getting hung up on the _options table which in my best estimation would have
   to be unique to each install to allow for different urls per install. I came 
   across [this](http://wordpress.org/support/topic/two-sites-two-themes-one-database-same-content?replies=19#post-398505)
   which seems a relevant though dated solution.
 * Anyone have any suggestions or advise for achieving this? Is this concept sound?
   Is there a simpler method to achieve this?

Viewing 1 replies (of 1 total)

 *  [toocoolone](https://wordpress.org/support/users/toocoolone/)
 * (@toocoolone)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/two-installs-same-database/#post-2877771)
 * Here’s a few articles I found surfing around that might help you…
    - [Relocate](http://www.devlounge.net/code/protect-your-wordpress-wp-config-so-you-dont-get-hacked)
      your `wp-config.php` file. This helps protect your database password.
    - You can [use .htaccess](http://www.michikono.com/2007/02/12/who-else-wants-to-hide-their-wordpress-admin-folder/)
      to hide your `wp-admin` folder on the public site as well. This will hide 
      the login from public view unless they know the secret URL.
 * Blocking access to wp-admin is okay, but there are some dependancies that WordPress
   likely will still need on your public site. But these methods don’t require a
   subdomain unless you just want one.
 * I’ve not tried these solutions, but they seem solid to me and I probably will
   at some point in the future.

Viewing 1 replies (of 1 total)

The topic ‘Two Installs, Same Database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [toocoolone](https://wordpress.org/support/users/toocoolone/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/two-installs-same-database/#post-2877771)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
