We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I'm trying to install the Dakar Release from 06-Nov-2005. This is not my first TWiki install but my first of Dakar. I've followed the steps for configuring apache, then brought up the configure script in a web browser. I set the basic variables that need setting, save, and then I find nothing has been saved. I can't seem to see why it isn't saving the modified settings.

Environment

TWiki version: TWikiRelease2005x11x06x7338beta
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Redhat Linux EL 3
Web server: apache 2.0.46-25
Perl version: 5.8.0
Client OS: Windows XP
Web Browser: IE 6
Categories: Installation

-- AndrewSteele - 01 Dec 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

  • First, check the access permissions to LocalSite.cfg and to the lib directory. Both have to be writeable by the user id of the web server, but after an install it's usually you who owns them.
  • In Dakar the changes are no longer saved in TWiki.cfg. Instead, there is a separate file LocalSite.cfg in the same directory which holds your local changes.
  • If your configure script is running under mod_perl, the configuration might appear unchanged though it has been saved to disk. You might need to restart the web server.

-- HaraldJoerg - 01 Dec 2005

I've checked the items recommended:

  • LocalSite.cfg and the lib directory are writeable (I'd run chown -R apache:apache twiki).
  • I had used the LocalSite.cfg file rather than changing TWiki.cfg.
  • I did have mod_perl loaded. I've now turned that off and restarted the webserver.
Still no luck.

One further piece of info. When I load the configure page, there's the following warning up the top of the page:

WARNING:
Error: LocalSite.cfg is unreadable or has a configuration problem that is causing a Perl error - the following message(s) was generated:

require failed:

The @INC path is /m/httpd/twiki/lib/CPAN/lib//arch/:/m/httpd/twiki/lib/CPAN/lib//5.8.0/i386-linux-thread-multi/:/m/httpd/twiki/lib/CPAN/lib//5.8.0/:/m/httpd/twiki/lib/CPAN/lib//:/m/httpd/twiki/lib:/usr/lib/perl5/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/5.8.0:/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.0:/usr/lib/perl5/site_perl:/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.0:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/5.8.0:.

-- AndrewSteele - 05 Dec 2005

I think it's fixed. It seems the solution was to delete the LocalSite.cfg file. I thought I'd tried this earlier but maybe I'd just copied it. Anyway, for Developers who may find it useful, I'm including both the working and broken LocalSite.cfg to look at.

Broken LocalSite.cfg the blank lines were in the file.

# cat LocalSite.cfg.1
$TWiki::cfg{NameFilter} = qr((?-xism:[\s\*?~^\$@%`);
$TWIKI::cfg{WarningsAreErrors} = $TRUE;













$TWiki::cfg{DispScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{PubDir} = '/m/httpd/twiki/pub';
$TWiki::cfg{PubUrlPath} = '/twiki/pub';
$TWiki::cfg{DefaultUrlHost} = 'http://hostname';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';
$TWiki::cfg{TemplateDir} = '/m/httpd/twiki/templates';
$TWiki::cfg{Password} = 'XXXXXXXXXXXXX';
$TWiki::cfg{ScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{DataDir} = '/m/httpd/twiki/data';
$TWiki::cfg{LocalesDir} = '/m/httpd/twiki/locale';
1;
# 

The correct LocalSite.cfg :

# cat LocalSite.cfg  
$TWiki::cfg{DispScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{PubDir} = '/m/httpd/twiki/pub';
$TWiki::cfg{PubUrlPath} = '/twiki/pub';
$TWiki::cfg{DefaultUrlHost} = 'http://hostname';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';
$TWiki::cfg{TemplateDir} = '/m/httpd/twiki/templates';
$TWiki::cfg{Password} = 'XXXXXXXXXXXXXX';
$TWiki::cfg{ScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{DataDir} = '/m/httpd/twiki/data';
$TWiki::cfg{LocalesDir} = '/m/httpd/twiki/locale';
1;

In Summary: If you're having problems, try deleting LocalSite.cfg and start again.

-- AndrewSteele - 05 Dec 2005

Ouch. You've been stumbling over an error in bin/configure which has been fixed in SVN some weeks ago.

You have written LocalSite.cfg with a modification in $TWiki::cfg{NameFilter}, and /bin/configure has created a syntactically invalid file. Deleting the bogus line (the first in your broken file) would have been sufficient.

-- HaraldJoerg - 05 Dec 2005

See related UnmatchedBracketInRegex.

-- PeterThoeny - 10 Jan 2007

 
Topic revision: r8 - 10 Jan 2007 - 18:18:39 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback