Copy all the files.
Copy the database.
Restore .htaccess file.
Edit app/etc/local.xml Change the database details
UPDATE the core_config_data table - Fix the base directory
select * from core_config_data where path like "%base%";
update core_config_data set value="http://www.domain.com/" where config_id=X or confg_id=Y
where X and Y are from the select statement above.
Clear the cache and session data.
rm -rf var/cache/*
rm -rf var/session/*
Test out the website!