Website Migration to New Hosting

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Website Migration to New Hosting

Changing hosting is a downtime risk. Proper process: set up a copy on new hosting, verify it works, only then switch DNS.

Migration Stages

1. Preparing the new server

# Installing LEMP stack on Ubuntu 22.04
sudo apt update && sudo apt upgrade -y
sudo apt install -y nginx mysql-server php8.2-fpm php8.2-mysql php8.2-gd \
  php8.2-curl php8.2-zip php8.2-mbstring php8.2-xml php8.2-intl redis-server

# For Node.js projects
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs

2. Copying files

# rsync preserving permissions and symlinks
rsync -avz --progress --exclude='.git' \
  -e "ssh -p 22" \
  user@old-server:/var/www/mysite/ \
  user@new-server:/var/www/mysite/

# For large sites — via compressed archive
tar -czf /tmp/mysite.tar.gz -C /var/www mysite/
scp /tmp/mysite.tar.gz user@new-server:/tmp/
ssh user@new-server "tar -xzf /tmp/mysite.tar.gz -C /var/www/"

3. Database migration

# MySQL: dump and restore
mysqldump -u root -p mysite_db > /tmp/mysite_db.sql
scp /tmp/mysite_db.sql user@new-server:/tmp/
ssh user@new-server "mysql -u root -p new_db < /tmp/mysite_db.sql"

# PostgreSQL
pg_dump -U mysite mysite_db > /tmp/mysite_db.sql
scp /tmp/mysite_db.sql user@new-server:/tmp/
ssh user@new-server "psql -U mysite new_db < /tmp/mysite_db.sql"

4. Setup on new server

  • Nginx/Apache virtual host
  • Environment variables (.env)
  • SSL certificate
  • Directory permissions (storage, cache, uploads)
  • Cron jobs
  • Queue workers (if any)

5. Verification via hosts file (without DNS)

# On local machine add to /etc/hosts (or C:\Windows\System32\drivers\etc\hosts)
NEW_SERVER_IP  mysite.com www.mysite.com

# Check site in browser via new server
# Verify everything works: forms, authentication, payments

6. DNS switch

Lower TTL to 300 seconds a day before switching. After switching TTL → normal value (3600+).

# Monitor propagation
watch -n 5 "dig @8.8.8.8 mysite.com A +short"
watch -n 5 "dig @1.1.1.1 mysite.com A +short"

Parallel Operation Period

Keep old server active 48–72 hours after DNS switch. This allows rollback if issues arise.

Checks After Migration

# Check availability
curl -I https://mysite.com
# Check SSL
echo | openssl s_client -connect mysite.com:443 2>/dev/null | grep "Verify return code"
# Check redirects
curl -I http://mysite.com  # should be 301
curl -I http://www.mysite.com  # should be 301

Standard website migration to new VPS — 4–16 hours depending on data volume.