Tags:
create new tag
, view all tags

Question

Hi, i have installed and run http://localhost/bin/configure script now the twiki is running with twiki example. now i want to customize. how to customize based on my needs in which file i have to edit.how to insert my logos and my details that will display in http://localhost/bin/view/Main for that i have to do please reply

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: defaultplugins
Server OS: solaris 10
Web server: apache2.0
Perl version: 5.0.8
Client OS: MS window XP
Web Browser: IE
Categories: Hosting

-- BaskarNamazhwar - 25 Dec 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Start at TWiki.PatternSkin in your distribution.

-- ArthurClemens - 25 Dec 2006

i am new to this. so please tell detailly how to start

-- BaskarNamazhwar - 26 Dec 2006

What do you need to customize?

-- ArthurClemens - 26 Dec 2006

when i start http://localhost/twiki/bin/view/Main it shows about twiki pages.instead of that i want to show my pages.for that what i have to do. do i need to write any programs.after written where i have to put it.please tell detailly.

-- BaskarNamazhwar - 26 Dec 2006

Then please explain in more detail what you need.

-- ArthurClemens - 26 Dec 2006

Hi, when i start http://localhost/twiki/bin/view/Main it will display my company logo and company information.for that what i have to do. do i need to write any programs or templates.

-- BaskarNamazhwar - 26 Dec 2006

About setting a custom logo, see PatternSkinCustomization.

To write information about your company, just edit your Main.WebHome topic.

-- ArthurClemens - 26 Dec 2006

when i click twikipreferences i am getting this error File does not exist: /var/apache2/htdocs/apps/twiki-root/twiki/pub/TWiki/TWikiPreferences, referer: h ttp://wal2sn001/twiki/bin/view/TWiki/TWikiPreferences

what i have to do now

-- BaskarNamazhwar - 26 Dec 2006

Go to your configure page yourtwiki/bin/configure and check if all paths are correct.

-- ArthurClemens - 26 Dec 2006

i think all paths are correct.which path variables i have to look it now.

-- BaskarNamazhwar - 26 Dec 2006

TWikiPreferences is in /data, not in pub/, so I expect a wrong path is at {DataDir}.

-- ArthurClemens - 26 Dec 2006

my data dir /apps/twiki-root/twiki/data my pub dir /apps/twiki-root/twiki/pub is it correct?

-- BaskarNamazhwar - 26 Dec 2006

That looks correct. You might need to change your httpd.conf and restart apache. Look at twiki_httpf_conf.txt in your distribution.

-- ArthurClemens - 26 Dec 2006

i am getting this error

[Tue Dec 26 16:51:38 2006] [error] [client 167.241.197.88] File does not exist:
/var/apache2/htdocs/apps/twiki-root/twiki/pub/TWiki/TWikiPreferences, referer: h
ttp://wal2sn001.vis.verizon.com/twiki/bin/view/TWiki/TWikiPreferences

my apache configuration file

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

#Block access from badly behaving robots and site sucking type programs.
BrowserMatchNoCase ^SiteSucker blockAccess
BrowserMatchNoCase ^iGetter blockAccess
BrowserMatchNoCase ^larbin blockAccess
BrowserMatchNoCase ^LeechGet blockAccess
BrowserMatchNoCase ^RealDownload blockAccess
BrowserMatchNoCase ^Teleport blockAccess
BrowserMatchNoCase ^Webwhacker blockAccess
BrowserMatchNoCase ^WebDevil blockAccess
BrowserMatchNoCase ^Webzip blockAccess
BrowserMatchNoCase ^Attache blockAccess
BrowserMatchNoCase ^SiteSnagger blockAccess
BrowserMatchNoCase ^WX_mail blockAccess
BrowserMatchNoCase ^EmailCollector blockAccess
BrowserMatchNoCase ^WhoWhere blockAccess
BrowserMatchNoCase ^Roverbot blockAccess
BrowserMatchNoCase ^ActiveAgent blockAccess
BrowserMatchNoCase ^EmailSiphon blockAccess
BrowserMatchNoCase ^CrownPeak-HttpAgent blockAccess
BrowserMatchNoCase ^$ blockAccess

# 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://my.co.uk/twiki/bin/view/...
# The second parameter must point to the physical path on your disc.
ScriptAlias /twiki/bin "/apps/twiki-root/twiki/bin"

# The Alias defines a url that points to the root of the twiki installation.
# It is used to access files in the pub directory (attachments etc)
# It must come _after_ the ScriptAlias.
Alias /twiki "/apps/twiki-root/twiki"

# 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 "/apps/twiki-root/twiki/bin">
    AllowOverride All
    Order Allow,Deny
    Allow from all
    Deny from env=blockAccess

    Options ExecCGI FollowSymLinks
    SetHandler cgi-script

    # Password file for TWiki users
    AuthUserFile /apps/twiki-root/twiki/data/.htpasswd
    AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
    AuthType Basic
    
    # File to return on access control error (e.g. wrong password)
    # By convention this is the TWikiRegistration page, that allows users
    # to register with the TWiki. Apache requires this to be a *local* path.
    ErrorDocument 401 /twiki/bin/view/TWiki/TWikiRegistration

# Limit access to configure to specific IP addresses and or users.
# Make sure configure is not open to the general public.
# It exposes system details that can help attackers.
<FilesMatch "^(configure)$">
    SetHandler cgi-script
    Order Deny,Allow
    Deny from all
    Allow from localhost,10.11.23.177,167.241.197.88
    Require user BaskarNamazhwar
    Satisfy Any
</FilesMatch>

</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 "/apps/twiki-root/twiki/pub">
    Options None
    AllowOverride None
    Order Allow,Deny
    Allow from all
    Deny from env=blockAccess

    # This line will redefine the mime type for the most common types of scripts
    # It will also deliver HTML files as if they are text files
    AddType text/plain .html .htm .shtml .php .php3 .phtml .phtm .pl .py .cgi
</Directory>

# Security note: All other directories should be set so
# that they are *not* visible as URLs, so we set them as =deny from all=.
<Directory "/apps/twiki-root/twiki/data">
    deny from all
</Directory>

<Directory "/apps/twiki-root/twiki/templates">
    deny from all
</Directory>

<Directory "/apps/twiki-root/twiki/lib">
    deny from all
</Directory>

<Directory "/apps/twiki-root/twiki/locale">
    deny from all
</Directory>

<Directory "/apps/twiki-root/twiki/tools">
    deny from all
</Directory>

please tell me

-- BaskarNamazhwar - 26 Dec 2006

That looks ok.

-- ArthurClemens - 26 Dec 2006

can you tell the twiki how it works.what we have to do to add new webpages.do i need to write templates ro anything else

-- BaskarNamazhwar - 26 Dec 2006

You should fix the bug first. Then read up on the documentation in the TWiki web. To customize your TWiki site see TWiki.PatternSkinCustomization.

-- ArthurClemens - 26 Dec 2006

hi thanks, i have changed the logo.now i want to change from Twiki > mainweb > webhome into Baskar>mainweb>webhome for that where i have to edit.

-- BaskarNamazhwar - 26 Dec 2006

Set WIKITOOLNAME in Main.TWikiPreferences to Baskar:

   * Set WIKITOOLNAME = Baskar

-- ArthurClemens - 26 Dec 2006

when i access http://localhost/twiki/bin/view/Main/TWikiPreferences it opens new page that look likes

FINALPREFERENCES locks site-level preferences that are not allowed to be overridden by WebPreferences or user preferences: Set FINALPREFERENCES = ATTACHFILESIZELIMIT, PREVIEWBGIMAGE, WIKITOOLNAME, WIKIWEBMASTER, SMTPMAILHOST, SMTPSENDERHOST, ALLOWWEBMANAGE, PROXYHOST, PROXYPORT

i edited WIKITOOLNAME=Baskar then i tried to save it but i am getting

Access check on TWikiPreferences failed. Action "in": TWiki::Plugins::PreferencesPlugin. Contact webmaster@examplePLEASENOSPAM.com if you have any questions.

what is the problem i cant understand

-- BaskarNamazhwar - 28 Dec 2006

 
Change status to:
Topic revision: r21 - 2006-12-28 - BaskarNamazhwar
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.