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
sestatus sudo setenforce 0 sudo nano /etc/selinux/config sudo reboot sestatus
sudo yum install dnf
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 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
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
sudo tar -xvzf dokuwiki-stable.tgz
sudo mv dokuwiki-20* dokuwiki
sudo nano /etc/httpd/conf.d/wiki.craigthackerlab.org.conf
<VirtualHost *:80> ServerAdmin craigthacker@localhost DocumentRoot "/var/www/html/dokuwiki" ServerName wiki.craigthackerlab.org ServerAlias www.wiki.craigthackerlab.org ErrorLog "/var/log/httpd/wiki.craigthackerlab.org-error_log" CustomLog "/var/log/httpd/wiki.craigthackerlab.org-access_log" combined </VirtualHost>
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