Custom WordPress Installer for Virtualmin GPL

This WordPress installer for Virtualmin has been doing the rounds online for years, but it is slowly disappearing, so I figured I would post it here for easy access.

I have made some minimal changes so that is downloads the latest version from WordPress and checks for PHP7 and PHP5

Download here:

Install it here:

Then, login to Virtualmin -> Installer Scripts and there will be "Wordpress" option