replicating an installation
Posted: Tue Jul 05, 2005 9:06 am
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?
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?