Tags:
create new tag
, view all tags

Question

I have gotten testenv to work on a GoDaddy hosted site. Like many others, this is a site with neither root access nor shell. (If I ever make some progress on this issue, I'll be reading TopicSaveErrorOnISPServer very carefully.) Attempts to view other pages (e.g. view) results in a "Page Not Found" error with the rather suspicious URL of:

http://www.adozu.com/cgi/twiki_bin/oops/twiki_bin/view?template=oopsnoweb&param1=ERROR%20twiki_bin.view%20Missing%20Web

I'm attaching the TWiki.cfg and setlib.cfg files.

There is another issue, but probably unrelated. Consider the environment variables set up by GoDaddy's server:

SCRIPT_FILENAME   /html/cgi/twiki_bin/testenv
PATH_TRANSLATED   /home/content/r/d/p/rdpoor/html/twiki_bin/testenv

Note that it's impossible to chdir to $SCRIPT_FILENAME, since it's absolute and not rooted in the proper directory. This caused my first attempts at using testenv to fail. I thought of using $PATH_TRANSLATED instead, but the path is wrong: the 'cgi' has been ellided out of existence! (This cause my second attempt to fail!:)) I am now using the construct:

    if ( $0 && $0 =~ m!^(.+)/[^/]+$! ) {
        chdir $1;
    }
    unshift @INC, '.';
    require 'setlib.cfg';
to load setlib.cfg in all of the scripts. I include this not to show my burgeoning Perl prowess, but rather to show my ignorance: I have no idea if this is related to the real problem mentioned above.

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat unknown...
Web server: Apache [version unknown]
Perl version: 5.8.0
Client OS: (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12
Web Browser: Firefox/1.0.7
Categories: Hosting, Installation

-- RobertPoor - 14 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.

You need to get hold of the web server error logs for your site - these should tell you what's happening. Also, check the .htaccess in the main and bin directories - they may be redirecting to a Godaddy-provided ErrorDocument page, which is why you get the TWiki oops script running but don't get the actual oops output.

-- RichardDonkin - 16 Dec 2005

 
Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg manage 23.2 K 2005-12-14 - 03:09 RobertPoor TWiki.cfg
Unknown file formatcfg setlib.cfg manage 2.2 K 2005-12-14 - 03:08 RobertPoor setlib.cfg
HTMLhtml testenv.html manage 10.9 K 2005-12-14 - 03:11 RobertPoor Example testenv.html output
Topic revision: r3 - 2006-02-04 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.