Take a look at Moving WordPress « WordPress Codex; you’re essentially moving a WordPress site from one host to another, except you didn’t do the download and database export yourself from the old host.
As for differences at Digital Ocean and with a VPS and if it is a managed or unmanaged server (if you need to configure vhosts and httpd.conf, etc., on a brand new server), you need to ask them.
but having never done something like this before, I have no idea what sort of setup needs to be done
Are you familiar with admin on a Linux system? If not, I’d like to suggest that you not move to an unmanaged VPS environment. There’s a LOT more to running a server than WordPress — starting right from the top with the choice of an OS, through installing the right packages, configuring them,and keeping them all up to date, securing access, securing the file system,and so on. If you don’t have experience with this, you should look into Managed WordPress hosting from vendors like DreamPress, WP-Engine, and others.It will cost more than a raw VPS, but they do all that management for you.
Sorry, I should have clarified: I’m already familiar with Linux and quite comfortable with managing a Debian system; I use one every day. The ‘something like this’ I’ve never done before is a WordPress migration, and my admittedly limited experience with WordPress has made me skittish of trying anything with it that a living, breathing human hasn’t confirmed.
If the standard migration procedure works in my situation, I’ll go ahead and do that.
OK, cool. too many folks get a VPS then we spend hours teaching them Linux basics after they get hacked. 🙂
mysql -u root -p
create database mywp_database;
grant all on my wp_database.* to 'mywp_database_user'@'localhost' identified by 'password';
exit
gzip -d datbaseexport.sql.gz
mysql -u root -p mywp_database < databaseexport.sql
Then put the WP files in /var/www/mywpwebsite, point a virtualhost to it. and you should be good to go.
One more thing. In your httpd.conf (apache2.conf) file, add
<Directory /var/www/mywpwebsite>
AllowOverride All
</Directory>
DO has all kinds of tutorials for installing WordPress: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04
If you’ve already got WordPress running, follow https://codex.ww.wp.xz.cn/Moving_WordPress Replace all WP files and foldes with your copies, and import the database, edit wp-config.php for the new database name, etc.