Install Twiki on Ubuntu

This is a short guide on how to install Twiki 6.0.0 on Ubuntu 14.04.

Install all of the relevant dependencies.

sudo apt-get installapache2 libgdal-perl libcgi-session-perl 
libhtml-tree-perl liberror-perl libfreezethaw-perl libjpeg62 
rcs libapache2-mod-perl2-doc libapache2-mod-perl2 
libapache2- mod-php5 latex2html

Download Twiki

If installing in the default directory for Apache (/var/www/html) place the downloaded zip/tar.gz

file in

/var/www/html (http://twiki.org/cgi-bin/view/Codev/DownloadTWiki).

Install Twiki

cp /var/www/html/twiki/bin/LocalLib.cfg.txt  /srv/www/html/localhost
/twiki/bin/LocalLib.cfg
chown -R www-data:www-data /var/www/html/twiki

Configure Twiki
Go to this link and have the page generate the configuration needed for your apache and perl

configuration.

http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator

Save the generated configuration to /etc/apache2/conf.d/twiki.conf

Restart Apache2

sudo /etc/init.d/apache2 reload

Allow configuration file to know where the path to the configuration should be put.

Edit /var/www/html/twiki/bin/LocalLib.cfg:

     $twikiLibPath = "/var/www/html/twiki/lib";

Run Twiki config.
Configure your twiki: go to http://localhost/twiki/bin/configure, setup admin password

and paths.

Edit /var/www/html/twiki/bin/LocalLib.cfg:

     $twikiLibPath = "/var/www/html/twiki/lib";

Note : Do not forget to enable cgi.load by

sudo a2enmod cgi
sudo service apache2 restart

Enable the conf.d directory created by you for twiki.conf file in apache2.conf file.

Leave a Reply

Your email address will not be published. Required fields are marked *