DokuWiki is a wiki application licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database.

Step1. Install Apache

yum install httpd 

Step2. Start service

systemctl start httpd
systemctl enable httpd
systemctl status httpd

Step3. Enable HTTP port on the firewall

firewall-cmd --zone=public --permanent --add-service=httpĂ‚ 
firewall-cmd --reload

Step4. Install and configure PHP repository

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72

Step5. Install PHP packages

yum install php-mysql php-gd php-ldap php-xml php-xmlrpc php-mbstring php-mcrypt curl zlib libtool-ltdl php-pdo

Step6. Download Package

https://download.simplemachines.org/ and download.
wget https://download.dokuwiki.org/get?id=8a269cc015a64b40e4c918699f1e1142

Step7. Rename file

mv dokuwiki-8a269cc015a64b40e4c918699f1e1142  dokuwiki.zip

Step8. Unzip file

unzip dokuwiki.zip

Step9. Move folder in HTML folder

mv dokuwiki.zip /var/www/html/dokuwiki

Step10. Create a virtual host file

vi /etc/httpd/conf.d/dokuwiki.conf

<VirtualHost *:80>
     ServerAdmin localhost
     DocumentRoot "/var/www/html/dokuwiki/"
     ServerName 192.168.33.51
     ErrorLog "/var/log/httpd/dokuwiki-error_log"
     CustomLog "/var/log/httpd/dokuwiki-access_log" combined

     <Directory "/var/www/html/dokuwiki/">
         DirectoryIndex index.html index.php install.php
         Options FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>

Step11. Set permission

chown apache: /var/www/html/dokuwiki -R

Step12. Start the service

systemctl start httpd 

Step13. Access via browser

http://<server ip>/install.php

LEAVE A REPLY

Please enter your comment!
Please enter your name here