Tags:
create new tag
view all tags

SID-02345: after install all links look broken and menus do not work

Status: Answered Answered TWiki version: 6.0.2 Perl version: 5.24.1
Category: CategoryInstallation Server OS: Debian 9 Last update: 8 years ago

I just finished installing twiki and the only configure warnings are around email which is currently fine. No errors. When I navigate to do/view all image logos are broken links and the menu is showing with no drop down simply looks like broken css with the menu open over other text on the screen. I ran the script to fix permissions and www-data is the owner in the twiki directory i.e. drwxr-xr-x 8 www-data www-data 4096 Feb 10 15:05 data

Twiki is installed to /var/www/twiki

I see no way to attach an image and the site is internal only.

-- TWiki Guest - 2018-02-10

Discussion and Answer

I was able to attach a screen shot after topic creation.

-- TWiki Guest - 2018-02-10

Also in LocalSite.cfg I have: $TWiki::cfg{PubDir} = '/var/www/twiki/pub'; In my apache config I have: Alias /pub "/var/www/twiki/pub" And <Directory "/var/www/twiki/pub"> Options None AllowOverride None Require all granted Deny from env=blockAccess

# Disable execusion of PHP scripts php_admin_flag engine off

# This line will redefine the mime type for the most common types of scripts AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi

-- TWiki Guest - 2018-02-10

[Sat Feb 10 15:50:10.661853 2018] [cgi:error] [pid 27662] [client #.#.#.#:57672] AH02811: script not found or unable to stat: /var/www/twiki/bin/TWiki, referer: http://10.133.133.5/do/view/

-- TWiki Guest - 2018-02-10

OK found it!!! Went through the /var/www/twiki/lib/LocalSite.cfg 30 times and found

$TWiki::cfg{PubUrlPath} = '/do'; $TWiki::cfg{PubDir} = '/var/www/twiki/pub';

should be

$TWiki::cfg{PubUrlPath} = '/pub'; $TWiki::cfg{PubDir} = '/var/www/twiki/pub';

doh! and Doh!

But if one person can learn from my stupidity then it's all good.

-- TWiki Guest - 2018-02-10

I have this exact same problem.

I changed PubUrlPath as you said above. The problem is not resolved; the pages still look the same. (I restarted httpd after making the change.)

Also, I don't understand your reference to
$TWiki::cfg{PubDir} = '/var/www/twiki/pub'; and
$TWiki::cfg{PubDir} = '/var/www/twiki/pub'; - they look identical to me. Was there a change that you made? Did you copy/paste the 'before' and 'after' and forget to change the 'after'

-- TWiki Guest - 2018-07-18

I got this part of it to work.

In /etc/httpd/conf.d/twiki.conf is have to make sure I have both these lines correctly, as they are below:

ScriptAlias /do "/var/www/twiki/bin"
Alias /pub "/var/www/twiki/pub"

-- TWiki Guest - 2018-07-18

Make sure you set $TWiki::cfg{PubUrlPath} and $TWiki::cfg{PubDir} properly, they have different purposes:

  • $TWiki::cfg{PubUrlPath} - the path of file attachments, JS and CSS files, as seen from the browser, such as /pub
  • $TWiki::cfg{PubUrlDir} - the path of the twiki/pub directory as seen on the file system, such as /var/www/twiki/pub

Apache's alias defines the relationship between the two, such as:

Alias /pub "/var/www/twiki/pub"

-- Peter Thoeny - 2018-07-19

      Change status to:
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.
SupportForm
Status Answered
Title after install all links look broken and menus do not work
SupportCategory CategoryInstallation
TWiki version 6.0.2
Server OS Debian 9
Web server Apache 2.4.25
Perl version 5.24.1
Browser & version All
Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng twiki.PNG r1 manage 83.9 K 2018-02-10 - 21:17 TWikiGuest Image of issue.
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2018-07-19 - 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.