You must copy the downloaded file to your asterisk server (virtual or not, it is the same), and then run all installation commands from the server command line.
If you can login via ssh (you can use putty on windows, ssh in osx or linux terminal), and want to download the file directly from the server, you can do this once you are logged into the server:
cd /usr/src
wget -O fop2.tgz http://www.fop2.com/file.php?file=11
tar zxvf fop2.tgz
cd fop2
make
cd /usr/local/fop2
cat extensions_override_freepbx.conf >> /etc/asterisk/extensions_override_freepbx.conf
echo "callevents=yes" >> /etc/asterisk/sip_general_custom.conf
That will perform a basic and almost complete installation, the other thing left to do would be to create the fop2 database and modify /var/www/html/fop2/config.php with the correct mysql credentials if you want the phonebook to work.
You should also check that the manager credentials are correct:
/usr/local/fop2/fop2_server --test
If they are not, you must edit /etc/asterisk/fop2.cfg and set the manager user and password correctly.
Finally, disable fop1
/usr/sbin/amportal stop_fop
And run fop2
service fop2 start
To disable fop1 permanently, edit /etc/amportal.conf and set FOPRUN=false