TweetFollow Us on Twitter

Installing and Using a Wiki

Volume Number: 22 (2006)
Issue Number: 6
Column Tag: Wiki

Installing and Using a Wiki

What are Wikis and how to use TWiki

by Mihalis Tsoukalos

The idea for this article came after reading the "Time Management for System Administrators", an excellent book by Thomas Limoncelli. In the book, Limoncelli states that although he has heard about Wikis, he has not had a good opinion about their usefulness because of their strange and somehow funny name. The same thing happened to me. I thought that I should not deal with Wikis because of their humorous name. Limoncelli's book changed my mind, and therefore I decided to learn more about Wikis. I'm writing this article because I find Wikis so useful.

What Are Wikis?

A Wiki is an environment based on Web technologies that allows its users not only to read, but also to change HTML pages in an uncomplicated and simple manner. This makes Wikis very practical for groups and individuals that work using text and hypertext. The more you use and add to a Wiki, the more useful it becomes, and the more useful it becomes, the more you want to add new and more accurate information.

The word Wiki has its roots in the Hawaiian word "Wikiwiki" that means "quick" or "hurry up". The first Wiki was made by Ward Cunningham back in 1995.

The Wiki Philosophy

Every Wiki that respects itself supports, more or less, certain functionalities, while some Wikis support more advanced features. The principles that Wikis conform to, include the following:

  • Editing capabilities. This is the most distinguishing functionality. Only in special and rare situations, certain pages cannot be edited. The edition prohibition should be avoided as it is against the Wiki philosophy.

  • The capability of connecting (linking) a certain Wiki page with another. This functionality creates new structures. As you are going to find out, this feature is supported by what is called a WikiWord. If the referenced Wiki page is not present, and you try to click it from your Web browser with your mouse, this page is going to be automatically created, ready for editing!

  • The capability of keeping historical information about every page in a Wiki. This feature actually stores all previous page versions for all Wiki pages. This makes it easy to find the changes that happened in a page. This is an extremely critical feature because it can protect us from both malicious users and users that change information by mistake on a Wiki page.

  • The capability of examining recent changes. This is a separate informational page that is automatically created by the Wiki itself, and either lists a given number of changes in a page or the changes that happened in a page for a given period of time.

  • The SandBox or PlayGround capability. This capability is similar to the testing grounds in a rally race or like your piece of paper for keeping notes. Using Sandbox, you will learn how to use the whole Wiki system by creating experimental Wiki pages that are later going to be deleted by the system. Experiment in PlayGround as much as you like without fear!

  • The search capability. Last but not least, is the Wikis' capability of searching either whole pages or page titles by keywords. In Wikis with many users and many pages this is an extremely important tool.

Installing TWiki on Mac OS X Tiger

Our Wiki of choice is called TWiki, and is a high- performance, advanced Wiki with many capabilities. In this section you are going to learn how to successfully install TWiki and start working with it. By using it more, you are going to feel more comfortable with it, and therefore you are going to be more productive. What you should have already installed in your Mac are the following:

    1. Apache Web Server: this is installed by default. This article assumes a clean install of Apache and its config files. If Apache is not already running, the following command, executed at the Terminal, will start it running:

    big:~ mtsouk$ apachectl start

    2. The Perl programming language: Tiger installs Perl by default, so, you should not have any problems unless something is terribly wrong with your installation. The Perl executable is located in/usr/bin/perl. The current Perl version, at the time of writing, is 5.8.6.

    3. Various UNIX command line tools: Tiger installs by default most of the required UNIX tools, so you will not probably have any problems.

    4. The RCS software that mainly supports and administers changes in text files. If you have already installed Developer Tools you have RCS already installed. On my Tiger 10.4.6 the rcs binary is installed in /usr/bin/rcs. If, for some reason, you do not have it, you should download the latest Xcode Tools installation package and install it from there.

Most of the installation work must be done inside the main configuration file of the Apache Web server. It is not a particularly difficult job, but you should concentrate while making the changes, as a small typo can make Apache not work at all. Let's see analytically.what the required steps for installing TWiki are:

    1. You should download and install the latest version of TWiki from the URL <http://www.twiki.org/>. At the time of writing this article, the latest TWiki version (Production Release as it is called) is 4.0.1 <http://twiki.org/p/pub/Codev/Release/TWiki-4.0.1.tgz>.

    2. You should now give the following command from a Terminal application in order to uncompress TWiki's files:

    tar zxvf TWiki-4.0.1.tgz

Before executing the above command, it would really useful to be in a separate subdirectory that you created somewhere inside your home directory. The execution of the tar command creates many subdirectories and files as can be seen in figure 1.



Figure 1: The root directory structure of TWiki

    3. You should now give the following command:

    sudo vi /etc/httpd/users/mtsouk.conf

      given that your username is mtsouk. Depending on your own username, you should give the respective command. Also, instead of using the vi editor, you can launch your favorite text editor. [Ed. Note - If you know what you're doing, you can make this change in your global httpd.conf file, too...but if you know what you're doing, you probably already knew that] In the above Apache configuration file, the following text was added:

    # Added for TWiki :
    ScriptAlias /wiki/bin/ "/Users/mtsouk/Sites/TWIKI/bin/"
    Alias /wiki/ "/Users/mtsouk/Sites/TWIKI/"
    <Directory "/Users/mtsouk/Sites/TWIKI/bin">
        AllowOverride all
        Options +ExecCGI
        Allow from all
    </Directory>
    <Directory "/Users/mtsouk/Sites/TWIKI/data">
        Deny from all
    </Directory>
    <Directory "/Users/mtsouk/Sites/TWIKI/lib">
        Deny from all
    </Directory>
    <Directory "/Users/mtsouk/Sites/TWIKI/templates">
        Deny from all
    </Directory>

    4. After setting up your Apache Web server, you should also make a small change in a file called /Users/mtsouk/Sites/TWIKI/bin/setlib.cfg. You should change the value of the twikiLibPath variable as follows:

    $twikiLibPath = "/Users/mtsouk/Sites/TWIKI/lib";

    5. Then you should also run the following command:

    sudo chown -R www /Users/mtsouk/Sites/TWIKI

    6. You should now make sure that the "Personal Web Sharing" service is turned on. It is located at the Sharing collection of settings inside System Preferences.

    7. The last thing you should do is, to restart Apache in order to activate the changes you made to its configuration file. This can be done using the command that follows:

    sudo apachectl graceful

That's all! Now you are ready to use TWiki from within your own browser! Start at URL <http://localhost/ wiki/bin/configure>, where you should define some primitive parameters. Figure 2 shows how your own picture should look like.



Figure 2: The http://localhost/wiki/bin/configure URL of TWiki

Currently, you should not worry about the displayed error messages, as this is the initial execution of TWiki. By pressing the "General path settings" button, and then going near the end of the displayed page, you will be able to adjust some parameters that are related to directories. The good thing is that TWiki makes proposals about most of the parameters, so you will not have to write them manually. Chances are that most of the proposals are correct! Now, please press the Next button at the end of the page, and you will get a page similar to the one shown in figure 3.



Figure 3: Giving the new password after pressing the "Next" button

You should now define your password by giving it twice, so that the system knows that you typed it correctly. You then press the "Set Password and Save changes" button to tell TWiki to store the new password, and you are directed to a new page that shows the committed changes. You should now press the "Return to configuration" button, at the end of the page. You will then return to your starting configuration page. This TWiki page will contain some warnings or errors, but you can ignore them. Then, you will have to make some changes at the "Store Settings"option. The changes you have to do must be analogous to the settings that are presented in figure 4. Given that your username as well as the installation directory are different from mine, you should adjust your settings accordingly.



Figure 4: Fixing some of the TWiki parameters

You will also need to copy an icon file named favicon.ico inside directory /Library/ WebServer/Documents. favicon.ico is the small icon that is sometimes displayed on the left of the web address field in your web browser. It is also necessary to have the CGI::Session perl module correctly installed. I prefer to utilize the CPAN Perl module, when I want to install a new Perl module, because I find it very handy and easy to use.

You are almost ready to start using the actual capabilities of TWiki. By directing your web browser to the URL <http://localhost/wiki/bin/view>, you will see figure 5.



Figure 5: Using Twiki

Administering TWiki

After successfully installing TWiki, you should now learn how to administer it. In this section, I will speak about the most important administrative tasks, as mentioning all of them would probably require a dedicated book chapter!

Creating a new Web

A Web is an autonomous independent area in TWiki that collects similar pages. It is a good practice to create Webs that have no logical relation to each other.

If you want to create a new Web with TWiki, you should go to the http://localhost/wiki/bin/view/TWiki/ManagingWebs URL. This is illustrated in figure 6. The reason for creating a new Web is mainly for separating logically different areas.



Figure 6: Creating a new Web.

As the text in figure 6 reads, you can rename a web by using the Tools section in its WebPreferences topic, whereas, you can delete a web by moving it into a Trash web.

Administering Users

There are mainly three important tasks that are user-related, and require an administrator to act on:

    1. Resetting a password. You should be a member of the TWikiAdminGroup, have a valid email address and go to the http://localhost/ wiki/bin/view/TWiki/ResetPassword URL in order to reset a password. The instructions inside the email that TWiki sends, will inform the user about the required actions that she needs to take.

    2. Blocking out a user. Although, blocking out a user does not conform to the Wiki philosophy, it is sometimes required to protect the other users. You should not use it very often though. The way to block out a malicious user is to reset his password, for a period of time, without telling him. At the end of the period, you will tell the user his new password and allow him to use TWiki again.

    3. Deleting a user. By describing how "difficult" it is to delete a user, you should understand, well, how often (or rarely) this should happen J. You should first locate a file named .htpasswd. This file holds the passwords of the TWiki users. You should delete the line that begins with the name of the user you want to remove. On my system, this file is located inside directory /Users/mtsouk/Sites/TWIKI/data. Then, you should go to the TWiki page, found in <http://localhost/wiki/bin/view/Main/TWikiUsers>. This page holds the list with all registered users. Figure 7 shows that page on my setup. You should now edit that TWiki page, and remove the user you want. Finally, for security reasons, you should delete any granted special rights the user might have.



Figure 7: The list of all registered TWiki users.

Backing up TWiki

The last important task that I want to mention is how to take a backup of your TWiki data. On my setup, data files are located inside the data directory. I prefer to use tar in combination to gzip, to take backups, so that is what I will show you. Give the "tar czvf ../TWIKIdata.tgz ." command inside the data directory and you are done! If for some reason you do not have the required user permissions to execute a command, put "sudo" in front of the command and try it again.

Using TWiki

In this section, I will only mention the basic procedures of TWiki, and therefore you should look at the extensive TWiki documentation if you want to look for more information.

WikiWords

A WikiWord is two or more words put together without spaces between the words, each of the words being written with an Initial Capital. Each WikiWord represents a topic name and it is advisable to insert WikiWords as often as you can. Correct examples of WikiWords are MacTech, MihalisTsoukalos, MacIntel, and PowerMac, whereas faulty examples of WikiWords are macTech, Powermac, Macbook, and Powerbook.

User Registration in TWiki

The first thing you have to do after the setup is to register yourself in TWiki. Registration can be done from the http://localhost/wiki/bin/view/TWiki/TWikiRegistration URL. If you want to make yourself an administrator, you have to manually access the http://localhost/wiki/bin/view/Main/TWikiAdminGroup TWiki page, and alter the line that says "Set GROUP =" by editing it and adding you own name.

As User Management and Authentication policies are complex issues, it is advisable to check the http://localhost/wiki/bin/view/TWiki/ManagingUsers URL for more information.

Editing Pages

Figure 8 shows an example of editing a new Wiki page in Sandbox whereas figure 9 presents the HTML output of the page. You can see that a Wiki offers many facilities for making your job easier, when creating new Wiki pages. You can even create HTML tables the Wiki way, insert HTML code, insert JavaScript code, and make use of Wiki plugins like the Spreadsheet Plugin. By pressing the question marks on the upper left of the AppleInc, HardWare and SoftWare WikiWords, you can simply create (and edit) new pages for those WikiWords! When we say that ease of use is built in the philosophy of Wikis, we mean it!



Figure 8: Creating a new TWiki page.



Figure 9: The HTML output of Figure 8 input.

If you do not want to create a link for a word that is by nature in a WikiWord format, you should put an exclamation mark in front of it, like !ToDo.

You can find more information about editing TWiki pages at <http://localhost/wiki/bin/view/TWiki/TextFormattingRules>.

A Criticism on Wikis

I will now briefly mention some concerns about Wikis. Please keep in mind that the actual problem comes from users and not from the Wiki philosophy itself. The possible Wiki problems are:

    1. You cannot be forced to use a Wiki, and therefore a Wiki that is not frequently updated will become obsolete.

    2. Wikis are Open Source systems. Therefore, a company must accept the use of Open Source software in order to also accept and use Wikis.

    3. For any information to be useful, it must also be neutral. Biased information does not help the success of a Wiki.

    4. Malicious users may cause problems, although, it is observed that vandalism is fixed very fast.

    5. Flame wars and trolls can occur in Wikis.

Conclusions

It should be clear by now that using a Wiki has many advantages. Their simplicity offers ease of use, and makes many of your jobs simpler. Wikis can also be used for taking simple notes or for writing down certain procedures.

You should practice and keep working with TWiki in order to be able to use it efficiently. At first glance, it seems a little complicated to learn how to efficiently use TWiki. Nevertheless, frequent use will make you feel more relaxed.

You should understand by now the Wiki philosophy, be able to install TWiki, and make the most essential actions on your installed TWiki. Keep on practicing in order to become a Wiki guru!

Bibliography and References


Mihalis Tsoukalos lives in Greece with his wife Eugenia. He is currently writing, "Widget Recipes: A Problem-Solution Approach" that will be published by APress. You can reach him at <tsoukalos@sch.gr>.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.