===== DokuWiki Amazon Web Services (AWS) =====
{{tag>Linux CentOS AWS DokuWiki}}
==== AWS ====
The installation of DokuWiki is almost the same on the Amazon Linux AMI as it is on CentOS 6. There are a few AWS specific things that I did before installing DocuWiki. Elastic File System (EFS) is used to store the DokuWiki files so DokuWiki can quickly be scaled across multiple servers. Simple Email Service (SES) is used for emailing from the server things like; logwatch, fail2ban, site registration, backup script status.
Enable the EPEL repo by editing /etc/yum.repos.d/epel.repo
[epel]
enabled=1
Mount EFS as /var/www
* https://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html
* https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html
* https://docs.aws.amazon.com/efs/latest/ug/mount-fs-auto-mount-onreboot.html
Or just use the Amazon EFS utilities
$ sudo yum install -y amazon-efs-utils
$ sudo mount -t efs -o tls fs-12a34b56:/ /var/www
$ echo "fs-12a34b56:/ /var/www efs tls,_netdev 0 0" | sudo tee -a /etc/fstab
Install Apache with Mod SSL
[ec2-user@ip-10-10-10-10 ~]$ sudo yum install httpd mod_ssl -y
Configure SES
* http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sendmail.html
Continue on with the CentOS portion of the installation and then create an Amazon Machine Image (AMI) of your completed server.
{{ :images:svg:wiki.svg | Wiki}}