If you not against a remote install to test, there is a complete stack AWS install script in this github repo. It also has the server install process in the code which may help as well.
https://github.com/danjamk/matomo-aws-server