This is an old revision of the document!
sudo yum -y update
sudo amazon-linux-extras install -y php7.2
sudo yum -y install httpd php-xml mod_ssl
sudo vi /etc/httpd/conf/httpd.conf
Linux shell command with following contents:
Replace «Private IP Address of EC2 Instance»
Replace «Server Administrator Email address»
Replace «Website DNS»
Listen <<Private IP Address of EC2 Instance>>:80 ServerAdmin <<Server Administrator Email address>> ServerName <<Website DNS>>:80 <LocationMatch "/(data|conf|bin|inc|vendor)/"> order allow,deny deny from all satisfy all </LocationMatch>
sudo systemctl enable httpd sudo systemctl start httpd
For detailed installation procedure, refer to https://www.dokuwiki.org/install:amazone_ec2
To generate «dokuwiki download file», Goto https://download.dokuwiki.org/ URL from any web browser, select necessary options and click Start Download button
cd /var/www/html sudo wget https://download.dokuwiki.org/out/dokuwiki-<<.tgz sudo tar -zxvf dokuwiki-<<dokuwiki download file>>.tgz sudo rm -r dokuwiki-<<dokuwiki download file>>.tgz sudo chown -R apache dokuwiki sudo chgrp -R apache dokuwiki