View Single Post
Old 10-20-2011, 04:55 PM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Copy the files using cp -a. The -a part is important.

Copy the database using mysqldump.
Adjust the base and WP url in the dump before loading.

Set the config.php to point to the the new database. Also in config.php change any fully qualified paths to relative.

Done.


If you are using unfortunate enough to be using Plesk, change the file ownership with find . -uid olduser -exec chown newuser {} \;
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote