This page will show how to install and configure DokuWiki.
Note: This is a guide on how to install and configure Wiki on localhost.
Below is a step-by-step guide on how to install Dokuwiki through the command line.
1. Before starting, ensure your Debian system is up to date.
sudo apt update
2. If you have not installed Apache and PHP, use the following commands:
sudo apt install apache2 sudo apt install php libapache2-mod-php php-cli php-xml
3. Navigate to web server’s root directory
cd /var/www/html ls
4. Get the dokuwiki file from the website.
sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz ls
5. Extract the downloaded file.
sudo tar -xvzf dokuwiki-stable.tgz ls
6. Rename the file for quicker access.
sudo mv dokuwiki-2024-02-06b dokuwiki ls
7. Set the correct permissions:
sudo chown -R www-data:www-data /var/www/html/dokuwiki sudo chmod -R 755 /var/www/html/dokuwiki
8. Configure Apache for DokuWiki
sudo nano /etc/apache2/sites-available/dokuwiki.conf
Add the following content to the file:
<VirtualHost *:80>
DocumentRoot /var/www/html/dokuwiki
<Directory /var/www/html/dokuwiki>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Press Ctrl + X, y, Enter to save.
9. Enable the site and rewrite module:
sudo a2ensite dokuwiki.conf sudo a2enmod rewrite
10. Restart Apache to apply the changes
sudo systemctl restart apache2
11. Go to localhost and it should be there.
To edit the wiki, go to the pencil and plus icon to edit wiki.
Once everything in the report is done, click Ctrl + P to save it as PDF.
Now, you can have your own Wiki page to help other users navigate your OS.