User Tools

Site Tools


wiki

This is an old revision of the document!


Part 5: Install and Configure Wiki System

The wiki we have chosen is 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

insert pic

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

insert pic

4. Get the dokuwiki file from the website.

sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
ls

insert pic

5. Unzip the file.

sudo tar -xvzf dokuwiki-stable.tgz
ls

insert pic

6. Rename the file for quicker access.

sudo mv dokuwiki-2024-02-06b dokuwiki
ls

insert pic

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

insert pic 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>

insert pic Press Ctrl + X, y, Enter to save.

9. Enable the site and rewrite module:

sudo a2ensite dokuwiki.conf
sudo a2enmod rewrite

insert pic

10. Restart Apache to apply the changes

sudo systemctl restart apache2

insert pic

11. Go to localhost and it should be there. insert pic

To edit the wiki, go to the pencil and plus icon to edit wiki. insert pic insert pic Once everything in the report is done, click Ctrl + P to save it as PDF. insert pic

wiki.1737172944.txt.gz · Last modified: 2025/01/18 04:02 by 1211112228

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki