Install Wiki.js on Ubuntu 16.04 | 17.10 | 18.04

Wiki.js is a free lightweight open source wiki app built on Node.js… Unlike other wiki platform, Wiki.js doesn’t need a database… It saves all your content directly into Markdown (.md) files and that content is automatically synced with your remote Git repository.

Wiki.js source code is publicly available on Github ready for you to download and install…

For more about this wiki platform, please visit its homepage….

This brief tutorial shows you how to install Wiki.js on Ubuntu 16.04 | 17.10 | 18.04 LTS server…

When you’re ready, continue with the steps below:

Step 1: Install Git

Git is required in order to run Wiki.js… Git comes preinstalled in Ubuntu server… you might not need to install it… however, if you need the latest version of Git, add the repository below and install from it…

sudo add-apt-repository -y ppa:git-core/ppa
sudo apt update && sudo apt upgrade
sudo apt install git

After that the latest version of git should be installed and ready to use…

Step 2: Install Node.js

Another requirement for Wiki.js is Node.js… Wiki.js is built on Node.js and therefore required… Run the commands below to install Node.js

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs

After that, Node.js should be installed and ready to use as well….

Step 3: Install MongoDB

MongoDB is also one of the requirements for Wiki.js… Install the version that comes in Ubuntu repository… to install MongoDB, run the commands below….

sudo apt install mongodb

That should do it…

Step 4: Download and Install Wiki.js

Now that all the requirements are met, go and download Wiki.js install script… To do that, run the commands below…

sudo mkdir /var/www/wikijs
cd /var/www/wikijs
curl -sSo- https://wiki.js.org/install.sh | sudo bash

You should see a success message after installing…

 __    __ _ _    _    _     
/ / /\ \ (_) | _(_)  (_)___ 
\ \/  \/ / | |/ / |  | / __| 
 \  /\  /| |   <| |_ | \__ \ 
  \/  \/ |_|_|\_\_(_)/ |___/ 
                   |__/
   < INSTALL >

[1/3] Fetching latest build...
[2/3] Fetching dependencies...
[3/3] Creating config file...
-> Installation Complete

Thank you for installing Wiki.js!
Please consider donating to our open collective to help maintain this project:
https://opencollective.com/wikijs/donate

- Launch configuration wizard: node wiki configure
- Start Wiki.js server: node wiki start

After the installation, you’ll be prompted to run the config wizard… you can start the wizard by running the commands below…

sudo node wiki configure

You will see a message to browse to http://localhost:3000 to configure Wiki.js…

Open your browser and browse to the server hostname or IP address followed by the port #

http://localhost:3000

Wiki.js Ubuntu install

Start the wizard and configure it… Accept the default settings and continue…

wiki.js ubuntu setup

Validate that the info are correct… and create an admin account..

Wiki.js ubuntu setup

After that, Wiki.js should be installed and ready to use…

Wiki.js ubuntu setup

You may also like the post below:

Setup b2evolution on Ubuntu 16.04 / 17.10 / 18.04 with Nginx, MariaDB and PHP 7.2-FPM

One Reply to “Install Wiki.js on Ubuntu 16.04 | 17.10 | 18.04”

  1. Hey, i have a problem while downloading the wiki.js part. It says when i enter
    “sudo mkdir /var/www/wikijs” that there is no such file or directory. How can i fix this?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.