TWiki is a popular open-source wiki application that allows for easy collaborative editing and information sharing. In this tutorial, we'll demonstrate how to install TWiki on a Fedora Server.
Before we get started, there are a few things you'll need:
First, head over to the TWiki download page and select the latest version of TWiki that you want to install. The latest version at the time of writing is TWiki 6.1.0.
Use the following command to download the TWiki package:
$ wget https://github.com/TWiki/TWikiRelease/blob/master/TWiki-6.1.0.tar.gz
After downloading the TWiki package, extract it to a directory of your choice:
$ tar -xvzf TWiki-6.1.0.tar.gz
We'll move the TWiki-6.1.0
directory to the web server's root directory with mv
command:
$ mv TWiki-6.1.0 /var/www/html/twiki
Now, we need to configure the Apache web server.
Create a new configuration file twiki.conf
for TWiki:
$ nano /etc/httpd/conf.d/twiki.conf
Add the following lines to twiki.conf
file:
Alias /twiki /var/www/html/twiki/bin/view
<Directory "/var/www/html/twiki">
Options FollowSymLinks ExecCGI
AllowOverride None
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
Require all granted
</Directory>
Enable rewrite
and cgi
Apache module:
$ sudo a2enmod rewrite cgi
Restart Apache by running:
$ sudo systemctl restart httpd
TWiki is a Perl-based application. To run it, we need to install Perl and required Perl modules on our system.
Install Perl and required Perl modules through the following command:
$ sudo dnf install perl perl-CPAN
$ sudo cpan CGI Apache2::Request
TWiki stores its configuration information in the lib/LocalSite.cfg
file. We need to configure this file before starting TWiki.
Copy the LocalSite.cfg
file to the TWiki-6.1.0
directory and edit it:
$ cp /var/www/html/twiki/lib/LocalSite.cfg.txt /var/www/html/twiki/lib/LocalSite.cfg
$ nano /var/www/html/twiki/lib/LocalSite.cfg
Set the $twikiLibPath
variable to:
$twikiLibPath = '/var/www/html/twiki/lib';
Set the $dataDir
and $pubDir
variables to:
$dataDir = '/var/www/html/twiki/data';
$pubDir = '/var/www/html/twiki/pub';
Now everything is done. You can test that by accessing TWiki from any web browser:
http://your-server-address/twiki/bin/view
You should now be able to see the TWiki welcome screen!
That's all there is to it! You now have TWiki up and running on your Fedora Server. From here, you can customize it according to your needs and start collaborating with others to create great content!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!