Skip to content

Web hosting crisis migration, server disaster recovery, and backup restoration

A sudden web hosting failure, arbitrary account suspension, datacenter hardware outage, or server security compromise can instantly sever access to business websites, e-commerce checkouts, customer portals, and digital archives. When shared hosting servers crash, virtualization hypervisors fail, or hosting companies lock accounts during billing or resource disputes, having a clear emergency migration procedure protects your organization against permanent data loss and prolonged downtime.

Executing an emergency server migration under pressure requires methodical triage. By extracting surviving database states and application files, provisioning an independent cloud server, restoring database tables and file permissions, repointing Domain Name System (DNS) records with low caching delays, and issuing fresh Transport Layer Security (TLS) certificates, you can restore full web operations within one to two hours.

Sala boye sikoyo

If your website or web application is down, suspended, or facing imminent server termination, follow these immediate containment and extraction steps:

  1. Assess what administrative access still works: Test whether you can still reach your server via SSH (Secure Shell), SFTP (SSH File Transfer Protocol), or your hosting control panel (cPanel, Plesk, DirectAdmin, or custom cloud dashboard). Do not submit angry support tickets threatening legal action before you have downloaded your data, as hostile tickets sometimes prompt unscrupulous hosts to revoke access immediately.
  2. Enable "Always Online" or maintenance caching at your CDN edge: If your domain uses an edge reverse proxy such as Cloudflare, log into your DNS dashboard and verify that cache serving is active so visitors continue seeing cached static pages while you rebuild the backend server.
  3. Lower your DNS Time To Live (TTL) values to 60 or 300 seconds immediately: If your domain is still resolving or partially working, log into your domain registrar or DNS provider right now and reduce the TTL on your @ (root), www, and subdomain A mpe AAAA records to 300 seconds (5 minutes) or 60 seconds (1 minute) so the upcoming IP address cutover propagates rapidly worldwide.
  4. Extract your live SQL database first: Database files are usually small (megabytes to a few gigabytes) and contain your most irreplaceable dynamic data (customer orders, user accounts, posts, and transactions). Run mysqldump to mpe pg_dump over SSH, or export a .sql.gz archive via phpMyAdmin, and download it to your local computer immediately.
  5. Compress and download your application webroot and configuration files: Create a single compressed .tar.gz to mpe .zip archive of your document root (including hidden files like .env mpe .htaccess) and download it off the server via SFTP or rsync.
  6. Verify control of your domain registrar account: Confirm that you can log into the domain registrar where your domain name is registered (such as Cloudflare Registrar, Porkbun, Namecheap, or AWS Route 53). If your domain name is registered through the same failing web hosting company, unlock the domain and retrieve the EPP / Authorization Transfer Code immediately.

Danger

When generating a .zip to mpe .tar.gz backup archive inside a live public web directory (such as /var/www/html/backup.zip to mpe public_html/site-backup.tar.gz), automated cybercriminal bots continuously scan domains for common backup filenames. If an attacker downloads your archive, they gain full access to your database passwords, API keys, and customer records. Always write backup archives to a private directory outside the public webroot (such as /home/username/ to mpe /tmp/) and delete temporary archives from the server the instant your download finishes.

Crisis triage flowchart: selecting your recovery path

Use this decision tree to choose the fastest recovery method based on your current server access and domain control:

flowchart TD
    A["Website or Server Outage Detected"] --> B{"Can you still access SSH, SFTP, or cPanel?"}
    B -->|"Yes: Live Access Works"| C["Run 15-minute live database dump and webroot tar archive"]
    B -->|"No: Server Dead or Account Locked"| D{"Do you have off-site backups or a rescue console?"}
    D -->|"VPS Rescue Mode Available"| E["Boot hypervisor Rescue ISO, mount disk, and SCP data out"]
    D -->|"External Backups Only"| F["Fetch latest clean SQL and file snapshot from S3 / Backblaze / local storage"]
    C --> G{"Was the outage caused by malware or hacking?"}
    E --> G
    F --> G
    G -->|"No: Hardware, billing, or host failure"| H["Provision clean VPS or managed host and restore archive directly"]
    G -->|"Yes: Ransomware or webshell compromise"| I["Quarantine backup, deploy fresh CMS/code from Git, sanitize uploads and SQL"]
    H --> J["Meka na nzela ya fichier ya ba hôtes locales, pesa cert ya TLS, pe kata likolo ya ba enregistrements ya DNS A/AAAA"]
    I --> J

Phase 1 : Protocole ya extraction ya ba données ya urgence ya 15 minutes

Ntango serveur ezali instable, elongi te na se ya dégradation matériel, to ezali kokutana na suspension imminente, bimisa ba données na yo na ordre ya priorité : ba bases de données liboso, ba fichiers ya configuration ya mibale, code na ba thèmes ya misato, mpe ba uploads ya ba médias statiques ya kilo ya suka.

Méthode A: Extraction ya ligne ya commande na nzela ya SSH (ya mbangu mpe ya kozala na confiance)

Mbala mingi, ba gestionnaires ya ba fichiers oyo esalemi na internet mpe ba téléchargements ya navigateur esilisaka to ebebisaka ba archives tango e exporter ba sites ya minene koleka 500 mégabytes. Soki ozali na accès ya terminal SSH, sala ba commandes oyo pona kosala ba instantanés ya constant, compressé:

# 1. Create a private working directory outside the public webroot:
mkdir -p ~/emergency_migration && chmod 700 ~/emergency_migration

# 2. Dump MySQL / MariaDB database with single-transaction consistency (no table locking on InnoDB):
mysqldump --single-transaction --routines --triggers --events \
  -u db_username -p db_name | gzip -9 > ~/emergency_migration/db_backup_$(date +%F).sql.gz

# (Alternative for PostgreSQL databases):
# pg_dump -U db_username -Fc db_name > ~/emergency_migration/db_backup_$(date +%F).dump

# 3. Archive the entire webroot, preserving permissions and hidden dotfiles (.env, .htaccess):
tar -czpf ~/emergency_migration/webroot_backup_$(date +%F).tar.gz -C /var/www/html .

# 4. Copy existing Nginx/Apache virtual host configs and cron jobs for reference:
cp -r /etc/nginx/sites-available ~/emergency_migration/nginx_configs 2>/dev/null
crontab -l > ~/emergency_migration/user_crontab.txt 2>/dev/null

Soki ba archives esalemi na serveur ya mosika, fungola terminal na poste de travail ya esika na yo (to directement na serveur cible na yo ya sika oyo epesami) mpe benda ba fichiers na kati ya kosalela rsync to mpe scp: 1 .

# Pull the backups to your local computer with resume support (-P) if the connection drops:
rsync -avzP -e "ssh -p 22" username@old_server_ip:~/emergency_migration/ ./local_rescue_folder/

Méthode B: Kobimisa ba données na VPS oyo ekoki ko démarrer te na nzela ya Mode ya Rescue

If your Virtual Private Server (VPS) or dedicated server fails to boot (for example, due to a corrupted Linux kernel, broken GRUB bootloader, or full root partition) and SSH does not respond, do not wipe or re-image the server:

  1. Kota na panneau ya contrôle ya matériel ya fournisseur ya cloud na yo (DigitalOcean, Hetzner, Linode/Akamai, Vultr, OVHcloud, to AWS EC2).
  2. Enable Rescue Mode (or attach the root volume to a temporary recovery instance) and reboot the server into the live Linux rescue environment.
  3. Connect to the rescue environment via SSH or the browser-based VNC console, mount your server's primary storage partition, and copy your files out:
# Identify your main storage partition (usually /dev/sda1, /dev/vda1, or /dev/nvme0n1p1):
lsblk

# Mount the partition read-only (or read-write if needed) to /mnt/rescue:
mkdir -p /mnt/rescue
mount -o ro /dev/vda1 /mnt/rescue

# Archive your web files and raw MySQL/MariaDB data directory (/var/lib/mysql):
tar -czpf /tmp/raw_mysql_files.tar.gz -C /mnt/rescue/var/lib/mysql .
tar -czpf /tmp/site_files.tar.gz -C /mnt/rescue/var/www/html .

Méthode C: Extraction ya panneau de contrôle ya hébergement partagé (cPanel, Plesk, DirectAdmin)

Soki ozali na hébergement partagé sans accès SSH:

  1. Generate a Full cPanel Backup: In cPanel, open Backup or Backup Wizard and click Download a Full Account Backup. This generates a single backup-date_time_username.tar.gz fichier na répertoire na yo ya ndako oyo ezali na ba fichiers publiques na yo, ba bases de données MySQL, ba envoyeurs ya email, mpe ba enregistrements ya zone DNS, oyo ekoki kozongisama na clic moko na hôte mosusu nionso ya cPanel to ko déballer manuellement na VPS nionso ya Linux.
  2. Manual phpMyAdmin database export: If the full backup tool is disabled by your host, open phpMyAdmin, select your database in the left sidebar, click Export at the top, select Custom, highlight all tables, check Add DROP TABLE / VIEW / PROCEDURE / FUNCTION, choose gzipped compression, and click Export.
  3. File Manager archive: Open File Manager, click Settings in the top right corner and check Show Hidden Files (dotfiles) so you do not miss .htaccess to mpe .env. Select all files inside public_html/, click Compress (Zip Archive to mpe GZiped Tar Archive), download the archive to your computer, and immediately delete the archive file from the server.

Phase 2: Provisioning independent target infrastructure

Never migrate from one failing shared hosting brand to another brand owned by the exact same parent conglomerate using the same datacenter infrastructure. Choose an independent cloud compute provider or managed platform with transparent status reporting and automated snapshot capabilities.

Comparison of emergency migration target architectures

Target Hosting Type Provisioning Speed Technical Skill Required Best Use Case During an Emergency
Cloud VPS Instance (DigitalOcean, Linode/Akamai, Hetzner, Vultr, AWS Lightsail) 60 seconds Intermediate Linux CLI (SSH, Nginx/Apache, MariaDB) Contrôle ya misisa mobimba, talo ya moke, immune na throttling ya ressource ya hébergement partagé, idéal pona ba apps personnalisées to ba sites CMS ya trafic makasi.
Pannel de contrôle ya cloud géré (Cloudways, RunCloud, Forge, Ploi, SpinupWP na VPS) Miniti 5 kino 10 Ba débutants ti na Intermédiaire Automated LEMP stack provisioning, built-in SSL, firewall, and staging environments without manual command-line server setup.
CPanel indépendant / Hôte ya Plesk 10 to 20 minutes Beginner Fastest drop-in restoration if you extracted a full cpanel-backup.tar.gz archive and need bundled POP3/IMAP email hosting.
Hébergement Statique / Jamstack Edge (Nkasa ya cloudflare, nkasa ya GitHub, Netlify, Vercel) 2 to 5 minutes Intermediate (Git workflow) Ideal for static sites (Zensical, MkDocs, Hugo, Astro, Next.js) or placing a static emergency landing page online instantly.

Provisioning a clean Ubuntu 24.04 LTS LEMP stack (Nginx + MariaDB + PHP)

If you spin up a clean Ubuntu 24.04 LTS cloud server, run this commands sequence as root or a sudo user to build a production-ready web server in under 5 minutes:

# 1. Update operating system packages and install core utilities:
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget git unzip ufw fail2ban

# 2. Configure the Uncomplicated Firewall (UFW) before exposing services:
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw --force enable

# 3. Install Nginx web server and MariaDB database server:
sudo apt install -y nginx mariadb-server

# 4. Install PHP-FPM and standard web application extensions:
sudo apt install -y php8.3-fpm php8.3-mysql php8.3-curl php8.3-gd \
  php8.3-mbstring php8.3-xml php8.3-zip php8.3-intl php8.3-bcmath \
  php8.3-imagick php8.3-redis

# 5. Enable and start all core services on boot:
sudo systemctl enable --now nginx mariadb php8.3-fpm

Warning

Always double-check what PHP, Node.js, Python, or database version your legacy website requires before switching traffic. If you migrate an older PHP 7.4 application onto a brand-new PHP 8.3 server without testing, deprecated functions in older plugins or custom code may trigger fatal HTTP 500 Internal Server Error crashes. If needed, you can run exact legacy PHP versions side-by-side on Ubuntu using the trusted ppa:ondrej/php repository until your code is updated.

Phase 3: Restoring the database, unpacking files, and hardening permissions

Once your new server is running, transfer your backup archives to the new server via scp to mpe rsync and restore the database and document root.

1. Creating an isolated database user and importing the SQL dump

Never connect a production web application to the database using the root MySQL account. Create a dedicated database and a least-privilege database user bound strictly to localhost: 1 .

# Open the MariaDB / MySQL administrative shell:
sudo mysql

Inside the SQL prompt, run:

CREATE DATABASE prod_app_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'prod_app_user'@'localhost' IDENTIFIED BY 'Generate_A_Strong_32_Char_Random_Password';
GRANT ALL PRIVILEGES ON prod_app_db.* TO 'prod_app_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Now stream your compressed .sql.gz backup directly into the newly created database from the Linux command line:

# Stream and decompress the SQL backup into MariaDB:
zcat ~/db_backup_2026-10-30.sql.gz | sudo mysql -u root prod_app_db

2. Unpacking application files and setting strict POSIX permissions

Incorrect file ownership or overly permissive 777 permissions are major causes of both broken migrations (403 Forbidden or failed image uploads) and secondary security breaches:

# Create the target webroot directory and unpack your archive into it:
sudo mkdir -p /var/www/yourdomain.com
sudo tar -xzpf ~/webroot_backup_2026-10-30.tar.gz -C /var/www/yourdomain.com

# Assign ownership to the web server daemon (www-data on Ubuntu/Debian):
sudo chown -R www-data:www-data /var/www/yourdomain.com

# Set all directories to 755 (rwxr-xr-x) and all files to 644 (rw-r--r--):
sudo find /var/www/yourdomain.com -type d -exec chmod 755 {} +
sudo find /var/www/yourdomain.com -type f -exec chmod 644 {} +

# Lock down sensitive configuration files containing database credentials:
sudo chmod 600 /var/www/yourdomain.com/wp-config.php 2>/dev/null
sudo chmod 600 /var/www/yourdomain.com/.env 2>/dev/null

3. Updating database credentials and environment variables

Open your application's configuration file (for example, wp-config.php for WordPress, .env for Laravel/Node/Django, sites/default/settings.php for Drupal, or app/etc/env.php for Magento) and update:

  • Database Name (DB_NAME): prod_app_db
  • Database User (DB_USER): prod_app_user
  • Database Password (DB_PASSWORD): Your newly generated random password
  • Database Host (DB_HOST): localhost to mpe 127.0.0.1 (remember that many managed hosts use external RDS or remote MySQL hostnames; when moving to a self-contained VPS, this must be changed back to localhost).

Phase 4: Local hosts file testing before switching public DNS

Never point your live public DNS records to a newly migrated server before verifying that the site actually loads, connects to the database, and renders internal links properly. You can test the new server privately on your own computer while the rest of the world still sees your old DNS settings by editing your local hosts file.

  1. Locate your local hosts file:
    • Linux and macOS: Open a terminal and run sudo nano /etc/hosts.
    • Windows 10 / 11: Open Notepad as Administrator and open C:\Windows\System32\drivers\etc\hosts.
  2. Add a temporary override line at the bottom of the file: Replace 203.0.113.50 with your new server's IPv4 address:
    203.0.113.50  yourdomain.com www.yourdomain.com
    
  3. Save the file and test in a private browser window: Your computer will now bypass public DNS and load yourdomain.com directly from the new server IP. Test the home page, internal article permalinks (if subpages return 404 Not Found on Nginx, make sure your Nginx server block includes try_files $uri $uri/ /index.php?$args;), customer login forms, and shopping cart checkouts.
  4. Remove the line from /etc/hosts once testing succeeds: Do not forget to delete the temporary override line from your local hosts file before performing the real public DNS cutover.

Phase 5: DNS cutover, TTL bypass strategies, and SSL/TLS certificates

Once local testing confirms the new server works properly, execute the public DNS cutover and provision HTTPS encryption.

Important DNS records to audit during cutover

Record Type Host / Name Target Value Purpose & Migration Action
A Record @ (Root domain) New Server IPv4 (e.g., 203.0.113.50) . Routes main IPv4 web traffic to your new server. Update immediately at cutover.
AAAA Record @ (Root domain) New Server IPv6 (e.g., 2001:db8::1) . Routes IPv6 traffic. Important: If your new server does not have IPv6 configured, delete the old AAAA record or half your visitors will still hit the dead server.
CNAME / A www yourdomain.com (or New IPv4) Routes www subdomain traffic. Keep synced with the root record.
MX Records @ Mail server hostnames (e.g., Google, Microsoft) Routes inbound company email. Keep intact so corporate email does not break.
TXT (SPF) @ v=spf1 ip4:NEW_IP include:... ~all Authorizes your new server IP to send transactional emails without landing in spam.
CAA Record @ 0 issue "letsencrypt.org" Optional record restricting which Certificate Authority can issue SSL certificates. Verify it allows Let's Encrypt.

How to bypass a stuck 24-hour (86,400-second) DNS TTL cache

If your old web host crashed unexpectedly while your DNS records had a long Time To Live (TTL) of 14,400 seconds (4 hours) or 86,400 seconds (24 hours), simply editing the A record inside the old DNS zone means ISP resolvers worldwide will continue sending visitors to the dead IP address until that timer expires.

  • The Authoritative Nameserver Delegation Trick: If your DNS was hosted on the dead web host's nameservers, log into your domain registrar and change your domain's Authoritative Nameservers (NS) to an independent, high-speed anycast DNS network (such as Cloudflare DNS or AWS Route 53) where you have pre-imported your DNS zone pointing to the new server IP. Top-Level Domain (TLD) registry nameserver updates push instantly to global root servers and often bypass stale child-record caches across major recursive resolvers (such as 1.1.1.1 mpe 8.8.8.8).
  • Reverse Proxy Traffic Forwarding from the Old Server: If your old server is still accessible via SSH (for example, during a billing migration or hardware deprecation) and you want zero split-brain database writes while DNS propagates over 24 hours, install a lightweight Nginx reverse proxy block or socat tunnel on the old server that proxies 100 percent of incoming HTTP/HTTPS requests transparently over to the new server's IP address. That way, even visitors whose ISP has cached the old IP address are served live from the new server database immediately.

Provisioning free automated SSL/TLS certificates (Certbot / Let's Encrypt)

As soon as your public DNS points to the new server (or via DNS-01 API validation before switching DNS), install a trusted HTTPS certificate so visitors do not encounter browser security warnings:

# Install Certbot and the Nginx configuration plugin:
sudo apt install -y certbot python3-certbot-nginx

# Issue the certificate and configure automatic HTTP-to-HTTPS 301 redirects:
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com \
  --non-interactive --agree-tos -m admin@yourdomain.com --redirect

# Verify the systemd auto-renewal timer is active:
sudo systemctl status certbot.timer

Note

Let's Encrypt enforces strict production rate limits (up to 5 duplicate certificates per exact set of domains per 7 days, and 50 certificates per registered domain per week). If you are testing your server script repeatedly, always pass the --staging flag to certbot tii ntango setup na yo ekosala, na nsima kima certbot mbala moko kozanga --staging to fetch your live production certificate.

Phase 6: Protecting corporate email continuity (MX, SPF, DKIM, DMARC)

One of the most damaging side effects of a rushed website migration occurs when an administrator switches the domain's nameservers to a new host without copying over the domain's Mail Exchanger (MX) and authentication TXT records, silently blackholing all incoming company emails.

  1. Export your full DNS zone before changing nameservers: Before changing nameservers at your registrar, copy every existing MX, . TXT, . SRV, mpe CNAME record from your current DNS dashboard.
  2. Separate email hosting from web hosting: Never host mission-critical business email on the same local cPanel server as your public website. Use a dedicated email provider (such as Google Workspace, Microsoft 365, Fastmail, Proton Mail, or Zoho Mail) so a web server crash never interrupts company communications.
  3. Update your SPF record with the new server IP: If your website sends password reset emails, contact form notifications, or WooCommerce order receipts directly from the server, replace the old server IP with the new server IP inside your v=spf1 TXT record, or route all website outbound emails through a dedicated transactional SMTP API service (such as Postmark, Amazon SES, SendGrid, or Mailgun) with DKIM signing enabled.

Phase 7: Quarantined migrations after a malware or ransomware compromise

If you are migrating your website because the old host suspended your account for malware, phishing injections, spam sending, or a webshell breach, do not simply copy and unpack the entire old public_html archive onto your new server. Doing so copies the attacker's backdoor straight onto your new server.

Follow this clean-room decontamination workflow instead:

  1. Deploy fresh core application files from official sources: Download a brand-new, untouched copy of your CMS or framework (for example, download a clean WordPress release directly from wordpress.org, or clone a verified clean commit from your Git repository) and install fresh copies of all plugins and themes from official repositories rather than copying the old wp-admin, . wp-includes, to vendor folders.
  2. Copy only static user media and strip hidden executable scripts: Attackers routinely hide PHP webshells disguised inside image upload folders (such as wp-content/uploads/2026/05/avatar.jpg.php to mpe .ico files containing PHP code). Copy only your media uploads folder into a quarantine directory and purge all executable scripts before moving it into your live webroot:
    # Delete any PHP, Python, Perl, or shell scripts hiding inside the uploads directory:
    sudo find /var/www/yourdomain.com/wp-content/uploads -type f \
      \( -iname "*.php*" -o -iname "*.phtml" -o -iname "*.phar" -o -iname "*.py" -o -iname "*.sh" -o -iname "*.cgi" -o -iname ".htaccess" \) \
      -exec rm -vf {} +
    
  3. Disable PHP execution inside the uploads folder at the Nginx/Apache level: Add a location block in your Nginx virtual host config that blocks any .php file inside /uploads/ from ever being executed by PHP-FPM:
    location ~* /(?:uploads|files)/.*\.php$ {
        deny all;
    }
    
  4. Inspect the SQL database dump for injected JavaScript and rogue admin users: Before importing your database, scan the .sql fichier mpo na injecté <script> bilembo, . eval(base64_decode(...)) ba charges utile, mpe vérifier ba users mesa (wp_users na WordPress) mpo na kosilisa ba comptes nionso ya administrateur oyo oyebi te oyo attaquant asali. Bambolá mot de passe nyonso ya base de données, fungola ya mungwa ya bokengi ya CMS, mpe jeton ya API mbala moko.

Building long-term resilience: the 3-2-1-1-0 backup architecture

Once your website is back online and stable, configure an automated, encrypted off-site backup pipeline so you never face a single point of failure again:

  • 3 copies of your data: Your live production server plus at least two independent backup copies.
  • 2 different storage formats: Fast hypervisor block snapshots alongside portable application-level dumps (.sql.gz + .tar.gz).
  • 1 off-site cloud location on a completely separate provider: Never store your only backups on the same hosting company's servers. Use restic to mpe borgbackup via a daily cron job to push encrypted, deduplicated backups to an independent object storage bucket (such as AWS S3, Backblaze B2, Cloudflare R2, or Wasabi).
  • 1 immutable (append-only / Object Lock) copy: Configure S3 Object Lock or write-only API keys so that even if an attacker gains root SSH access to your web server, they cannot delete or encrypt your historical off-site backups.
  • 0 unverified backups: Test restoring your backup archive to a staging environment at least once every quarter to confirm that your SQL dumps are complete and not silently empty.

Mituna oyo batunaka mingi

How can I migrate my website if my old web host suspended my account and locked me out of cPanel and SSH?

First, check if you have any local backups, developer staging copies, or third-party backup plugin archives stored in Google Drive, Dropbox, or Amazon S3. If your only copy of the site is inside the suspended hosting account, contact the host's Abuse or Billing Compliance department calmly in writing and request a one-time generation of a downloadable backup archive (`cpmove` or `.tar.gz` of your files and SQL database) strictly for off-boarding purposes, offering to settle any undisputed past-due balance if billing was the cause. If the site was mostly informational and the host refuses all access, you can also extract your historical HTML pages, text, and images from the Internet Archive Wayback Machine (`web.archive.org`) using open-source Wayback downloader tools.

Why is my website showing a 500 Internal Server Error or Error Establishing a Database Connection after migrating?

An "Error Establishing a Database Connection" means the database name, username, password, or host address inside your configuration file (`wp-config.php` or `.env`) does not match the user you created in MySQL/MariaDB on the new server, or the `mariadb` service is stopped. A generic `500 Internal Server Error` or blank white screen usually stems from one of three causes: incorrect file ownership (fix with `chown -R www-data:www-data`), a syntax error in `.htaccess`, or a PHP version mismatch where an old plugin crashes on PHP 8.2/8.3. Check the exact error message by running `sudo tail -n 50 /var/log/nginx/error.log` or `/var/log/php8.3-fpm.log`.

Why does my home page work on the new server, but every internal page returns a 404 Not Found error?

When migrating a CMS like WordPress, Laravel, or Drupal from an Apache server (which uses `.htaccess` files for URL rewriting) to an Nginx server (which ignores `.htaccess` files completely), internal permalinks will return `404 Not Found` unless you add a rewrite rule inside your Nginx site configuration block. Open `/etc/nginx/sites-available/yourdomain.com`, locate the `location /` block, make sure it contains `try_files $uri $uri/ /index.php?$args;`, and reload Nginx with `sudo systemctl reload nginx`.

How do I prevent losing new WooCommerce orders or user comments while DNS is propagating to the new server?

To achieve a zero-data-loss migration for dynamic e-commerce or membership sites, place the site into brief "Maintenance Mode" on the old server (blocking new checkout submissions for 10 to 15 minutes) right before taking your final `mysqldump`, import that final SQL dump onto the new server, and then immediately switch your DNS `A`/`AAAA` records (or flip the IP inside your Cloudflare proxy dashboard, which cuts traffic over globally within 30 seconds). You can also configure Nginx on the old server to reverse-proxy requests to the new server IP so visitors with stale DNS caches still interact with the new database.

What should I do if my domain name itself is registered with the failing web hosting company?

Separate your domain registration from your web hosting immediately. However, if your site is currently down, do not start an ICANN Registrar Transfer first, because transferring a domain between registrars takes up to 5 to 7 days and locks your nameservers during the transfer window. Instead, first log into the current registrar panel and change the **Nameservers (NS)** to an independent DNS provider (like Cloudflare or Route 53) to get your website back online today. Once your website is stable on the new server, unlock the domain, get the EPP Auth Code, and transfer the domain registration to an independent registrar.

Why are some visitors seeing my new server while others still see the old broken server hours later?

This is called DNS propagation delay, caused by two factors: the Time To Live (TTL) caching setting that was on your old DNS records before you changed them, and forgotten IPv6 (`AAAA`) records. Many mobile carriers (such as T-Mobile, Verizon, EE, and Telstra) route smartphone traffic preferentially over IPv6. If you updated your IPv4 `A` record to point to the new server, but forgot to update or delete the old IPv6 `AAAA` record, desktop users on Wi-Fi will see your new working site while mobile phone users on 5G will continue hitting the dead server via IPv6.

Ba sources e vérifié

  • National Institute of Standards and Technology (NIST, United States): Special Publication 800-34 Rev. 1, Contingency Planning Guide for Federal Information Systems and Server Recovery (csrc.nist.gov).
  • Cybersecurity and Infrastructure Security Agency (CISA, United States): Capacity Enhancement Guides on Cloud Security, DNS Security, and Ransomware Recovery from Backups (cisa.gov).
  • National Cyber Security Centre (NCSC, United Kingdom): Offline and Immutable Backup Guidance, Web Server Security, and Transport Layer Security (TLS) Best Practices (ncsc.gov.uk).
  • Internet Engineering Task Force (IETF, International): RFC 1034 / RFC 1035 (Domain Name System Caching and TTL Specifications) and RFC 8555 (ACME Automated Certificate Management Protocol) (ietf.org).
  • Ebongiseli ya Internet mpo na bankombo mpe mituya oyo epesami (ICANN, International): Politiki ya bopesi bokomisi nkombo kati na baye bakomisa nkombo mpe makoki ya baye bakomisi nkombo (icann.org).
  • Open Web Application Security Project (OWASP, International): Server Hardening, File Upload Sanitization, and Database Security Cheat Sheets (owasp.org).

Ba guides oyo etali yango