Internal Documentation in 2019: An Install of DocuWiki/OpenWiki for Small Scale Infrastructures in CentOS 7

Check network settings

sudo nmtui

Change hostname & settings and go to:

sudo nano /etc/hosts

Append any host names and aliases for Internal Network

sudo yum update

Check SELinux with sestatus command, if enabled, follow with other instructions


sudo setenforce 0

sudo nano /etc/selinux/config

sudo reboot

sudo yum install dnf
sudo rpm -Uvh
sudo rpm -Uvh

sudo yum update
sudo yum install mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml
sudo yum install httpd mariadb mariadb-server
sudo nano /etc/httpd/conf/httpd.conf

Find /var/www/html inside

Change to say:

AllowOverride All
sudo systemctl start httpd
sudo systemctl enable httpd
cd /var/www/html


sudo tar -xvzf dokuwiki-stable.tgz
sudo mv dokuwiki-20* dokuwiki
sudo nano /etc/httpd/conf.d/
<VirtualHost *:80>
ServerAdmin craigthacker@localhost
DocumentRoot "/var/www/html/dokuwiki"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

sudo systemctl restart httpd

Watch for errors at last command

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

Follow Installation script and install complete.



If Installing in a VM & want accessible to other hosts in internal network:

sudo iptables -I INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT

To make persistent, then go to & add the following lines to iptables:

sudo nano /etc/sysconfig

-A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT

Leave a Comment

Your email address will not be published. Required fields are marked *