Tags:
create new tag
view all tags

Question

I've just installed a TWiki from scratch using these steps that I wrote earlier to standardize my TWiki installations. I've used this recipe with success before, and I followed the recipe exactly as noted (except the URL redirect is commented out) and I arrived at the step titled Check the finished setup when I got the error Warning: 'TWiki.pm' not found.

Something must obviously be different but I can't track down what it may be. The error log and warning log are both empty. I am attaching the current output from testenv and also the current TWiki.cfg and setlib.cfg files for reference. Since this a hosted install, I can't access the server logs themselves.

On searching for this issue here in the Support web, I found that TestEnvQuitsAfterUseTwikiPm sounds similar but really isn't similar after all because the testenv script actually runs. If I try to access the view script by visiting e.g. http://gbdk2006.beta.g-b.dk/bin/view I get a
Software error:

TWiki/Access.pm did not return a true value at ../lib/TWiki.pm line 190.
BEGIN failed--compilation aborted at ../lib/TWiki.pm line 190.
Compilation failed in require at ../lib/TWiki/UI/View.pm line 31.
BEGIN failed--compilation aborted at ../lib/TWiki/UI/View.pm line 31.
Compilation failed in require at view line 36.
BEGIN failed--compilation aborted at view line 36.

The URL is http://gbdk2006.beta.g-b.dk and that is mapped to the server location /home/gbdk/gbdk2006/ where the TWiki is installed in the root, i.e. not in a /twiki/ subfolder, so http://gbdk2006.beta.g-b.dk/bin/testenv = /home/gbdk/gbdk2006/bin/testenv.


Also, it seems that the testenv is stopping prematurely. Compare this testenv with for instance http://fingerfans.dreamhosters.com/bin/testenv which was created using the same recipe. Note that this other testenv continues beyond the section about User Authentication and also includes Internationalisation and Locale Setup. What is causing my testenv here to stop early?

-- TorbenGB - 29 Jul 2005

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: Only the default plugins
Server OS: Debian Linux (hosted)
Web server: Apache 1.3.x (hosted)
Perl version: 5.6.1
Client OS: Windows
Web Browser: IE, Firefox
Categories: Hosting, Installation, Fatal error

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.

What happens if you install DevelopBranch ?

-- MartinCleaver - 29 Jul 2005

Hi Martin! I would like to get this working on the released code since this will become a live site eventually.

-- TorbenGB - 29 Jul 2005

Torben, set an absolute $twikiLibPath in setlib.cfg and you should be fine.

-- PeterThoeny - 29 Jul 2005

Thanks Peter. I had already tried that, setting
$twikiLibPath = '/home/gbdk/gbdk2006/lib'; and even
$twikiLibPath = '/home/gbdk/gbdk2006/lib/'; but neither made any to this problem. This change is reflected in testenv @INC library path:

/home/gbdk/gbdk2006/lib
/usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.6.1
/usr/share/perl/5.6.1
/usr/local/lib/site_perl
.

... is my installation simply "sick"?

-- TorbenGB - 30 Jul 2005

Hmm, not sure what is wrong. Setting $twikiLibPath = '/home/gbdk/gbdk2006/lib'; should tell Perl to find /home/gbdk/gbdk2006/lib/TWiki.pm'. Are the lib files and dirs readable by the gbdk user?

For security it is better to define a different document root, e.g. do not put the lib and templates below the document root. You could for example create a home/gbdk/twiki directory, move TWiki's lib and templates there and configure setlib.cfg and TWiki.cfg accordingly.

-- PeterThoeny - 01 Aug 2005

Yes, everything is readable by the gbdk user. I understand your point about security and not putting the wiki in the root. However, I'm really trying just the opposite. I want to get rid of as much /twiki/bin/view/ stuff as possible in order to have short, nice URLs. I have now succeeded in putting the CGI files in the root and making it work, so at least it's now down to /view/.

-- TorbenGB - 02 Aug 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg r1 manage 23.7 K 2005-07-29 - 10:37 UnknownUser TWiki.cfg file.
Unknown file formatcfg setlib.cfg r1 manage 2.1 K 2005-07-29 - 10:36 UnknownUser setlib.cfg (unmodified from installer ZIP).
HTMLhtm testenv20050729.htm r1 manage 10.3 K 2005-07-29 - 10:35 UnknownUser Testenv output from 29 July 2005.
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2005-08-02 - TorbenGB
 
  • 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.