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
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/
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/
If Apache is not already installed, you can install it using the following command:
sudo apt-get update
sudo apt-get install apache2
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
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
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
TWiki uses ImageMagick to manipulate images. ImageMagick can be installed via apt-get:
sudo apt-get install libimage-magick-perl
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!