WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Installs, Single Database? (9 posts)

  1. jpettit
    Member
    Posted 9 years ago #

    I'm interested to know if there are any issues or potential problems with installing WordPress 1.5 into multiple directories, and then use the same single database (same tables).
    I would like to have multiple themes setup so that i can develop in one directory and run production in the other. Since both installs will use the same tables and data, content would be identical.
    There is this wiki regarding multi blogs and multiple tables (using prefix), but i'm not interested in creating more tables, with different data sets.
    http://wiki.wordpress.org/?pagename=MultipleBlogs
    Thanks in advance!

  2. Don't follow that out-of-date resource. Follow this one:
    http://codex.wordpress.org/Installing_Multiple_Blogs

  3. And, for switching themes, you could just use a theme switcher plugin.

    http://dev.wp-plugins.org/browser/theme-switcher/trunk/

  4. jpettit
    Member
    Posted 9 years ago #

    thanks macmanx for the reply.
    I'm not looking to have the 2nd install visable or useable by readers...just a 2nd copy that i will play with and develop with.
    it would seem to me that it should matter to have a 'copy' but you never know.

  5. If you can get your hand on a second MySQL database, I'd recommend that. Once you do, just install WordPress, backup your original site's database, and then restore it into the new site's database. Thus giving you two blogs with the same content. For instructions on backup and restore, see the tutorial here:

    http://tamba2.org.uk/wordpress/

  6. Arlo
    Member
    Posted 9 years ago #

    I would like to do the same thing as the OP, but instead of multiple blogs, is it possible to have more than one theme folder used at a time? For example, I would have my live site using themefolder1, and I would have a separate index file point to themefolder2...doable?

  7. Kafkaesqui

    Posted 9 years ago #

    ahem
    Some benefits of using Theme Switcher for testing themes:

    1. It uses your existing blog setup, so
    2. There's no need for additional installations, or
    3. No need for a test platform running locally, and it
    4. Doesn't require complicated hacks to "fake" it.

    To use for testing themes, don't add the tag into your sidebar. Just call the theme up through an url query:

    yoursite.com/yourblog/?wptheme=Name Of Test Theme

    If you already use Theme Switcher and want to provide it to readers, yet want to *hide* test themes, the current version of WordPress (and version 0.3 of Theme Switcher) supports the Status theme header in style.css, so by adding:

    Status: draft

    to your stylesheet, Theme Switcher will not display that theme for selection.

  8. Arlo
    Member
    Posted 9 years ago #

    AH! I didn't "get it"--I thought switching was global..if I can do that locally without affecting the default theme, this is perfect :)

  9. joshteeters
    Member
    Posted 9 years ago #

    Thanks Kafkaesqui! I was wanting to do the same thing (install a 'testbed' for WordPress, and use my existing DB).

    This is much, much better.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.