How to Install Wiki.js on Debian Latest
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.
Prerequisites
Before you begin, ensure that you have the following prerequisites:
- An instance of Debian latest with sudo privileges
- Node.js installed on your system
- NPM (Node Package Manager)
Step 1: Install MongoDB
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)".
Step 2: Install Wiki.js
- Create a directory for the Wiki.js installation.
sudo mkdir /var/www/wikijs
cd /var/www/wikijs
- Download and extract the latest version of the Wiki.js archive:
sudo curl -L "https://github.com/Requarks/wiki/releases/download/2.5.202/wiki-js.tar.gz" | sudo tar zxvf -
- Navigate to the extracted directory:
cd wiki-js
- Install Wiki.js using npm:
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
Step 3: Configure Firewall
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.
- Allow HTTP and HTTPS traffic:
sudo ufw allow http
sudo ufw allow https
- Enable the firewall:
sudo ufw enable
- Verify the firewall configuration:
sudo ufw status
The output should show that HTTP and HTTPS traffic are allowed.
Step 4: Start Wiki.js
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
Conclusion
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.