[ubuntu] How to make my UBUNTU machine a web server

view story

http://ubuntuforums.org – I have installed Ubuntu 12.04 on my virtual machine. I want that machine to be a web server. I have my public IP, enough storage and every thing else; no worries. What I really need a help on is that, I just installed only the Ubuntu OS and I want to make this machine to be my web server. I some how know the stuffs to be installed but I need an advice on the CORRECT precedence (which one should be installed first and which goes next) and I also like to know how to secure my phpmyadmin out of the root (www) folder either during or after installation. I don want any one to sniff on my DB through (Hardware)