replicating an installation

Having trouble installing serendipity?
Post Reply
gwilsonmail

replicating an installation

Post by gwilsonmail »

I had created a blog layout that I was very happy with, it included a stock template and I had added in an number of plugins and I changed the order and position of a number of items.

Not wanting to repeat this long process for another blog i was creating I copied the entire directory structure to the new blog location. I setup the file permisison and defined a new database for the new blog.

I deleted config_local.inc.php and ran the index.php file once again. All looked well. It failed to create the .htaccess file in the new location and told me to cut and past and make my own. This I did.

After adding .htaccess to the new blog I reloaded index.php and got a rather messy webpage that seemed to be missing the .css template etc.

i went back and looked at my old blog - it was also messed up and no longer displayed any entries!

It seems in making the changes to my new blog the config file for my old blog is now pointing at the new empty database.

i checked with phpadmin and my original sql data is still there, the files are just not pointing to the right place.

I thought it would be a good thing to back all this up by ftp'g the files back to my PC. Some of the files won't transfer and I can't look at them. They are owned by "apache" and not by my username or root. I can't seem to change the permission and have asked my ISp for help.

Once I get the file permission sorted out what is my best option for fixing the config files of my original/old site so they point at the old database?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: replicating an installation

Post by garvinhicking »

Basically you just have to:

1. Ensure your "serendipity_config_local.inc.php" file contents points to the right database (with right dbPrefix, username and all).

Every blog needs to have its own "dbPrefix" space, so that you use "serendipity1_" for your first blog and "serendipity2_" for your second blog.

2. Then make sure your serendipityX_config table has the right config values for "serendipityPath", "baseURL", "serendipityHTTPPath". Those are needed to display the right paths.

That means, after having installed the second blog you need to ensure that every blog has its own database tables...

And only "serendipity_config_local.inc.php" and the "config" database table hold specific installation contents; all other files are unrelated to an installation.

HTH and Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply