WordPress.org

Ready to get started?Download WordPress

Forums

multiple copies of WordPress blog (8 posts)

  1. skystar1111
    Member
    Posted 2 years ago #

    I want to set up multiple copies of WordPress on same server. it is Windows Server 2008 with IIS.

    what are the steps, I don't want to use any widget.
    I want to set up this manually.

    thanks in advance for your help!

  2. Read http://codex.wordpress.org/Create_A_Network

    That will create a network of sites.

    If you then want to copy the sites, there are plugins for that like Blog Copier.

  3. skystar1111
    Member
    Posted 2 years ago #

    I don't know if Network solution is good for me. I also want two different database, I think in network, you can only have one database.

    Here is more explanation what I am doing:

    on my local machine, I set up two blogs.

    Step 1:I set up two sites as follow:
    http://test1/
    http://test2/
    Step 2:two databases:
    wordpress1
    wordpress2

    step 3: change the db information in the wp-config.php for each site
    For http://test1/ as follow:

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress1');
    
    /** MySQL database username */
    define('DB_USER', 'test1_user');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'test');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    For http://test2/ as follow:

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress2');
    
    /** MySQL database username */
    define('DB_USER', 'test2_user');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'test');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    step 4: change the site URL in the wp-config.php for each site
    For Test1:

    define('WP_HOME','http://localhost');
    define('WP_SITEURL','http://localhost');

    For Test2:

    define('WP_HOME','http://test2');
    define('WP_SITEURL','http://test2');

    here only one site is working with URL http://localhost, but not the other one with URL http://test2.

    So thing is that that only localhost URL is working, not any other, even I follow same steps for other site too.
    Is it even possible?
    Do I need to change php.ini file?
    I do not want to do this on my production server, only on my test server.

  4. John
    Member
    Posted 2 years ago #

    Can you help me visualize the purpose? Are you trying to set up a staging environment or play with a development copy of WP without harming the production site? Or are you trying to set up some sort of redundancy?

  5. skystar1111
    Member
    Posted 2 years ago #

    I have two servers, production and test.
    I am not doing any thing to production server. production blog site

    On my test server, I want to set up two copies of same blog.
    - one copy for staging blog site
    - another copy for test blog site

    So when I will get request to change any thing, I will :
    - do changes on test blog site
    - if every thing good with test blog site, then move to staging blog site
    - and at the end do changes on the production blog site

  6. John
    Member
    Posted 2 years ago #

    Take a peek at this, it still uses one database for your local install, but is geared toward your testing purpose.

    There are actually quite a few staging solutions. If necessary we can keep looking.

  7. skystar1111
    Member
    Posted 2 years ago #

    thanks John

    I found the solution by modifying the HOSTS file

    Here is the blog, doing the same thing except I am not using XAMPP

  8. I also want two different database, I think in network, you can only have one database.

    Just to clarify here: If you are not using Multisite, you are in the wrong sub-forum :) This is only for multisite networks.

    Now you can use multiple DBs, via HyperDB or SharDB, but I don't recommend it for small sites.

Topic Closed

This topic has been closed to new replies.

About this Topic