Transfer WordPress site from one server to another (steps)
- transfer files
- setup permissions as follows
chown -R www-data:www-data /var/www/html find /var/www/html/ -type f -exec chmod 664 {} + find /var/www/html/ -type d -exec chmod 755 {} +
- transfer database
- confirm that wp-config.php hostname and database names are correct
- edit wp_options table and change siteurl and home to match the new server domain