Difference: TWikiInstallationGuide (27 vs. 28)

Revision 282001-09-07 - MikeMannix

Line: 1 to 1
 
Changed:
<
<

TWiki Installation Guide

>
>

TWiki Installation Guide

  Clean install of the current public release (01-Sep-2001)
Changed:
<
<

Overview

>
>

Overview

  These installation steps use the Apache web server on Linux as an example. TWiki should run on other web servers and Unix systems as well. (TWiki on Windows is possible, but has not been well-documented. More on that at http://TWiki.org/cgi-bin/view/Codev/TWikiOnWindows.)
Line: 21 to 21
  Read http://TWiki.org/cgi-bin/view/Codev/SourceForgeHowTo in case you want to install TWiki on SourceForge.
Changed:
<
<

Standard Installation

>
>

Standard Installation

  Request and download the TWiki %VERSION% distribution in Unix ZIP format from http://TWiki.org/download.html.
Changed:
<
<

Step 1: Create & Configure the Directories

>
>

Step 1: Create & Configure the Directories

 
  • Create directory /home/httpd/twiki and unzip the TWiki distribution into this directory.
  • The twiki/bin directory of TWiki must be set as a cgi-bin directory. Add /home/httpd/twiki/bin to file /etc/httpd/httpd.conf with only ExecCGI option.
Line: 49 to 49
  </Directory>
Changed:
<
<

Step 2: Check the Server Directory Settings

>
>

Step 2: Check the Server Directory Settings

 
  • Restart Apache by /etc/rc.d/rc5.d/S85httpd restart .
  • Test if the twiki/bin directory is cgi-enabled:
    • Enter the URL of that directory into your browser ( http://your.domain.com/twiki/bin ). It is not set correctly as cgi-bin in case you get something like "Index of /twiki/bin" . It is OK if you get a message like "Forbidden. You don't have permission to access /twiki/bin/ on this server."
    • Execute the testenv script from your browser ( http://your.domain.com/twiki/bin/testenv ). It shows a table with all CGI environment variables and tests the settings in your twiki/bin/wikicfg.pm configuration file.
Changed:
<
<

Step 3: Enable Perl File Permissions

>
>

Step 3: Enable Perl File Permissions

 
  • Make sure Perl 5 and the Perl CGI library are installed on your system. Default location of Perl executable is /usr/bin/perl. In case Perl is installed in a different location, the first line of all Perl scripts in the twiki/bin directory must be changed (alternatively you can create a symbolic link from /usr/bin/perl ).
    • IMPORTANT: On most ISP virtual domain accounts, Perl CGI scripts require a .cgi extension to run. Some systems need .pl, the regular Perl extension. Change all twiki/bin scripts appropriately if necssary.
Line: 66 to 66
 
  • Set the permission of the twiki/data directory and its subdirectories so that files in there are writable by user nobody. A simple way is to chmod them to drwxrwxrwx (777).
  • Set the permission of the twiki/pub directory and all its subdirectories so that files in there are writable by user nobody. A simple way is to chmod them to drwxrwxrwx (777).
Changed:
<
<

Step 4: Set the Main Configuration File

>
>

Step 4: Set the Main Configuration File

 
  • Edit the file twiki/bin/wikicfg.pm and set the variables at the beginning of the file to your needs.
    • Set the file extension in the $scriptSuffix variable to cgi or pl if required.
Line: 76 to 76
 
Changed:
<
<

Step 5: Finish Up from Your Browser

>
>

Step 5: Finish Up from Your Browser

 
  • Point your Web browser at http://your.domain.com/twiki/bin/view and start TWiki-ing away!
  • Edit the TWikiPreferences topic in the TWiki:TWiki web to set the WIKIWEBMASTER email address, the WEBCOPYRIGHT message and other preferences.
Line: 85 to 85
  That's it for the standard virgin installation of TWiki. Read on to learn how to customize TWiki.

Changed:
<
<

Extra Server-Level Options

>
>

Extra Server-Level Options

  Complete a Standard Installation and your new TWiki site should be up and running. You can develop and manage most aspects of your site from the browser interface. Core set-up functions require direct access to the server file system, via Telnet or FTP. You can make server-level site changes during installation, or at any time afterwards.

Changed:
<
<

Creating a New Web

>
>

Creating a New Web

 
  • To create a new web:
    • Use a name for the web consisting of characters A..Z , a..z but not in WikiNotation.
Line: 109 to 109
 
    • In case you want usage statistics for this web: Copy file WebStatistics.txt from the twiki/data/Main directory to the new data directory. Edit topic WebStatistics in the new web and delete old usage entries.
    • Note that user home topics are only located in the TWiki.Main web, so don't try to move them or create them in other webs. From any web you can refer to users located in the TWiki.Main web like Main.UserName or %MAINWEB%.UserName.
Changed:
<
<

Adding Variables & Rendering Rules

>
>

Adding Variables & Rendering Rules

 
  • You can add new rendering rules or new %VARIABLES%. To insure an easy upgrade of TWiki it is recommended to do this customization in twiki/bin/wikicfg.pm , not twiki/bin/wiki.pm .
Changed:
<
<

Enabling Basic Authentication (.htaccess)

>
>

Enabling Basic Authentication (.htaccess)

 
  • If you are on a non authenticated server (i.e. not using SSL) and you would like to authenticate users:
    • Rename file .htaccess.txt in the twiki/bin directory to .htaccess and change it to your needs. For details consult the HTTP server documentation (for Apache server: [1], [2]). In particular, the following red part needs to be configured correctly:
Line: 125 to 125
 
      • Note: You can customize the registration form if needed, like deleting or adding input tags. The name="" parameter of the input tags must start with: "Twk0..." (if this is an optional entry), or "Twk1..." (if this is a required entry). This will ensure that the fields are processed correctly.
    • A new line containing user name and encrypted password gets added to the data/.htpasswd file when a users registers. The file that comes with the TWiki installation contains a few user accounts of TWiki core team members (needed for testing). You can edit the file and delete those lines.
Changed:
<
<

TWiki File System Snapshot

>
>

TWiki File System Snapshot

  Here are partial directory listings showing typical file permissions and ownership. This is provided for general debugging use only and isn't an exact representation of the current distribution. There is also a complete file listing by directory , with individual file descriptions, for the current TWiki release.
Line: 246 to 241
 -rw-rw-r-- 1 twiki twiki 152 Mar 9 1999 doc.gif
Changed:
<
<
-- PeterThoeny - 16 Mar 2001
>
>
-- MikeMannix - 07 Sep 2001
 
META TOPICMOVED by="MikeMannix" date="999319650" from="TWiki.TWikiInstallationNotes" to="TWiki.TWikiInstallationGuide"
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiInstallationGuide