AWS Amazon Linux 2 MediaWiki
Purpose
Migrate an old media wiki installation to Amazon Linux 2 on AWS.
What I wanted to accomplish was to move an internal wiki install from VMware esxi to AWS. This is to be made available from the internet the local LAN, but with ACLs on the internet facing side because of obvious reasons. Still thinking how I want to handle this...
Pre-configure Instance
This is a lightly used site, so I am using a the t2.medium instance type.
sudo yum update -y sudo amazon-linux-extras install lamp-mariadb10.2-php7.2 sudo yum -y install mod_ssl php-gd php-xml php-mbstring mariadb-server sudo rm -f /etc/httpd/conf.d/welcome.conf sudo sed -i 's/expose_php\ =\ On/expose_php\ =\ off/; s/upload_max_filesize\ =\ 2M/upload_max_filesize\ =\ 128M/; s/post_max_size\ =\ 8M/post_max_size\ =\ 64M/; s/max_execution_time\ =\ 30/max_execuion_time\ =\ 180/' /etc/php.ini
- Setup the database
sudo mysql_secure_installation Set root password? [Y/n] Y New password: Re-enter new password: Remove anonymous users? [Y/n] Y Disallow root login remotely? [Y/n] Y Remove test database and access to it? [Y/n] Y Reload privilege tables now? [Y/n] Y