Question
Hi,
I have one installation twiki/ under the documentroot. i created one more mine/ parallel to the twiki/ to do some testing. I ran configure inside mine/, changed all the path variables, gave a new tmp dir and saved. But, the current installation under twiki/ started misbehaving and the links were pointing to the corresponding ones under mine/ for all the users. This created a confusion and finally I had to remove mine/ and rerun twiki/bin/configure and restored the paths. Why it happened? How can I run a test installation and production one side by side.
Thanks in advance
Umapathy
Environment
--
UmapathyS - 23 Jan 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Is your "lib" directory somehow symbolically linked to the same place from both TWiki installations? bin/configure stores the settings in lib/LocalSite.cfg If both installations are referencing the same file you'd have problems like this.
--
GeorgeClark - 25 Jan 2008
Thanks for the respone. I suspected that and already checked it out. Both are different dirs/files. I just copied the whole twiki/ production to a testing dir mine/ There are no softlinks or hardlinks.
--
UmapathyS - 25 Jan 2008
Problem might be that in configure there is also noted the path to the configuration file (
LocalSite.cfg) itself. So if you change all the settings/paths in your new configuration (/mine), the settings are saved to the old configuration file (in /twiki) and not to the new one (in /mine), because you called the configure script with these pathes. So you can solve it in two ways: Manually changing the settings in
LocalSite.cfg (/mine) or doing reconfiguration in two steps; first change path to
LocalSite.cfg, then save and then change all the other paths/settings. Should work..
--
IngoBlickling - 26 Jan 2008
Forgot something, sorry. If you do the reconfiguration in two steps, you still have to manually change the path to the
LocalSite.cfg in /twiki installation afterwards.
--
IngoBlickling - 26 Jan 2008
Thanks.
--
UmapathyS - 28 Jan 2008