Tags:
create new tag
view all tags

SID-01478: TWiki Home Page Display

Status: Answered Answered TWiki version: 5.1.1 Perl version: v%.10.1
Category: CategoryBrowser Server OS: CentOS 6.2 Last update: 10 years ago

I have just installed and configured TWiki 5.1.1 on CentOS.

All seemed to go well but the front page does not display the expected icons and fields and text do not seem to be aligned.

-- BillKennedy - 2012-06-11

Discussion and Answer

In other words, styles and images are missing. That is an indication that the {PubUrlPath} or {PubDir} configure settings are not set properly, or that the twiki/pub/ dir is not readable by the webserver user.

-- PeterThoeny - 2012-06-11

Thank you Peter, The the twiki is under /var/www/twiki and the current settings are: lib/LocalSite.cfg:$TWiki::cfg{PubUrlPath} = '/var/www/twiki/pub'; lib/LocalSite.cfg:$TWiki::cfg{PubDir} = '/var/www/twiki/pub';

The web browser user had full access to the directory but I have now given full access to everyone with no improvement.

I will keep exploring and if I discover the cause I will post it here but any more suggestions are greatly appreciated.

I noted that the icons all appear correctly when I run /do/configure but not when I go to the home page /do/view/TWiki/WebHome.

Cheers Bill

-- BillKennedy - 2012-06-11

The pub URL path needs to match the apache setting. Say, if your apache config for TWiki has Alias /twiki/pub "/var/www/twiki/pub", then your {PubUrlPath} needs to be /twiki/pub.

-- PeterThoeny - 2012-06-12

Thanks Peter, I just discovered the problem/solution (I should have read the docs more diligently) and just logged back in here to boast about the fact that I had fixed it and I see you beat me to it.

You help is very much appreciated. Aren't these people who ask questions before reading the manual a nuisance wink

-- BillKennedy - 2012-06-12

Not unless they start getting involved with the community driven TWiki project. smile

-- PeterThoeny - 2012-06-12

Same issue... this answer doesnt help me

-- Saenthan Sae - 2013-06-10

Saenthan, it is difficult to help out with the little data you provide. Please open a new support question and provide details.

-- Peter Thoeny - 2013-06-10

Hi Peter,

I had downloaded latest twiki and installed as per the twiki installation guide. But there is a issue with apache configuration. Conf genereated by apache:

# Autogenerated httpd.conf file for TWiki. # Generated at http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator

# We set an environment variable called blockAccess. # # Setting a BrowserMatchNoCase to ^$ is important. It prevents TWiki from # including its own topics as URLs and also prevents other TWikis from # doing the same. This is important to prevent the most obvious # Denial of Service attacks. # # You can expand this by adding more BrowserMatchNoCase statements to # block evil browser agents trying the impossible task of mirroring a twiki # # Example: # BrowserMatchNoCase ^SiteSucker blockAccess # BrowserMatchNoCase ^$ blockAccess

BrowserMatchNoCase ^$ blockAccess

<IfModule mod_perl.c> # Mod_perl preloading PerlSwitches -T </IfModule>

# The ScriptAlias defines the bin directory as a directory where CGI # scripts are allowed. # The first parameter will be part of the URL to your installation e.g. # http://example.com/do/view/... # The second parameter must point to the physical path on your disc. ScriptAlias /bin "/srv/www/twiki/bin"

# The Alias defines a url that points to the twiki pub directory, which # is the root of file attachments. Alias /pub "/srv/www/twiki/pub"

# This specifies the options on the TWiki scripts directory. The ExecCGI # and SetHandler tell apache that it contains scripts. "Allow from all" # lets any IP address access this URL. <Directory "/srv/www/twiki/bin"> AllowOverride None Order Allow,Deny Allow from all Deny from env=blockAccess

Options ExecCGI FollowSymLinks SetHandler cgi-script

# Password file for TWiki users AuthUserFile /srv/www/twiki/data/.htpasswd AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith)' AuthType Basic

# File to return on access control error (e.g. wrong password) ErrorDocument 401 /bin/view/TWiki/TWikiRegistration

</Directory>

# This sets the options on the pub directory, which contains attachments and # other files like CSS stylesheets and icons. AllowOverride None stops a # user installing a .htaccess file that overrides these options. # Note that files in pub are not protected by TWiki Access Controls, # so if you want to control access to files attached to topics you need to # block access to the specific directories same way as the ApacheConfigGenerator # blocks access to the pub directory of the Trash web <Directory "/srv/www/twiki/pub"> Options None AllowOverride None Order Allow,Deny Allow from all 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

#add an Expires header that is sufficiently in the future that the browser does not even ask if its uptodate # reducing the load on the server significantly #IF you can, you should enable this - it will improve your twiki experience, even if you set it to under one day. # you may need to enable expires_module in your main apache config expires_module libexec/httpd/mod_expires.so mod_expires.c #<ifmodule mod_expires.c> # <filesmatch "\.(jpg|gif|png|css|js)$"> # ExpiresActive on # ExpiresDefault "access plus 11 days" # </filesmatch> #</ifmodule>

</Directory>

but there was 404 error due to authentication failure by apache.

-- Saenthan Sae - 2013-06-28

Hi Peter,

Another issue I face is user authentication, Now Im the new admin for twiki and Created a web name ProjectProcess how to authenticate on a selected user to view or when an existing user tryies to view how to deny his/her web view. I had read the user authentication but dont have any clear idea about it. Can you please elaborate this issue with your answer.

-- Saenthan Sae - 2013-06-28

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- Peter Thoeny - 2015-12-03

      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 TWiki Home Page Display
SupportCategory CategoryBrowser
TWiki version 5.1.1
Server OS CentOS 6.2
Web server Firefox 10.0.5
Perl version v%.10.1
Browser & version

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2015-12-03 - 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.