Twiki Installation and Use experience

Source: Internet
Author: User

Twiki is an open-source (GPL) wiki.Program. The software is positioned as a flexible, powerful, and easy-to-use enterprise collaboration platform that runs in the Perl environment. People with programming skills can use variables to create dynamic pages, such as content tables or embedded search results pages. The default built-in WYSIWYG editor provides a complete user permission system that does not require any databases and is completely based on the file directory formatting engine.

Deploying Twiki is a little complicated. Here are some of my experiences with deploying Twiki on Ubuntu.

1. Prepare the environment

$ Sudo Apt - Get install apache2 Perl cron grep RCS patch PhP5
$ Sudo Apt - Get install libapache2 - MoD - PhP5 libcgi - Session - Perl libdigest - Sha1 - Perl libhtml - Parser - Perl

 

2. Download

$ Wget http: // Downloads.sourceforge.net / Project / Twiki / Twiki % 20 For % 20all % 20 platforms / Twiki - 5.0 . 1 / Twiki - 5.0 . 1 . Tgz ? R = & TS = 1293085896 & Use_mirror = Nchc
$ Sudo tar - Xvzf Twiki - 5.0 . 1 . Tgz
$ Sudo CP - A Twiki / VaR / WWW /
$ Sudo chown - R WWW - Data: www - Data / VaR / WWW / Twiki

3. Configuration

$ Sudo CP / VaR / WWW / Twiki / Bin / Locallib.cfg.txt / VaR / WWW / Twiki / Bin / Locallib. cfg

Modify $ twikilibpath in locallib. cfg:

$ Twikilibpath   = " / VaR / WWW / Twiki / Lib"

Generate the Twiki. conf file: Success
Modify/etc/apache2/httpd. conf and add a line:

Include " /Var/www/Twiki. conf "

(Or copy/var/www/Twiki/twiki_httpd_conf.txt to Twiki. conf, and then modify the path-related settings)

Modify

<Filesmatch "^ (configure) $"> node. Set the IP address or user name that allows access to the configure page. Allow from 127.0 . 0.1   192.168 . 1.100
Require user coderzh

 

Restart apache2 $ Sudo / Etc / Init. d / Apache2 restart

 

Access: http: // <IPaddress>/Twiki/bin/configure to go to the configuration page. After the configuration is complete, go to the home page.

 

Tips

1. Chinese support
Twiki is iso8859-1 encoding by default, does not support Chinese editing, the interface is also full English. Let Twiki support Chinese. First, make sure that the locale of the server is installed with a zh_CN.UTF-8. $ Sudo locale - Gen zh_cn
$ Sudo locale - Gen zh_cn.utf - 8
$ Sudo dpkg - Reconfigure locales

Configure the following in configure:

{Userinterfaceinternationalisation} √
{Ages} {'zh - Cn'} {enabled} √
{Displaytimevalues} servertime
{Uselocale} √
{Site} {locale} zh_cn.utf - 8
{Site} {localeregexes} √
{Site} {charset} UTF - 8
{Site} {Lang} ZH
{Site} {fulllang} ZH - CN
{Pluraltosingular} √ 2. send an email

Twiki supports automatic sending of verification emails for user registration and password retrieval. To support sending emails, first install Sendmail on the server:

$ Sudo Apt - Get install sendmail

Then, set the mail-related items on the configure page. Leave the following two items blank.

{SMTP} {mailhost} is left empty.
{SMTP} {senderhost} is left empty.

 

3. Add users in batches

Go to the http: // <IPaddress>/Twiki/bin/View/Twiki/bulkregistration page.

 

4. Page settings

On the webpreferences and topicpreferences pages, you can set the Web or topic, such as permissions. For detailed settings, refer:

Http: // <IPaddress>/Twiki/bin/View/Twiki/twikipreferences

For example, to set the permissions that can be modified by the Administrator, you must add the following statement on the Wiki content or the settings page of the current topic:

Set allowtopicchange = Twikiadmingroup

Note: The format is [3 spaces] Set [spaces] XXX [spaces] = [spaces] xxx

More other content can be found and summarized by yourself. If you have any questions, please contact me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.