SID-02345: after install all links look broken and menus do not work
| Status: |
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
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.