Put the 5.x boot image on a USB stick
Boot your server with it
Select "install / upgrade" from the boot menu
Locate your server with the synology assistant
Upload the new image
Log onto the web interface
Go into package centre and update your apps
Very straightforward and painless