(Updated on 20220528, fixed the sudo usage, thanks for feedback. support current LAMP droplet image with PHP8.1; works on Ubuntu 20.04 LTS as well as 18.04 LTS, also, thanks to feedback from readers, can run on Amazon Linux 2, CentOS 7, Debian 9 and Ansible. I have included snippets at…