====== Part 5: Install and Configure Wiki System ====== This page will show how to install and configure [[dokuwiki|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 {{:update.png?nolink&600|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 {{:installapache2.png?nolink&600|}} {{:installphp.png?nolink&600|}} 3. Navigate to web server’s root directory cd /var/www/html ls {{:cd_var.png?nolink&600|}} {{:ls.png?nolink&600|}} 4. Get the dokuwiki file from the website. sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz ls {{:wget_wiki.png?nolink&600|}} {{:ls1.png?nolink&600|}} 5. Extract the downloaded file. sudo tar -xvzf dokuwiki-stable.tgz ls {{:tar.png?nolink&600|}} {{:ls2.png?nolink&600|}} 6. Rename the file for quicker access. sudo mv dokuwiki-2024-02-06b dokuwiki ls {{:mv_ls.png?nolink&600|}} 7. Set the correct permissions: sudo chown -R www-data:www-data /var/www/html/dokuwiki sudo chmod -R 755 /var/www/html/dokuwiki {{:chmod_chown.png?nolink&600|}} 8. Configure Apache for DokuWiki sudo nano /etc/apache2/sites-available/dokuwiki.conf {{:nano.png?nolink&600|}} \\ Add the following content to the file: DocumentRoot /var/www/html/dokuwiki Options FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined {{:dokuwiki_conf.png?nolink&600|}} \\ Press ''Ctrl + X'', ''y'', ''Enter'' to save. 9. Enable the site and rewrite module: sudo a2ensite dokuwiki.conf sudo a2enmod rewrite {{:module.png?nolink&600|}} 10. Restart Apache to apply the changes sudo systemctl restart apache2 {{:restart_apache2.png?nolink&600|insert pic}} 11. Go to localhost and it should be there. \\ {{:lh.png?nolink&600|insert pic}} \\ To edit the wiki, go to the pencil and plus icon to edit wiki. {{:lh1.png?nolink&600|insert pic}} {{:lh2.png?nolink&600|insert pic}} \\ Once everything in the report is done, click ''Ctrl + P'' to save it as PDF. {{:lh3.png?nolink&600|insert pic}} ----- Now, you can have your own Wiki page to help other users navigate your OS.