User Tools

Site Tools


wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki [2025/01/18 04:02] – 1211112228wiki [2025/01/18 10:29] (current) – 1211112228
Line 1: Line 1:
 ====== Part 5: Install and Configure Wiki System ====== ====== Part 5: Install and Configure Wiki System ======
-The wiki we have chosen is DokuWiki.+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.** **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. Below is a step-by-step guide on how to install Dokuwiki through the command line.
  
Line 13: Line 13:
   sudo apt install apache2   sudo apt install apache2
   sudo apt install php libapache2-mod-php php-cli php-xml   sudo apt install php libapache2-mod-php php-cli php-xml
 +{{:installapache2.png?nolink&600|}}
 {{:installphp.png?nolink&600|}} {{:installphp.png?nolink&600|}}
-{{:installapache2.png?nolink&600|}} 
  
 3. Navigate to web server’s root directory 3. Navigate to web server’s root directory
-  Cd /var/www/html +  cd /var/www/html 
-  Ls +  ls 
-{{:ls.png?nolink&600|insert pic}}+{{:cd_var.png?nolink&600|}} 
 +{{:ls.png?nolink&600|}}
  
      
Line 26: Line 26:
   sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz   sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
   ls   ls
-insert pic+{{:wget_wiki.png?nolink&600|}} 
 +{{:ls1.png?nolink&600|}}
  
-5. Unzip the file.+5. Extract the downloaded file.
   sudo tar -xvzf dokuwiki-stable.tgz   sudo tar -xvzf dokuwiki-stable.tgz
   ls   ls
-insert pic+{{:tar.png?nolink&600|}} 
 +{{:ls2.png?nolink&600|}} 
  
 6. Rename the file for quicker access. 6. Rename the file for quicker access.
   sudo mv dokuwiki-2024-02-06b dokuwiki   sudo mv dokuwiki-2024-02-06b dokuwiki
   ls   ls
-insert pic+{{:mv_ls.png?nolink&600|}} 
  
 7. Set the correct permissions: 7. Set the correct permissions:
   sudo chown -R www-data:www-data /var/www/html/dokuwiki   sudo chown -R www-data:www-data /var/www/html/dokuwiki
   sudo chmod -R 755 /var/www/html/dokuwiki   sudo chmod -R 755 /var/www/html/dokuwiki
 +{{:chmod_chown.png?nolink&600|}} 
  
 8. Configure Apache for DokuWiki 8. Configure Apache for DokuWiki
   sudo nano /etc/apache2/sites-available/dokuwiki.conf   sudo nano /etc/apache2/sites-available/dokuwiki.conf
-insert pic +{{:nano.png?nolink&600|}} 
-Add the following content to the file:+\\ Add the following content to the file:
   <VirtualHost *:80>   <VirtualHost *:80>
     DocumentRoot /var/www/html/dokuwiki     DocumentRoot /var/www/html/dokuwiki
Line 56: Line 59:
     CustomLog ${APACHE_LOG_DIR}/access.log combined     CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>   </VirtualHost>
-insert pic +{{:dokuwiki_conf.png?nolink&600|}} 
-Press ''Ctrl + X'', ''y'', ''Enter'' to save.+\\ Press ''Ctrl + X'', ''y'', ''Enter'' to save.
  
 9. Enable the site and rewrite module: 9. Enable the site and rewrite module:
   sudo a2ensite dokuwiki.conf   sudo a2ensite dokuwiki.conf
   sudo a2enmod rewrite   sudo a2enmod rewrite
-insert pic+{{:module.png?nolink&600|}}
  
 10. Restart Apache to apply the changes 10. Restart Apache to apply the changes
   sudo systemctl restart apache2   sudo systemctl restart apache2
-insert pic+{{:restart_apache2.png?nolink&600|insert pic}}
  
 11. Go to localhost and it should be there. 11. Go to localhost and it should be there.
-insert pic +\\ {{:lh.png?nolink&600|insert pic}} 
- +\\ To edit the wiki, go to the pencil and plus icon to edit wiki. 
-To edit the wiki, go to the pencil and plus icon to edit wiki. +{{:lh1.png?nolink&600|insert pic}} 
-insert pic +{{:lh2.png?nolink&600|insert pic}} 
-insert pic +\\ Once everything in the report is done, click ''Ctrl + P'' to save it as PDF. 
-Once everything in the report is done, click Ctrl + P to save it as PDF. +{{:lh3.png?nolink&600|insert pic}} 
-insert pic +----- 
 +Now, you can have your own Wiki page to help other users navigate your OS.
wiki.1737172926.txt.gz · Last modified: 2025/01/18 04:02 by 1211112228

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki