Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 2.27 KB

windows.md

File metadata and controls

61 lines (53 loc) · 2.27 KB
title description published date tags editor dateCreated
Windows
Getting started with a Wiki.js installation on Windows
true
2022-04-04 19:36:52 UTC
setup
markdown
2019-05-04 04:36:05 UTC

Before going any further, make sure your system meets all the requirements.

Install

  1. Open a Powershell prompt in administrator mode.
  2. If you are using Windows 7 / Windows Server 2008 R2 or older, you must run the following command. (otherwise skip this step)
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
  1. Download the latest version of Wiki.js:
Invoke-WebRequest -Uri "https://github.com/Requarks/wiki/releases/latest/download/wiki-js-windows.tar.gz" -OutFile "wiki-js.tar.gz"
  1. Extract the package to the final destination of your choice:
New-Item -Path "C:\" -Name "wiki" -ItemType "directory"
tar xzf wiki-js.tar.gz -C "C:\wiki"
cd C:\wiki

The tar utility is only available on Windows 10 and later. On earlier versions, you'll need a 3rd-party utility like 7-zip to extract the file. {.is-warning}

  1. Rename the sample config file to config.yml:
Rename-Item -Path config.sample.yml -NewName config.yml
  1. Edit the config file using your favorite text editor (e.g. Notepad) and fill in your database and port settings (Configuration Reference):
notepad .\config.yml
  1. For SQLite installations only: (skip this step otherwise) Fetch native bindings for SQLite3:
npm rebuild sqlite3
  1. Run Wiki.js
node server
  1. Wait until you are invited to open to the setup page in your browser.
  2. Complete the setup wizard to finish the installation.

Run as service

There are several solutions to run Wiki.js as a background service, e.g.:

{.align-abstopright}