Well, for one thing, you are not attempting a migration but new installs.
Not enough information ...
What operating system? (makes a difference in how to install) Where hosted? (and how ... shared/dedicated/other) Does your server meet specs for running 3.9.1? Apache/Nginx? MySQL/MariaDB (and versions), php version?
does a nice job in putting it all on one screen.
Have you Googled that error? It's a web service error that could have many causes.
And, have you read/followed any docs/tutorials for installing Moodle? If so where (url please).