Tags:
create new tag
view all tags

Question

After we upgraded to Cairo using the upgrade script, links in the text body of our pages don't work. Their URLs have got the host/domain right, and the Wiki path and page right, but are missing the path in between; the wiki is not installed at the htdocs root, but a subdirectory down.

So a link that should be this to work: http://serendip.brynmawr.edu/twiki/bin/view/Main/TWikiUsers appears in the text of the page to link to: http://serendip.brynmawr.edu/Main/TWikiUsers

What variable has done us in? We haven't been able to change anything in TWiki.cfg that's made any difference. Our testenv is here: http://serendip.brynmawr.edu/twiki/bin/testenv

Many thanks for help.

Ann Dixon for Serendip http://serendip.brynmawr.edu/

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 5.7
Web server: Apache 1.3.29
Perl version: Perl 5.6.1
Client OS:  
Web Browser:  
Categories: Installation

-- TWikiGuest - 27 Jun 2005

Answer

In twiki/lib/TWiki.cfg, make sure $scriptUrlPath is set to "twiki/bin". Also, set $dispScriptUrlPath = $scriptUrlPath;

-- PeterThoeny - 28 Jun 2005

I tried modifying TWiki.cfg: 1) changing $scriptUrlPath from /twiki/bin to twiki/bin and an example of the link was still: http://serendip.brynmawr.edu/Main/TWikiUsers

2) I next inserted $dispScriptUrlPath = $scriptUrlPath; The link was then: http://serendip.brynmawr.edutwiki/bin/view/Main/twiki/bin/Main/TWikiUsers

3) I changed $scriptUrlPath back to "/twiki/bin", inserting the leading '/'; the link was then: http://serendip.brynmawr.edu/twiki/bin/Main/TWikiUsers

Thank you for help, Ann

-- TWikiGuest - 28 Jun 2005

Opps, was my typo, meant to be /twiki/bin. Glad it worked out.

-- PeterThoeny - 28 Jun 2005

Isn't there still missing the scriptName (view)?

-- FranzJosefSilli - 28 Jun 2005

Yes, it's still missing the (view), and is still broken. Sorry to give the wrong impression. Ann

-- TWikiGuest - 28 Jun 2005

Not sure what is going on then. Could you attach the TWiki.cfg?

-- PeterThoeny - 29 Jun 2005

Attached. Thanks, Ann

-- TWikiGuest - 29 Jun 2005

Hm, the TWiki.cfg looks correct (at the first glance) but in this case it could be more important what's in your httpd.conf (Apache setting) and/or your setlib.cfg or even the .htaccess file. I must confess that I don't know what's wrong with your settings, but I guess it's marginal. Sorry for being of no use. frown

-- FranzJosefSilli - 29 Jun 2005

The httpd.conf hasn't changed since we did the upgrade. The relevant lines are:

ScriptAlias /twiki/bin/ "/usr/local/apache/twiki/bin/" Alias /twiki/ "/usr/local/apache/twiki/" Options +ExecCGI SetHandler cgi-script AllowOverride All Allow from all Options FollowSymLinks +Includes AllowOverride None Allow from all deny from all deny from all

The only uncommented lines in setlib.cfg are: $twikiLibPath = '/usr/local/apache/twiki/lib'; unshift @INC, $twikiLibPath; unshift @INC, $localPerlLibPath if $localPerlLibPath;

The .htaccess file uses:

SetHandler cgi-script

We were a pretty vanilla site, hadn't changed much.

-- TWikiGuest - 29 Jun 2005

I note that $dispViewPath is missing from your TWiki.cfg. This is probably the cause of your problem. It should be:

#                   URL path to view script used to render links, relative to $dispScriptUrlPath
$dispViewPath     = "/view";

-- CrawfordCurrie - 02 Jul 2005

Yes, that must be it. Closing this question.

-- PeterThoeny - 02 Jul 2005

That was it, but we ran into further problems with code missing (such as the authentication code) from the TWiki.cfg file. It seems to be a problem with the upgrade script that we downloaded and used. I started over with a fresh copy of TWiki.cfg and customized by hand, and things are now working.

Thanks again for your help. Ann

-- TWikiGuest - 07 Jul 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg r1 manage 20.9 K 2005-06-29 - 13:43 TWikiGuest  
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2005-07-07 - TWikiGuest
 
  • 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.