$ sudo amazon-linux-extras install php7.2
$ sudo yum -y install php php-mbstring
$ sudo yum -y install httpd
$ sudo systemctl enable httpd.service
$ sudo systemctl start httpd.service
$ sudo vi /etc/httpd/conf/httpd.conf
LoadModule php7_module modules/libphp7.so
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
$ sudo su -
ServerTokens Prod
Header unset "X-Powered-By"
RequestHeader unset Proxy
Header append X-Frame-Options SAMEORIGIN
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options nosniff
TraceEnable Off
<Directory /var/www/html>
AllowOverride All
Options -Indexes
<IfVersion < 2.3>
ServerSignature Off
FileETag MTime Size
</IfVersion>
</Directory>
<Directory "/var/www/cgi-bin">
<IfVersion < 2.3>
ServerSignature Off
FileETag MTime Size
</IfVersion>
</Directory>
_EOF_
$ sudo systemctl restart httpd.service
$ wget https://ja.osdn.net/projects/pukiwiki/downloads/72656/pukiwiki-1.5.3_utf8.zip
$ unzip pukiwiki-1.5.3_utf8.zip
$adminpass = '{x-php-md5}...'; // PHP md5()
$modifier = 'yoheia';
$modifierlink = 'https://wiki.yoheia.com/';
$script = 'https://.../';
$script_directory_index = 'index.php';
$modifier = 'yoheia';
$modifierlink = 'https://...';
$ sudo cp -pr * /var/www/html/
$ sudo chown -R ec2-user:apache /var/www
$ sudo chmod g+x /var/www/html
$ sudo chown -R apache:apache /var/www/html/*