In this tutorial, we will be explaining how to install WiKiss on Ubuntu Server Latest. WiKiss is a lightweight wiki engine, which can be used for documentation, brainstorming, or just plain text editing. This guide assumes that you have already set up a Ubuntu Server Latest and have the necessary permissions.
Before we jump into downloading WiKiss, we will have to install some dependencies. Open the terminal on your Ubuntu server and type the following command:
sudo apt-get update && sudo apt-get install apache2 php mysql-server php-mysql
This command will update your apt-get package manager and install Apache, PHP, MySQL, and the PHP-MySQL extension that will be required for WiKiss to run. It will also enable Apache to launch during startup.
Now, you will have to download WiKiss from the official website. Visit the following URL:
Click on the "Download" button and download the latest stable release. After downloading the package, extract it to a folder of your choice.
After extracting the package to a folder of your choice, we will have to move the package contents to the Apache web server folder. Use the following command to copy the WiKiss folder to your Apache server folder.
sudo cp -r /path/to/wikiss/folder/* /var/www/html
This command will copy all the files and folders of WiKiss to the Apache web server folder, which is "/var/www/html" by default.
Once the files and directories have been copied, we need to give the necessary permissions to Apache for the files to be viewed.
sudo chown -R www-data:www-data /var/www/html
This command will give read and write permissions to Apache for the WiKiss files and directories.
We will now configure a MySQL database and user for WiKiss to use. To do this, log in to mysql using the following command:
sudo mysql -u root -p
This command will prompt you for the root user's password. Enter it and press Enter.
Once you have entered the MySQL prompt, we will create a new database for WiKiss to use. Use the following command to create a new database:
CREATE DATABASE wikiss;
Next, we will create a new user for this database. Use the following command to create a new user:
CREATE USER 'wikissuser'@'localhost' IDENTIFIED BY 'password';
Make sure to replace "password" with a strong, secure password.
We have created a new database and user. Now, we will give this user access to the new database we created. Use the following command to do so:
GRANT ALL PRIVILEGES ON wikiss.* TO 'wikissuser'@'localhost';
After completing these steps, exit the MySQL prompt using the following command:
exit
We now have to configure the WiKiss configuration file to use our new MySQL database and user. Navigate to the "config" folder in the WiKiss file you downloaded and copy the "config.inc.php.sample" file to "config.inc.php" using the following command:
sudo cp /path/to/wikiss/folder/config/config.inc.php.sample /path/to/wikiss/folder/config/preproduction.inc.php
Replace "/path/to/wikiss/folder" with the path to the WiKiss folder you extracted earlier.
Next, open the "config.inc.php" file in a text editor and change the following variables:
$wgDBtype = 'mysql';
$wgDBserver = 'localhost';
$wgDBname = 'wikiss';
$wgDBuser = 'wikissuser';
$wgDBpassword = 'password';
Replace "password" with the password you had set for the user in the earlier step.
Save the file and exit the text editor.
We have to enable "mod_rewrite" for WiKiss to run properly. Use the following command to enable "mod_rewrite":
sudo a2enmod rewrite
After making these changes, we will have to restart Apache for the changes to take effect. Use the following command to restart Apache:
sudo systemctl restart apache2
After Apache has restarted, WiKiss should now be accessible by visiting the address of your Ubuntu Server on your browser. For example, if your server IP address is 192.168.0.100, visit the following URL on your browser:
You will be greeted by the WiKiss page, and you are now ready to start using WiKiss.
Wrapping Up
In this tutorial, we learned how to set up and install WiKiss on Ubuntu server Latest. We hope that this tutorial was informative, and you were able to install WiKiss without any issues.
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!