Have a look at my tutorial for setting up a LAMP server on debian/ubuntu. It details exactly what packages you need to apt-get and how to change the MySQL root password.
do you by any chance know how I can setup an online classifieds?
I have a registered domain, they are linux based. They use my sql and php. I downloaded a script from the net but have no idea how it works. Can you help?