Installing DokuWiki on Windows 11

DokuWiki is a free and open-source wiki software that allows users to create and manage documentation on a web server. This tutorial will guide you through the process of installing DokuWiki on your Windows 11 computer.

Prerequisites

Before we begin, make sure you have the following:

  • Windows 11 operating system
  • Web server software, such as Apache or Nginx, installed and configured
  • PHP programming language installed and configured
  • MySQL or MariaDB database server installed and configured

Step 1: Download DokuWiki

The first thing you need to do is download the latest version of DokuWiki from the official website at https://www.dokuwiki.org/DokuWiki. Once you have downloaded the ZIP file, extract it to a directory on your computer.

Step 2: Create a database

Next, you need to create a database for DokuWiki. If you're using MySQL or MariaDB, you can use phpMyAdmin or another database management tool to create a new database. Make sure to note down the database name, username, and password as you will need them later.

Step 3: Configure Apache

If you're using Apache as your web server, you need to configure it to run DokuWiki. Open the Apache configuration file in a text editor and add the following lines to it:

Alias /dokuwiki "C:/path/to/dokuwiki/"
<Directory "C:/path/to/dokuwiki/">
    Options FollowSymLinks Indexes MultiViews
    AllowOverride All
    Require all granted
</Directory>

Replace "C:/path/to/dokuwiki/" with the actual path to the directory where you extracted DokuWiki.

Step 4: Configure DokuWiki

Open the "conf/local.php" file in a text editor and add the following lines to it:

$conf['superuser'] = '@admin';
$conf['useacl'] = 1;
$conf['authtype'] = 'authmysql';
$conf['plugin']['authmysql']['auth']['mysql']['dsn'] = 'mysql:host=localhost;dbname=dokuwiki';
$conf['plugin']['authmysql']['auth']['mysql']['user'] = 'your_username';
$conf['plugin']['authmysql']['auth']['mysql']['password'] = 'your_password';
$conf['plugin']['authmysql']['debug'] = 0;

Replace "admin" with your desired superuser login name. Change "your_username" and "your_password" to your MySQL or MariaDB database username and password.

Step 5: Run the installation script

Open your web browser and navigate to "http://localhost/dokuwiki/install.php". Follow the on-screen instructions to complete the installation process.

Step 6: Access your DokuWiki installation

After completing the installation, you can access your DokuWiki installation by navigating to "http://localhost/dokuwiki" in your web browser. Log in using your superuser login name and password to start creating and managing your documentation.

Congratulations! You have successfully installed DokuWiki on your Windows 11 computer.