• 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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Read https://codex.www.ads-software.com/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.

    Thread Starter skystar1111

    (@skystar1111)

    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:
    https://test1/
    https://test2/
    Step 2:two databases:
    wordpress1
    wordpress2

    step 3: change the db information in the wp-config.php for each site
    For https://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 https://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','https://localhost');
    define('WP_SITEURL','https://localhost');

    For Test2:

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

    here only one site is working with URL https://localhost, but not the other one with URL https://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.

    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?

    Thread Starter skystar1111

    (@skystar1111)

    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

    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.

    Thread Starter skystar1111

    (@skystar1111)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘multiple copies of WordPress blog’ is closed to new replies.