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¶m1=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
--
RobertPoor - 14 Dec 2005
Answer
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