Tags:
create new tag
view all tags

Question

This is my first time to setup Twiki on my web server. After getting the testenv script, it reports tons of error messages. I have no idea how to figure it out.

Is there anybody can help me?

You may try the following url to get the error message:

http://neoworld.unl.edu/twiki/bin/testenv

BTW, I am using the LocalLib.cfg and LocalSite.cfg.

> cat LocalSite.cfg
# Example site-specific configuration file for TWiki, held in 'lib' directory. # # This is distributed as LocalSite.cfg.txt - if for some reason you can't, # or don't want to, use configure to manage your site configuration, you can # copy this file to LocalSite.cfg edit it manually. # # LocalSite.cfg overrides TWiki.cfg, so there is no risk of your settings # being overwritten when you upgrade. # # Only the most commonly used settings are listed in LocalSite.cfg.txt # See TWiki.cfg to copy across the other (seldom changed) settings # # Use 'LocalLib.cfg' in the 'bin' directory to configure non-standard # locations for the 'lib' directory or Perl modules. #

# NOTE: If your server is running Microsoft Windows, paths should # normally be written as "c:/foo" not "c:\foo" (which doesn't do what # you may think it does). You can use '\' without problems inside # single quotes, e.g. 'c:\foo'.

# If LocalSite.cfg is used (and it should be), then all the # following paths muct be defined.

# URL for TWiki host e.g. http://myhost.com:123 $cfg{DefaultUrlHost} = 'http://neoworld.unl.edu';

# cgi-bin URL path for TWiki e.g. /twiki/bin $cfg{ScriptUrlPath} = '/twiki/bin';

# Attachments URL path e.g. /twiki/pub $cfg{PubUrlPath} = '/twiki/pub';

# Attachments store file path (not URL), must match /twiki/pub e.g. # /usr/local/twiki/pub $cfg{PubDir} = '/home/twiki/pub';

# SECURITY NOTE: Directories twiki/data , twiki/templates and all their # subdirectories should be set so that they are not visible through # URLs. (Alternatively, move the directories to a place where they are # not visible, and set the paths here as appropriate)

# Template directory e.g. /usr/local/twiki/templates $cfg{TemplateDir} = '/home/twiki/templates';

# Topic files store (file path not URL) e.g. /usr/local/twiki/data # TWiki will use this path to base other defaults, such as the location # of password files. $cfg{DataDir} = '/home/twiki/data';

# TWiki.cfg will use this path to default where to put log files, unless # you override individual paths here. $cfg{LogDir} = $cfg{DataDir};

1;

> cat LocalLib.cfg
# # TWiki Collaboration Platform, http://TWiki.org/ # # For licensing info read license.txt file in the TWiki root. # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details, published at # http://www.gnu.org/copyleft/gpl.html # # LocalLib.cfg: local path settings for TWiki #

use vars qw( $twikiLibPath $CPANBASE );

# -------------- Path to lib directory containing TWiki.pm. # # REQUIRED # The absolute path to the 'lib' directory in your installation..

$twikiLibPath = '/home/twiki/lib';

# -------------- Extra path components to include in @INC # OPTIONAL # If you need to use perl modules that are not installed in the standard # directories (e.g. you have downloaded extra modules for use with plugins) # then you can add the absolute paths to those modules below. You can list # as many directories as you want, separated by commas.

# @localPerlLibPath = ( '/home/twiki/lib' );

# http://www.perl.com/pub/a/2002/04/10/mod_perl.html?page=3 has good advice # on installing CPAN modules without superuser privileges.

# -------------- Only needed to work around an Apache 2.0 bug on Unix # OPTIONAL # If you are running TWiki on Apache 2.0 on Unix you might experience # TWiki scripts hanging forever. This is a known Apache 2.0 bug. A fix is # available at http://issues.apache.org/bugzilla/show_bug.cgi?id=22030. # You are recommended to patch your Apache installation. # # As a workaround, uncomment ONE of the lines below. As a drawback, # errors will not be reported to the browser via CGI::Carp any more.

# open(STDERR, ">>/dev/null"); # throw away cgi script errors, or # open(STDERR, ">>/tmp/error.log"); # redirect errors to a log file

1; # Required for successful module loading

Environment

TWiki version: TWikiRelease2005x11x06x7338beta
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FC3 Linux, kernel 2.6.9 SMP
Web server: Apache/2.0.54
Perl version: perl, v5.8.5
Client OS: FC Linux, kernel 2.6.9
Web Browser: Firefox 1.0.7
Categories: Installation

-- ChenghuanJia - 08 Dec 2005

Answer

ALERT! 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.

Please run /bin/configure and have a look at the error messages there. Does the file /home/twiki/lib/TWiki.pm exist? Has the user id running your web server read access to all directories under /home/twiki? Or is there some problem between your URL and file namespaces?

-- HaraldJoerg - 09 Dec 2005

Thanks, after running the configuration, it points me out some errors and warinings. Now, it is fixed. But the testenv still shows some strange information about the directory stuffs ...

-- ChenghuanJia - 10 Dec 2005

Since Dakar release, testenv is replaced by configure, you can safely remove testenv.

-- PeterThoeny - 10 Dec 2005

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2005-12-10 - PeterThoeny
 
  • 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.