images1Add my vote for this tag installation1Add my vote for this tag create new tag
, view all tags

SID-01854: No default skin on install.

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5.14.2
Category: CategoryInstallation Server OS: Ubuntu 12.04 Last update: 1 year ago


If this has been asked, or if I missed something in the installation documentation, I apologize.

I just installed TWiki successfully on Ubuntu 12.04, and I understand that it should use PatternSkin by default. Instead, when the TWiki runs, there are no images, only text is visible. Before I do anything, I'd like to know if this is normal or if I have a problem.

EDIT: I have attached a screenshot of what the main page looks like.

Thank you.

  • a shot of what the main twiki page looks like:

-- Nadia Gruman - 2014-01-08

Discussion and Answer

The default is the TopMenuSkin, which is based on the plugins.PatternSkin.

Your issue of no images and no style is that the pub dir is not configured properly. In configure check {PubUrlPath} and {PubDir}, in apache check the twiki.conf file. Best to use the ApacheConfigGenerator.

-- Peter Thoeny - 2014-01-08

Thank you for your response.

I had created the twiki.conf using the generator, when installing twiki. Both {PubUrlPath} and {PubDir} in the configuration match the actual install directory, default in my case: /var/www/pub for {PubDir} and /do for {PubUrlPath}. The owner for the directory is www-data. Can that be the cause of the problem? Permissions are drwxr-xr-x.

Thank you.

-- Nadia Gruman - 2014-01-09

/do is most likely incorrect for {PubUrlPath}. It needs to match Alias /pub "/var/www/twiki/pub", e.g. /pub.

-- Peter Thoeny - 2014-01-09

Yes, that helped. When I replaced /do with /pub, it worked. Thank you for your help!

-- Nadia Gruman - 2014-01-09

You're welcome. Good luck with your TWiki! Possibilities are endless, read TWikiPresentation2013x01x17.

-- Peter Thoeny - 2014-01-09

I am facing the same problem, even I have changed the /do to Alias /pub "/var/www/twiki/pub". Even though I am facing same problem. Thank you..

-- Sachin Vaidya - 2015-08-20

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

# IMPORTANT NOTE: Make sure to enable mod_cgi in the primary apache configuration file.

# 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

# 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 /do "/var/www/twiki/bin"

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

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

    Options ExecCGI FollowSymLinks
    SetHandler cgi-script

    # Password file for TWiki users
    AuthUserFile /var/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 /do/view/TWiki/TWikiRegistration


# 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 "/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

#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
#LoadModule expires_module libexec/httpd/mod_expires.so
#AddModule mod_expires.c
#<ifmodule mod_expires.c>
#  <filesmatch "\.(jpg|gif|png|css|js)$">
#       ExpiresActive on
#       ExpiresDefault "access plus 11 days"
#   </filesmatch>


This is the apache conf code.

-- Sachin Vaidya - 2015-08-20

Assuming your TWiki root is /var/www/twiki, the Apache config looks OK.

Make sure PubUrlPath and PubDir are set properly in TWiki's configure, such as:

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

-- Peter Thoeny - 2015-08-24

      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.
Status Answered
Title No default skin on install.
SupportCategory CategoryInstallation
TWiki version 6.0.0
Server OS Ubuntu 12.04
Web server apache/2.2.22
Perl version 5.14.2
Browser & version chrome 31.0.1650.63
Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng twiki.png r1 manage 89.7 K 2014-01-08 - 17:44 NadiaGruman a shot of what the main twiki page looks like
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2015-08-24 - 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.