Page 1 of 1

How to install a replica of blog with a new database

Posted: Tue Jul 05, 2005 9:12 am
by gwilsonmail
After my troubles with replicating a blog to maintain the design and layout etc as described in http://www.s9y.org/forums/viewtopic.php?p=9684#9684 I'd like to ask what the correct method for doing this.

So the isue is this ... You setup a blog, get the layout as you want it, add in your site statistics, google and amazon links through a variety of plugins. You might even have entered some blogs etc.

Now you want to make a new blog, but you want to reuse the same structure as this first blog. Obviously you want to point to a new database.

Assuming it's possible how do you go about doing it (the right way).

thank you in anticipation.

Re: How to install a replica of blog with a new database

Posted: Wed Jul 06, 2005 12:32 pm
by garvinhicking
I would go about like this:

Say your base blog is installed in "/blog" and the prefix to your database is "serendipity_".

Now you do:

1. Copy /blog to /blog2 with all directories and all files

2. Using phpMyAdmin, copy each serendipity_* table to serendipity2_*, with structure + data.

3. Browse the serendipity2_config table and adjust the values of serendipityPath, serendipityHTTPPath, dbPrefix and baseURL to point to /blog2

4. Edit /blog2/serendipity_config_local.inc.php and change the dbPrefix to serendipity2_

That should be it, your blog2 will now be usable with the exact contents of blog - but from now on they can be maintained on their own.

Regards,
Garvin