It has been several years since I have done it. You make a backup of your files and database first. Upload the v5 files to your phpvms. there should be a updaet.php file in the install directory. www.yoursite.com/install/update.php something like that.
If you have old mods, they may not work. Read the readme that is included before you start.