We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>EditPageContainsNoData (02 Oct 2003, PeterThoeny)
Tags:
create new tag
, view all tags
Hello!

I'm trying to get TWiki running as a non root user with authentication via .htpasswd and SSL. I followed http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide (I changed the ending of all scripts to cgi, chmoded 755, updated the path to perl, the locks in *,v and TWiki.cfg).

I can browse every page, but editing is not possible. Whenever I click on an edit link Netscape gives me a "Document contains no data", Internet Explorer just shows the load progress bar and Opera says "Sending request to server..." in an endless loop.

I have already read AnsweredQuestions, AskedQuestions, AssignedQuestions and searched Google. That lead me to RegistrationSubmitFailure where somebody else had gotten the same error message I get in Netscape. The reason had been a bug that should be already fixed.

Testenv.cgi from TWiki 01 Feb 2003 gives me a warning concerning $scriptUrlPath, I don't know how to deal with.

Testenv.cgi also says that something is wrong with setting the locale, but the command

locale -a | grep en_US
delivers
en_US.UTF-8
en_US
en_US.ISO8859-1
en_US.ISO8859-15
en_US.ISO8859-15@euro

So the setting should be ok.

After reading SupportGuidelines I tried the newest Testenv from CVS by copying it over the Testenv.cgi, changing the path to Perl and making the script executable, but that failed with an Internal Server Error.

  • TWiki version: 01 Feb 2003
  • Perl version: Unix 5.6.1
  • Web server & version: Roxen Challenger/1.3.121
  • Server OS: SunOS 5.8 Generic_108528-18 sun4u sparc SUNW,Ultra-4
  • Web browser & version: Netscape 4.79, Opera 7.11/Linux, Internet Explorer 6.0, Opera 6.12/Solaris
  • Client OS: FreeBSD 5.0, Solaris 8, Solaris 9, Windows 98

-- DanielGrund - 03 Jun 2003

Answer

Seems like a TWiki.cfg setting problem. Your testenv reports this:

     DOCUMENT_ROOT: /export/mdd0/all/u/user/www/
      DOCUMENT_URI: /~danififi/twiki/bin/testenv.cgi
   SCRIPT_FILENAME: /home/d/danififi/www/twiki/bin/testenv.cgi
       SCRIPT_NAME: /~danififi/twiki/bin/testenv.cgi
 @INC library path: /home/d/danififi/www/twiki/lib
    $scriptUrlPath: /~danififi/twiki/bin
       $pubUrlPath: /~danififi/twiki/pub
           $pubDir: /home/d/danififi/www/twiki/pub
      $templateDir: /home/d/danififi/twiki/templates
          $dataDir: /home/d/danififi/twiki/data

From this it is not clear where your twiki/data, twiki/pub and twiki/template dirs actually are as seen from the file system, but it seems like this:

$scriptUrlPath = "/~danififi/twiki/bin";
$pubUrlPath    = "/~danififi/twiki/pub";
$pubDir        = "/home/d/danififi/www/twiki/pub";
$templateDir   = "/home/d/danififi/www/twiki/templates";
$dataDir       = "/home/d/danififi/www/twiki/data";

If the dirs are somewhere else reflect that in TWiki.cfg.

Depending on the hosting setup, you might have a different file path as seen from the shell login and as seen from the web server. Try this:

$scriptUrlPath = "/~danififi/twiki/bin";
$pubUrlPath    = "/~danififi/twiki/pub";
$pubDir        = "/export/mdd0/all/d/danififi/www/twiki/pub";
$templateDir   = "/export/mdd0/all/d/danififi/www/twiki/templates";
$dataDir       = "/export/mdd0/all/d/danififi/www/twiki/data";

-- PeterThoeny - 04 Jun 2003

Thank you for your answer. I tried to set the variables to

$scriptUrlPath = "/~danififi/twiki/bin";
$pubUrlPath    = "/~danififi/twiki/pub";
$pubDir        = "/export/mdd0/all/d/danififi/www/twiki/pub";
$templateDir   = "/export/mdd0/all/d/danififi/twiki/templates";
$dataDir       = "/export/mdd0/all/d/danififi/twiki/data";

That didn't do it. I logged in on the web server to check every path. They are all ok:

The pubDir, templateDir and dataDir are seen as

$pubDir        = "/export/mdd0/all/d/danififi/www/twiki/pub";
$templateDir   = "/export/mdd0/all/d/danififi/twiki/templates";
$dataDir       = "/export/mdd0/all/d/danififi/twiki/data";

from the file system of the web server. And

/export/mdd0/all/d/danififi/www
is the web server document root which can be accessed via
$defaultHost/~danififi
from outside. So $scriptUrlPath matches $pubDir.

In fact

/export/mdd0/all/d
is remounted as
/home/d
on the web server, so the original setting I had posted first should do the same.

Should Testenv complaining that $scriptUrlPath does not match REQUEST_URI give me a hint? But how should I change $scriptUrlPath to match?

-- DanielGrund - 04 Jun 2003

Topic attachments
I Attachment Action Size Date Who Comment
elsecfg TWiki.cfg manage 20.9 K 03 Jun 2003 - 20:37 DanielGrund my TWiki configuration
txttxt error.txt manage 1.2 K 03 Jun 2003 - 20:36 DanielGrund Error message of web server with Testenv CVS
htmlhtml testenv.html manage 11.0 K 03 Jun 2003 - 20:35 DanielGrund Output from Testenv
Topic revision: r4 - 02 Oct 2003 - 04:58:36 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback