This page is probably out of date, please see DokuWiki Amazon Linux 2 for more recent directions.
Enable EPEL repo and install apache
Download tarball from dokuwiki. https://download.dokuwiki.org/
Have root install php and create /etc/httpd/conf.d/wiki.nerdydrunk.com.conf and /var/www/wiki.nerdydrunk.com
# yum install php php-gd php-xml php-geshi php-email-address-validation
Install opcache to assist with using EFS.
yum install php56-opcache
Extract tarball and copy files
# cp -r ./dokuwiki/. /var/www/wiki.nerdydrunk.com
Secure via /etc/httpd/conf.d/wiki.nerdydrunk.com.conf
<Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/wiki.nerdydrunk.com/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> <LocationMatch "/(data|conf|bin|inc)/"> order allow,deny deny from all satisfy all </LocationMatch>
# service httpd restart
Create .htaccess files if needed /var/www/wiki/data/.htaccess
<IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> <IfModule mod_authz_core.c> Require all denied </IfModule>
# cp /var/www/wiki/.htaccess.dist /var/www/wiki/.htaccess
Change ownership
# sudo chgrp -R apache /var/www/wiki/*
# sudo chgrp -R apache /var/www/wiki/.h*
# sudo chmod 640 /var/www/wiki/.htaccess
# sudo chmod 640 /var/www/wiki/data/.htaccess
# sudo chmod 750 /var/www/wiki/data
# sudo chmod 750 /var/www/wiki/conf
# sudo chmod 750 /var/www/wiki/bin
# sudo chmod 750 /var/www/wiki/inc
Install DokuWiki https://wiki.nerdydrunk.com/install.php
Remove DokuWiki install
# rm /var/www/wiki.nerdydrunk.com/install.php
Clear up the appearance of the URL by removing the doku.php?id= portion.