How to install TWiki on Linux Mint Latest

Step 1: Download TWiki

Visit the TWiki official website and download the latest stable release.

wget https://github.com/TWiki/TWiki/releases/download/6.1.0/TWiki-6.1.0.tgz

Step 2: Extract the archive

Once the download is complete, extract the downloaded archive to the /var/www/html/ directory.

sudo tar -zxvf TWiki-6.1.0.tgz -C /var/www/html/

Step 3: Set file permissions

Change the file ownership to the web server user, so that the server can read and write the files.

sudo chown -R www-data:www-data /var/www/html/TWiki-6.1.0/

Step 4: Install Apache

If Apache is not already installed, you can install it using the following command:

sudo apt-get update
sudo apt-get install apache2

Step 5: Configure Apache

Create a new file twiki.conf in the /etc/apache2/sites-available/ directory.

sudo nano /etc/apache2/sites-available/twiki.conf

Add the following configuration:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/TWiki-6.1.0/
    <Directory /var/www/html/TWiki-6.1.0/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Save and close the file.

Once the configuration is created, enable the site and restart Apache.

sudo a2ensite twiki.conf
sudo systemctl restart apache2

Step 6: Configure CentOS Firewall

By default, CentOS has a firewall enabled. You have to open port 80 so that Apache can listen for incoming requests.

sudo ufw allow 80/tcp

Step 7: Install Perl modules

TWiki is built using Perl. In order for it to work properly, you need to install some Perl modules.

sudo apt-get install libdigest-perl-md5-perl

Step 8: Install ImageMagick

TWiki uses ImageMagick to manipulate images. ImageMagick can be installed via apt-get:

sudo apt-get install libimage-magick-perl

Step 9: Finish the installation

Open your web browser and go to http://localhost/ to finish the installation of TWiki. Follow the instructions on the screen to complete the installation.

Congratulations! You have successfully installed and configured TWiki on Linux Mint Latest.

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!