Tags:
create new tag
view all tags

Are others interested in having a $TWikiRoot variable in TWiki4x00?

Currently TWikiDotCfg uses separate paths for setting each of PubDirectory, LibDirectory, DataDirectory. This proposal would cater to those (majority?) who install under a common top level directory.

Should there be a twikiroot variable?
Do you agree or disagree? Please select one of the radio buttons below and click the button.
I No way   Not as default   Don't care   Yes please   Of course!!  


| 5 | MartinCleaver | 13 Feb 2006 | |

Should be called $twikiroot?
Do you agree or disagree? Please select one of the radio buttons below and click the button.
I No way   Not as default   Don't care   Yes please   Of course!!  


-- MartinCleaver - 02 Oct 2004

If the pubDir, libDir, dataDir, pubDir and templateDir are keep, and all in on this proposal. This ease the twiki maintenance and migration from server to server (just fewer prefs to modify).

-- RafaelAlvarez - 02 Oct 2004

It would simplify things for standard installations. However, you can't assume a flat directory structure for TWiki. An upgrade script can discover the directories if starting from the bin directory:

  • lib from bin/setlib.cfg
  • template, data and pub from lib/TWiki.cfg

IMO voting here is premature.

-- PeterThoeny - 03 Oct 2004

No we can't assume a flat directory structure, however the shipped TWiki.cfg is a flat directory structure, so this change will not make any impact on those who do split things out (they still have the same number of edits to make).

-- MattWilkie - 26 Jan 2005

Peter, the change will not hamper scripts to discover the paths as before. And non-standard installs would not have any more work as now.

Moreover, all plugins assume a flat directory structure already.

-- ColasNahaboo - 27 Jan 2005

Lines to be edited using the suggested cfg change, for a flat install:

$twikiRoot = "/home/httpd/twiki/r3576";
$cfg{$PubDir}           = "$twikiRoot/pub";
$cfg{$TemplateDir}      = "$twikiRoot/templates";
$cfg{$DataDir}          = "$twikiRoot/data";
$cfg{HtpasswdFileName}  = "$twikiRoot/data/.htpasswd";
$cfg{$LogDir}           = "$twikiRoot/logs";

Edits needed for current config with a non-flat install:


$cfg{PubDir}             = '/home/httpd/twiki/pub';
$cfg{TemplateDir}        = '/home/httpd/twiki/templates';
$cfg{DataDir}            = '/home/httpd/twiki/data';
$cfg{RemoteUserFileName} = '/home/httpd/twiki/data/remoteusers.txt';
$cfg{HtpasswdFileName}   = '/home/httpd/twiki/data/.htpasswd';
my $logDir               = '/home/httpd/twiki/logs';

So, to summarise, this has no impact on admins who need to split things up, and make things a lot simpler for those who want in all under one root. So why not add $twikiRoot?

-- MattWilkie - 27 Jan 2005

see TWikiDotCfgNeedsGardening for why this won't work with the current code (basically since there are 3 places for cfgs to get set, and LocalSite.cfg is the last it won't get picked up all the time).

-- MattWilkie - 01 Feb 2005

This is made redundant by configure in Dakar release.

-- CrawfordCurrie - 13 Feb 2006

Not sure it has, but I've deleted all the votes to re-test the issue.

-- MartinCleaver - 13 Feb 2006

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2006-02-13 - MartinCleaver
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.