Loading...
 
Skip to main content

Architecture / Installation


migrate tiki OR setup tiki on an existing non-tiki site

<I>I have a subdirectory of my site currently successfully running an instance of tiki. Most of my current site consists of static pages. I would like to utilize the consistent navigation of the wiki area site-wide.</I>

1) I would ideally like to migrate my wiki up one level to root, then simply redo the navigation.

--> Is migrating an instance of tiki problematic? How is it done?

<BR><BR>

2) If migrating is not possible, I would create a new tiki at root level. I would not however want the root level tiki visible by site visitors until I'm done fixing my current site to work with it.
<BR><BR>
--> If migrating is problematic, how do I keep root tiki non-accessible during development?

Most of the site's data is stored in the database, so the change in Tiki root location won't affect your data, generally speaking. You can put (upload/install) another set of Tiki files to your root directory. If you're not running the current version (1.9.7 will be out real soon), this would be a good chance to upgrade.

Needless to say, back up your current Tiki. This means the database and any custom versions/modifications you might have made to files that are part of the Tiki archive.

Most of the site's data is stored in the database, so that'll basically remain as is. If you have uploaded images using the editpage form (while creating/editing a wiki page), then the files in (current_subdirectory)/img/wiki_up/ will have to be moved to the new (web_root)/img/wiki_up/ directory.

One possible complication involves images and other files in galleries if these are currently stored in the filesystem — where to store gallery images and other files is a configuration choice, either database or directory. I think this won't be a problem, because I believe paths are relative to the Tiki root, so the relationship should be the same after the move.

Any files uploaded to galleries and stored in the file directory will have to be moved to the new location — if you made the "store in file directory" choice you had to specify a path to the directory used, and so this path (i.e., the directories used) must be valid in the new Tiki location.

After putting the fresh set of Tiki directories/files in your web root directory, copy from the former Tiki the db/local.php file and put it in the new installation's db/ directory, to give the new installation the database connection info, and try logging in at the new location.

I think that's it. The first Tiki should continue to work fine while you're adding the second one — nothing there gets changed by the process. If your current web root directory has an index.php file, installing Tiki there will over-write that file, so you should be sure to have a local version of it if you want to preserve it. Tiki displays begin with index.php, so during the install/move process, if you put an index.html file in the web root — which has priority over any index.php file — the Tiki installation will be "hidden" from casual users. (Of course if someone types in "tiki-index.php" they'll see your fresh Tiki install, but that's probably unlikely.) If your current web root uses an index.html rather than index.php, your site will continue to function as it is since the index file will keep the Tiki display from showing unless the visitor explicitly uses the index.php url.

-- Gary


couldn't have done it w/o your help.

for other people doing this, I also had to:
.rename root images directory & robots.txt file.
.copy over my custom look to directories: styles & templates.
.reset some of the general preferences which had gone back to default.