Overview
Migrating a website involves copying files, databases, and DNS records from the old server to your new Kazepute Breeze. Here's a step-by-step process.
Step 1: Prepare the New Server
# Install required software
sudo apt update
sudo apt install -y nginx php8.2-fpm php8.2-mysql mariadb-server
# Create database
sudo mysql -e "CREATE DATABASE mysite"
sudo mysql -e "CREATE USER 'mysite'@'localhost' IDENTIFIED BY 'secure_pass'"
sudo mysql -e "GRANT ALL ON mysite.* TO 'mysite'@'localhost'"Step 2: Export from Old Server
# On old server — dump database
mysqldump -u root mysite > mysite.sql
# Compress website files
tar -czf website.tar.gz /var/www/mysiteStep 3: Transfer Files
# From old server to new
scp mysite.sql root@NEW_IP:/tmp/
scp website.tar.gz root@NEW_IP:/tmp/
# Or use rsync for large sites
rsync -avz /var/www/mysite/ root@NEW_IP:/var/www/mysite/Step 4: Import on New Server
# Import database
mysql -u root mysite < /tmp/mysite.sql
# Extract files
tar -xzf /tmp/website.tar.gz -C /
# Fix permissions
chown -R www-data:www-data /var/www/mysiteStep 5: Update DNS
Lower TTL 24 hours before migration, then point your domain's A record to the new server IP. Verify everything works before removing the old server.