Install WikiJS on your POWER web hosting plan
Find out how to install WikiJS on your POWER web hosting plan
Find out how to install WikiJS on your POWER web hosting plan
Last updated 4th February 2021
You've subscribed to a Web POWER web hosting plan to deploy Node.js applications, and you want to deploy a WikiJS wiki platform on it.
This guide will explain how to do it.
Find out how to install WikiJS on your POWER web hosting plan.
If you have just started to use your Web POWER web hosting plan, we suggest to have a look at our Getting started with a POWER web hosting plan guide before going further.
Let's suppose you have the default configuration for Node.js hosting:
To verify your configuration, you can use the Retrieve active configuration API endpoint.
Connect via SSH to your POWER web hosting.
Let's begin by going into the www
folder and retrieving WikiJS source:
cd www
wget https://github.com/Requarks/wiki/releases/download/2.5.170/wiki-js.tar.gz
tar xzf wiki-js.tar.gz
rm -f wiki-js.tar.gz
Create a config.yml
file:
port: 3000
db:
type: sqlite
storage: database.sqlite
logLevel: info
dataPath: ./data
and rebuild the sqlite3
module:
npm rebuild sqlite3
Make the symlink for the entry point:
ln -fs server/index.js index.js
Then restart your instance and your WikiJS will be online.
Terminal output:
~ $ cd www
~/www $ wget https://github.com/Requarks/wiki/releases/download/2.5.170/wiki-js.tar.gz
--2021-02-03 14:50:23-- https://github.com/Requarks/wiki/releases/download/2.5.170/wiki-js.tar.gz
Resolving github.com (github.com)… 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443… connecté.
TTP request sent, awaiting response... 200 OK
Length: 65010291 (62M) [application/octet-stream]
Saving to: « wiki-js.tar.gz »
wiki-js.tar.gz 100%[===============================================>] 62,00M 19,9MB/s ds 3,1s
2021-02-03 14:50:28 (19,9 MB/s) — « wiki-js.tar.gz » saved [65010291/65010291]
~/www $ tar xzf wiki-js.tar.gz
~/www $ rm -f wiki-js.tar.gz
~/www $ vi config.yml
port: 3000
db:
type: sqlite
storage: database.sqlite
logLevel: info
dataPath: ./data
~/www $ npm rebuild sqlite3
> sqlite3@5.0.0 install /home/user/www/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: "/home/user/www/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
sqlite3@5.0.0 /home/user/www/node_modules/sqlite3
~/www $ ln -fs server/index.js index.js
~/www $ mkdir -p tmp
~/www $ touch tmp/restart.txt
Join our community of users on https://community.ovh.com/en/.
Join our Gitter room to discuss directly with the POWER Web Hosting team and the other users of this lab.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community