Wiki.js is a modern and powerful wiki application that can be used for documentation or knowledge management. In this tutorial, we will show you how to install Wiki.js on a Fedora server.
Before starting with the installation process, please make sure that you have the following prerequisites:
In order to install Wiki.js, we need to have Node.js installed on our system. You can install Node.js by running the following command:
sudo dnf install nodejs
After the installation, verify the Node.js version by typing the following command:
node --version
If the installation is successful, you will see the version number of Node.js installed on your system.
Wiki.js requires a database to store its data. We will use MariaDB as our database. You can install MariaDB by running the following command:
sudo dnf install mariadb-server
After the installation, start the MariaDB service and enable it to start automatically on boot:
sudo systemctl start mariadb
sudo systemctl enable mariadb
Then, run the following command to secure your MariaDB installation:
sudo mysql_secure_installation
Follow the on-screen instructions to set the root password and secure your installation.
Once your MariaDB installation is secured, you need to create a new database for Wiki.js. You can do this by running the following commands:
sudo mysql -u root -p
Enter the MariaDB root password when prompted, then run the following SQL commands to create a new database and user:
CREATE DATABASE wikidb;
GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'wikipassword';
FLUSH PRIVILEGES;
EXIT;
This will create a new database named "wikidb" and a new database user named "wikiuser" with password "wikipassword".
We will now download and install Wiki.js on our system. To do this, first, navigate to the "/opt" directory on your server.
cd /opt
Then, clone the Wiki.js repository from Github by running the following command:
sudo git clone https://github.com/Requarks/wiki.git wiki
Next, navigate to the "wiki" directory and run the following command to install the necessary dependencies:
cd wiki
sudo npm install
Finally, run the following command to configure Wiki.js:
sudo npm run setup
This will launch the Wiki.js configuration wizard. Follow the on-screen instructions to set up your installation.
During the installation, you will need to provide the following information:
Once the installation is complete, run the following command to start the Wiki.js server:
sudo npm start
This will start the Wiki.js server on port 3000.
You can now access Wiki.js by opening your web browser and navigating to "http://your_server_ip:3000". You should see the Wiki.js home page.
Congratulations! You have successfully installed Wiki.js on your Fedora server.
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!