Here’s the basic steps (note below I’m using /swapfile as the swap name…which is the same name the Virtualmin install.sh uses if you created swap at install time; you probably want to delete it and create bigger one instead of adding another…see below for how):
Make an empty file of e.g. 2GB (must be root or use sudo):
ok. i missed that part in the other thread about this. i have actually just turned off the swapfile and increased its size, then chmod 600 and then turned it back on again.