===== DokuWiki CentOS 6 =====
This page is probably out of date, please see [[dokuwiki:amazon_linux_2|DokuWiki Amazon Linux 2]] for more recent directions.
{{tag>Linux CentOS AWS DokuWiki}}
==== CentOS ====
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
Options FollowSymLinks
AllowOverride all
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
order allow,deny
deny from all
satisfy all
# service httpd restart
Create .htaccess files if needed /var/www/wiki/data/.htaccess
Order deny,allow
Deny from all
Require all denied
# 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.
* Verify "AllowOverride all" is enabled in httpd.conf
* Uncomment lines in .htaccess and adjust document root option
* Enable UseRewrite in dokuwiki settings or local.conf