Wiki.js is an open-source, modern, and powerful wiki application written in Node.js. It enables individuals and teams to create and manage documentation with ease. This tutorial will guide you through the process of installing Wiki.js on Debian latest.
Before you begin, ensure that you have the following prerequisites:
Wiki.js utilizes MongoDB as its backend data store. Therefore, we need to install MongoDB before installing Wiki.js. Follow the below command to install MongoDB.
sudo apt-get update
sudo apt-get install mongodb
Verify that MongoDB service is up and running by executing the following command:
sudo systemctl status mongodb
The output should show "active (running)".
sudo mkdir /var/www/wikijs
cd /var/www/wikijs
sudo curl -L "https://github.com/Requarks/wiki/releases/download/2.5.202/wiki-js.tar.gz" | sudo tar zxvf -
cd wiki-js
sudo npm install
Once the installation is complete, configure the application by generating a configuration file:
sudo node wiki configure
The setup prompt will guide you through the process of configuring Wiki.js. You will need to provide the following information:
- Database connection string
- Application URL
- Administrator account name and password
- Email server settings
Configure your firewall to allow HTTP (port 80) and HTTPS (port 443) traffic. You can use the below command to set up a firewall using UFW
.
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
sudo ufw status
The output should show that HTTP and HTTPS traffic are allowed.
Once you have finished the configuration setups, start the Wiki.js service:
sudo node wiki start
Verify that the service is running by navigating to your application URL in your preferred web browser.
http://YOUR_SERVER_IP
You have successfully installed Wiki.js on Debian Latest. With these steps, you can launch your documentation server quickly and efficiently to create, edit and manage your documents.
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!