Tags:
create new tag
view all tags

Question

After my server was hacked I am trying to move my old twiki code into a chroot jail. The old twiki code is up and running again but not everything is OK. Many of the problems are related to TWikiVariables not resolving.

For example, %INITIALS does not resolve in the KoalaSkin edit template. %WIKILOGOIMG does not display the logo. %SPACEDTOPICP% does not resolve.

Has anyone installed twiki in a chroot jail ?

What are suggestions for troubleshooting these problems ?

I'll take each of the mysteries one at a time below ...

Mysteries

DONE Session Plugin

The most significant problem was that the SessionPlugin was not working correctly. Very similar to the problems described in AccessProblemRememberLoginWikiName, after logon to edit TWikiTopics the %WIKIUSERNAME and related variables still resolve to TWikiGuest even though apache session IDs are being written to .../.../httpd/tmp

SOLVED: this entry in apache's error log led me to find the solution in SessionPluginAndCGISession. Thanks also to LynnwoodBrown in TWikiIRC.


[Sat Nov 05 16:45:14 2005] [error] [client 201.235.46.100] [Sat Nov  5 16:45:13 2005] view: \t(in cleanup) Can't call method "store" on an undefined value at /usr/lib/perl5/site_perl/5.8.6/CGI/Session.pm line 192 during global destruction., referer: http://site:port/twiki/bin/view/TWiki/WebHome

DONE %SPACEDTOPICP

Again with KoalaSkin, and its prerequisite: SpacedWikiWordPlugin. The browser title read : %SPACEDTOPICP% < TWiki < TWikiSite Name

This one was solved by unzipping the SpacedWikiWordPlugin.zip once more and re-applying the SPACEDTOPICP.patch

DONE %INITIALS

%INITIALS did not resolve in the KoalaSkin edit template.

This one was solved by re-applying the patch to Edit.pm found in TerserSignature

QUESTION? %WIKILOGOIMG

Using the KoalaSkin, my logo ALT text is displayed but logo is missing.

Clues

Apache's error log gives a missing favicon.ico, but I don't think that's the problem.

[Tue Nov 15 17:29:50 2005] [error] [client 200.xxx.160.29] File does not exist: /apache/htdocs/favicon.ico

Why would the apache error for favicon occur for the root of htdocs rather than the twiki folder ? TWiki is the only think installed, but never-the-less it is still installed under ../../htdocs/twiki

NEW Here's a new clue - while the server is still under construction, I'm running apached on a non-standard port. To View Source on the page, I can see that the KoalaSkin is giving up the correct URL for the %WIKILOGOIMG, except without the port number ...


Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux (SuSE Pro 9)
Web server: apache
Perl version: 5.8.6
Client OS: windoze
Web Browser: firefox
Categories: Installation, Htaccess, Authentication

-- KeithHelfrich - 05 Nov 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.

Is it only koalaskin that doesn't resolve variables? what about with classic skin?

-- MattWilkie - 16 Nov 2005

Hi Matt,

most problems are related to KoalaSkin, but not all. For example, the SpacedWikiWordPlugin needed a re-install b/c it did not work with koala or pattern skin. also, the session handling was not related to koala.

-- KeithHelfrich - 28 Nov 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-01-02 - 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.