Follow the LAMP tutorial and install in new machine.
Move all the /var/www files over.
Export the SQL database and import in the machine.