Skip to content

Eggugol caɗeele jaɓɓugol web, moƴƴitingol musiiba serwer, e moƴƴitingol backup

So tawii ko ɗoon e ɗoon ŋakkere hosting web, ustaare konte, ustaare hardware datacenter, walla ŋakkeende kisal serwer ina waawi taƴde ɗoon e ɗoon jokkondire e lowe njulaagu, ƴeewndorɗe njulaagu e-commerce, portaluuji soodooɓe, e arsiweeji dijital. So serweeji jaɓɓotooɗi renndaaɗi ɗii ndartiima, hipervisors virtualisation ndartiima, walla sosiyeteeji jaɓɓotooɗi ɗii ndartiima konte mum en e sahaa luure faktiir walla resooji, jogaade laabi laaɓtuɗi eggugol e nder sahaa ɓuuɓɗo ina reena fedde maa e majjugol dokke duumotooɗe e juutde balɗe.

Waɗde migraasiyoŋ serwer emergency e les njiimaandi ina ɗaɓɓi triage methodique. So a yaltinii ngonkaaji doggol domen e piille kuutorɗe, aɗa rokka serveer ruulde keeriiɗo, aɗa artira taƴe domen e yamiroore fiilde, aɗa artira binndanɗe Domain Name System (DNS) tawa aɗa jogii leelgol kesol, aɗa yaltina seedanteeje kese Transport Layer Security (TLS), aɗa waawi artirde golle web timmuɗe e nder hours gooto haa ɗiɗi.

Waɗde ɗum jooni

So tawii lowre maa walla kuutorgal maa web ina ŋakki, ina dartinaa, walla ina jogori joofde e serveer maa, rewa e ɗeeɗoo laabi jokkondire e ittugol ɗoon e ɗoon:

  1. Ƴeewto hol jokkondire njuɓɓudi gollotooɗe haa jooni: Ƴeewto so tawii aɗa waawi yettaade serveer maa haa jooni e SSH (Shell Secure), SFTP (Protokol jokkorgal fiilde SSH), walla jokkorgal maa jaɓɓungal (cPanel, Plesk, DirectAdmin, walla tablo ruulde keeriiɗo). Hoto neldu tikketuuji ballal tikkere kulɓiniiɗi kuugal sariya hade maa ƴettude dokke maa, sibu tikketuuji bonɗi ina mbaɗa sahaa e sahaa fof hoɗɓe ɓe ngalaa nuunɗal ngam haɗde jokkondire ɗoon e ɗoon.
  2. Softin "Always Online" walla jokkorgal toppitiingal to bannge CDN maa: So domen maa huutoriima jokkorgal jokkorgal hono Cloudflare, naata e dashboard maa DNS e hoolkiso wonde gollal jokkorgal ina golloo ngam njilluuji ɗii njokka yiyde kelle jokkorgal jokkorgal tawa aɗa mahta jokkorgal backend.
  3. Ustu teddeendi DNS Time To Live (TTL) maa haa 60 walla 300 leƴƴannde ɗoon e ɗoon: So tawii domen maa ina jokki e safrude walla ina golla seeɗa, naataa e binnditorde domen maa walla e dokkuɗo DNS jooni jooni, ustu TTL e dow maa @ (daande), www, e domen les A be AAAA winnditoo haa 300 leƴƴannde (hojomaaji 5) walla 60 leƴƴannde (hojomaaji 1) ko noon taƴre adrees IP garoowo ndee yaajirta e yaawre e winndere ndee kala.
  4. Ittu lowre maa SQL nguurndam ko adii: Fiildeeji lowre ndee ina keewi wonde tokoose (megabayteeji haa gigabayteeji seeɗa) tee ina njogii dokke maa ɓurɗe waawde lomtineede (jamirooje alɗuɓe, konte kuutortooɗe, postooji, e jokkondire). Doggo mysqldump walla pg_dump dow SSH, walla yaltinde a .sql.gz archive e phpMyAdmin, e ƴettude ɗum e ordinateer maa ɗoon e ɗoon.
  5. Softinde e ƴettude kuutorgal maa webroot e piille konfiguraasiyoŋ: Sosde softinde wootere .tar.gz walla .zip arsiif root winndannde maa (ina heen piille cuuɗiiɗe hono .env be .htaccess) e ƴettude ɗum e serveer oo e SFTP walla rsync.
  6. Hoolkiso ƴeewndo konte binnditoowo domen maa: Hoolkiso wonde aɗa waawi naatde e binnditoowo domen ɗo innde domen maa winnditaa ɗoo (hono binnditoowo Cloudflare, Porkbun, Namecheap, walla AWS Route 53). So tawii innde domen maa winnditaama e sosiyetee web hosting gooto mo ŋakki, udditaa domen oo, ƴettu EPP / Kod mbayliigu yamiroore ɗoon e ɗoon.

Danger

Nde jibinannde a .zip walla .tar.gz arsiif backup nder regginorde web renndo nguurndam (hono /var/www/html/backup.zip walla public_html/site-backup.tar.gz), botuuji siber-kriminal otomaatik ina njokki e ƴeewndaade domenaaji ngam yiytude inɗe fiilde kuutorteeɗe. So tawii ñaawoowo ƴettii arsiif maa, ɓe keɓat jokkondire timmuɗe e konte kuutorteeɗe e lowre maa, kuutorɗe API, e binndanɗe soodooɓe. Waɗde sahaa kala winndu arsiifuuji baɗɗiiɗi e regginorde keeriinde tawa ko e yaasi webroot renndo (hono /home/username/ walla /tmp/) e momtude arsiifuuji wakkatiiji e serveer oo nde ƴettugol maa joofi.

Flowchart triage crisis : suɓaade laawol cellal maa

Huutoro ndee lekki kuule ngam suɓaade feere ɓurnde yaawde heɓde tuugnaade e jokkondire maa jooni e jokkondire domen:

flowchart TD
    A["Lowre walla Serwer ina ŋakki"] --> B{"Mbele aɗa waawi heɓde SSH, SFTP, walla cPanel haa jooni?"}
    B -->|"Eey: Golle Access Live"| C["Doggondirde 15-minit dump domen e arsiif tar webroot"]
    B -->|"Alaa: Serveur maayɗo walla konte coktaaɗe"| D{"Mbele aɗa jogii backups e nder nokku walla konsol hisnude?"}
    D -->|"Mode Hisnude VPS ina woodi"| E["Hipervisor boot Hisnu ISO, disko mooftirɗo, e dokke SCP yalta"]
    D -->|"Backups yaajɗi tan"| F["Heɓtu SQL laaɓɗo cakkitiiɗo e nate fiilngo ummoraade e S3 / Backblaze / defterdu nokkuure"]
    C --> G{"Mbele ko malware walla ko hacking saabi ustaare ndee?"}
    E --> G
    F --> G
    G -->|"Alaa: Hardware, faktiir, walla host ina ŋakki"| H["Hokkude VPS laaɓɗo walla host njuɓɓudi e artirde arsiif to bannge"]
    G -->|"Eey: Ransomware walla jokkere enɗam"| I["Backup karantine, udditde CMS/kode keso ummoraade e Git, laaɓtinde jolɗe e SQL"]
    H --> J["Hooƴu e fiilde hostuuji nokkuuji, yaltin seedantaagal TLS, taƴu dow binndanɗe DNS A/AAAA"]
    I --> J

Faandaare 1 : Porotokol ƴettugol dokke e nder hojomaaji 15

So tawii serwer ina ŋakki, ina ŋakki e les ŋakkeende hardware, walla ina jogori dartinde ko yaawi, yaltin dokke maa e nder doggol ɓurngol teeŋtude : dokke dokke ko adii, piille konfiguraasiyoŋ ɗiɗmere, kod e tiitooɗe tataɓere, e jolngo media static teeŋtungo caggal.

Laawol A: Ittugol doggol yamiroore e SSH (ɓurngol yaawde e hoolaade)

Njuɓɓudi fiilde tuugiindi e web e ƴettugol feerorde ina keewi ustude waktuuji walla bonnude arsiweeji so ina njaltina lowe ɓurɗe 500 megabayt. So aɗa jogii jokkorgal SSH, dognu ɗeeɗoo jamirooje ngam sosde nate jokkondirɗe, ɓuuɓɗe:

# 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

So arsiifuuji ɗii sosaa e serveer to woɗɗi, udditu terminal e dow lowre maa gollorde (walla to serveer maa keso mo njiyloto-ɗaa oo) e ƴettude piille ɗee e huutoraade rsync walla scp:

# 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/

Laawol B : Ittugol dokke e VPS mo ɓuuɓnaaka huutoraade Rescue Mode

So tawii Serveur maa keeriiɗo (VPS) walla serveer keeriiɗo oo waawaa fuɗɗaade (yeru, sabu kernel Linux bonɗo, bootloader GRUB bonɗo, walla partition root timmuɗo) tawa SSH jaabaaki, woto momtu walla rewtin natal serveer oo :

  1. Naat e laylaytol kuutorgal kaɓirɗe dokkoowo maa ruulde (DigitalOcean, Hetzner, Linode/Akamai, Vultr, OVHcloud, walla AWS EC2).
  2. Softin Mode Rescue (walla jokkondir e volume root oo e instance recovery wakkati) e fuɗɗoraade serveer oo e nder nokku hisnude Linux guurɗo.
  3. Jokkondir e nokku hisnuɗo oo rewrude e SSH walla konsol VNC tuugorgal e feerorde, jokkondir e feccere mooftirgel serveer maa, e ƴettude piille maa:
# 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 .

Laawol C: Ƴettugol jokkorgal jaɓɓungal renndinde (cPanel, Plesk, DirectAdmin)

So aɗa woni e hosting renndinaaɗo tawa aɗa jogii SSH:

  1. Sosde Backup cPanel timmuɗo: E nder cPanel, udditu Backup walla Wizard Backup e ɓuɗɗude Sokkit Backup konte timmuɗo. Ɗuum ina jibina gooto backup-date_time_username.tar.gz fiilde e nder regginorde maa galle tawa ina waɗi fiilde maa renndo, lowre MySQL, jokkorgal imeel, e binndanɗe zone DNS, baawɗe artireede e doggol gootol e kala host cPanel goɗɗo walla udditeede e junngo e kala VPS Linux.
  2. Njaltugol lowre phpMyAdmin e junngo: So tawii kuutorgal jokkorgal timmungal ina muusi host maa, udditu phpMyAdmin, cuɓo-ɗaa lowre maa e nder jokkorgal nano, ɓuɗɗu Njaltugol to dow, cuɓo-ɗaa Custom, teeŋtin denndaangal taƴe, ƴeew **Ɓeydu DROP TABLE /cho.ose, gzipped ɓuuɓri, e ɓuɗɗude Yaltin.
  3. Arsiif njuɓɓudi fiilde: Uddit Njuɓɓudi fiilde, ɓuɗɗu e Cuɓe to dow to bannge ñaamo e ƴeewde Hollit Fiildeeji cuuɗiiɗi (dotfiles) ngam waasde waasde .htaccess walla .env. Suɓo denndaangal piille nder public_html/, ɓuɗɗu e Ɓoɗɗu (Zip Archive walla GZiped Tar Archive), ƴettu arsiif oo e ordinateer maa, ɗoon e ɗoon momtu fiilde arsiif oo e serveer oo.

Daawe 2 : Hokkude gollorɗe paandaale keertiiɗe

Hoto meeɗ eggude e marke hosting renndinaaɗo gooto mo ŋakkaani, feewde e marke goɗɗo jeyaaɗo e konglomeraat jibinannde gooto huutortooɗo infrastructure datacenter gooto. Suɓo dokkoowo limto ruulde keeriiɗo walla lowre njuɓɓudi jogiinde humpito ngonka laaɓtungo e mbaawkaaji ƴettugol otomaatik.

Njiylawu arsitektuuruuji paandaale eggugol emergency

Sifaa Hosting Target Jaawgol Hokkude Karallaagal Karallaagal Ina Haani Kuutoragol ɓurngol moƴƴude e sahaa emergency
Innde VPS duule (Geec Dijital, Linode/Akamai, Hetzner, Vultr, AWS Lightsail) 60 leƴƴannde CLI Linux hakkundeejo (SSH, Nginx/Apache, MariyaDB) Hakkilannde root timmunde, njoɓdi ɓurndi famɗude, reentaade e ustaare doole hosting renndinde, moƴƴo wonande appliiji kuutorteeɗi walla lowe CMS keewɗe njilluuji.
Njuɓɓudi njuɓɓudi ruulde (Laabi ruulde, dogdu ruulde, Forge, Ploi, SpinupWP e VPS) Hojomaaji 5 haa 10 Fuɗɗorde haa hakkundeere Hokkude jokkorgal LEMP otomaatik, SSL mahaaɗo, firewall, e nokkuuji staging tawa aɗa huutoroo serveer doggol yamiroore e junngo.
cPanel / Jaɓɓoowo Plesk keeriiɗo Hojomaaji 10 haa 20 Fuɗɗotooɗo Ɓuri yaawde drop-in restoraasiyoŋ so a yaltinii timmuɗo cpanel-backup.tar.gz arsiif e haajuuji jokkondire imeel POP3/IMAP.
Jaɓɓugol / Jamstack Edge (Kelle Cloudflare, Kelle GitHub, Netlify, Vercel) Hojomaaji 2 haa 5 Hakkunde (Golle Git) Ina moƴƴi e lowe gonɗe e lowre ndee (Zensical, MkDocs, Hugo, Astro, Next.js) walla waɗde hello gonngo e lowre ndee e oon sahaa.

Hokkude lowre LEMP laaɓtunde (Nginx + MariaDB + PHP)

So a ƴettii serveer ruulde Ubuntu 24.04 LTS laaɓɗo, dognu ndeeɗoo jokkondire jamirooje no root walla a sudo kuutortooɗo ngam mahde serveer web baawɗo peewnugol e nder hojomaaji 5:

# 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

Waɗde sahaa kala ƴeewto ko PHP, Node.js, Python, walla mbaydi domen lowre maa legacy naamnii hade maa waylude jolngo. So a egginii kuutorgal PHP 7.4 ɓooyngal e serveer PHP 8.3 keso tawa a jarribaaki, golle ɓooyɗe e nder plugins ɓooyɗi walla kode kuutorteeɗe ina mbaawi saabaade fatal HTTP 500 Internal Server Error ina ɓuuɓtoo. So ina haani, aɗa waawi dogginde mbaydiiji PHP legacy tigi-rigi bannge-bannge e Ubuntu huutoraade hoolaare ppa:ondrej/php repository haa kode maa hesɗitinaa.

Daawe 3 : Wartirde lowre ndee, udditde piille, e tiiɗtinde yamiroore

So serveer maa keso oo ina doga, nawtu arsiweeji maa backup to serveer keso oo e laawol scp walla rsync e artirde lowre ndee e root dokimaa.

1. Sosde kuutortooɗo lowre ndee e naatde e dump SQL

Hoto meeɗ jokkondirde e kuutorgal web peewnugol e lowre huutortoonde... root Konte MySQL. Sosde lowre keertinnde e kuutortooɗo lowre ɓurnde famɗude haɓɓondirde e localhost:

# Open the MariaDB / MySQL administrative shell:
sudo mysql

E nder doggol SQL, dogdu:

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;

Jooni stream maa kompress .sql.gz backup to bannge doggol domen keso sosaaɗo gila e doggol yamiroore Linux:

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

2. Uddude piille kuutorgal e waɗde yamiroore POSIX tiiɗnde

Jeyi fiilde sellaani walla jaɓde no feewi 777 yamiroore ko sabaabu mawɗo eggugol ɗiɗmol ngol fof (403 Forbidden walla jolngo natal ŋakkungo) e ŋakkeende kisal ɗiɗmere:

# 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. Hesɗitinde seedanteeje lowre ndee e waylooji nokku

Uddit fiilde kuutorgal maa (yeru, wp-config.php ngam WordPress, .env ngam Laravel/Node/Jango, sites/default/settings.php ngam Drupal, walla app/etc/env.php ngam Magento) e kesɗitinde:

  • Innde lowre (DB_NAME): prod_app_db
  • Kuutortooɗo lowre (DB_USER): prod_app_user
  • Konngol lowre (DB_PASSWORD: Konngol maa kesol ngol ranndomaa
  • Jaɓɓoowo lowre (DB_HOST): localhost walla 127.0.0.1 (siftor wonde hostuuji keewɗi njuɓɓudi kuutortoo ko RDS yaajɗo walla inɗe host MySQL to woɗɗi; so aɗa yaha e VPS keeriiɗo, ɗum foti wayleede ko e localhost).

Faandaare 4 : Fooyre fiilde hostuuji nokkuuji hade waylude DNS renndo

Hoto meeɗ hollirde binndanɗe maa DNS renndo guurɗe e serveer keso mo njiyloto-ɗaa oo hade maa hoolkisaade so tawii lowre ndee ina jokki, ina jokkondiri e lowre domen, ina rokka jokkorɗe ndernderiije no haanirta nii. Aɗa waawi ƴeewndaade serveer keso oo e nder ordinateer maa tawa aduna oo ina yiytoo haa jooni dottaaɗe maa DNS ɓooyɗe ɗee tawa aɗa wayla nokku maa hosts fiilngo.

  1. Yiytu nokku maa hosts fiilde:
    • Linux e macOS: Uddit tergal, doga sudo nano /etc/hosts.
    • Windows 10 / 11: Uddit Notepad hono njuɓɓudi e udditde C:\Windows\System32\drivers\etc\hosts.
  2. Ɓeydu doggol limto sahaa e les fiilde: Lomto 203.0.113.50 e adres IPv4 serveer maa keso:
    203.0.113.50  yourdomain.com www.yourdomain.com
    
  3. Hisnu fiilde ndee e jarribo e nder windo feerorde keeriinde: Jooni ordinateer maa maa rew DNS renndo e loowde yourdomain.com to bannge IP serveer keso oo. Hooƴu hello jaɓɓorgo, jokkorɗe binndanɗe ndernderiije (so kelle tokoose ngartii 404 Not Found e Nginx, ƴeewto so tawii bolol serveer maa Nginx ina waɗi try_files $uri $uri/ /index.php?$args;), ɗereeji naatgol soodooɓe, e ƴeewndorɗe otooji coodguuli.
  4. Ittu liggey oo e... /etc/hosts so jarribo ngoo jaɓii: Hoto njejjitee momtude doggol jokkorgal wakkatiwal e nokku mon hosts fiilde hade waɗde taƴre DNS renndo goonga.

Daawe 5 : taƴgol DNS, peeje ƴaañgol TTL, e seedanteeje SSL/TLS

So jarribo nokkuure ndee hollitii wonde serveer keso oo ina golloo no haanirta nii, waɗtu taƴre DNS renndo ndee e rokkude sifirde HTTPS.

Nate DNS teeŋtuɗe ngam ƴeewtaade e sahaa cutover

Sifaa Winnditorde Koɗo / Innde Nafoore Target Faandaare & Golle Eggugol
Winndo @ (Domen ɗaɗol) Serwer keso IPv4 (yeru, 203.0.113.50) Laabi jolngo web IPv4 mawngo feewde e serveer maa keso. Hesɗitin ɗoon e ɗoon e cutover.
Winndo AAAA @ (Domen ɗaɗol) Serwer keso IPv6 (yeru, 2001:db8::1) Laabi IPv6 njiylawu. Teeŋtuɗo: So serveer maa keso oo alaa IPv6 kuutorteeɗo, mumtu winndannde AAAA ɓooynde ndee walla feccere e njilluuji maa ɗii maa njiytu serveer maayɗo oo haa jooni.
INNDE / A www yourdomain.com (walla IPv4 keso) Laabi www njilluuji domen les. Jokku sinkronisaasiyoŋ e winndannde root ndee.
Winndi MX @ Inɗe jaɓɓotooɗe serwer imeel (yeru, Google, Microsoft) Laabi naatɗi e iimeel sosiyetee. Keep intact mbele email korporaasiyoŋ ina ustoo.
TXT (SPF) @ v=spf1 ip4:NEW_IP include:... ~all Yamiroore IP serwer maa keso ngam neldude iimeeluuji jokkondire tawa jippaaki e spam.
Winndo CAA @ 0 issue "letsencrypt.org" Winndannde cuɓaande kaɗnde hol Hukuuma Seedantaagal waawi yaltinde seedanteeje SSL. Hoolkiso ɗum ina addana Let's Encrypt.

No njiyru-ɗaa kaɓirgal DNS TTL 24 hojom (86 400 leƴƴannde) coktirgal

So tawii host web maa ɓooyɗo oo yanii e ko sikkaano tawa binndanɗe maa DNS ina njogii Time To Live (TTL) juutɗo 14 400 leƴƴannde (waktuuji 4) walla 86 400 leƴƴannde (waktuuji 24), tan ko waylude... A winndude nder zone DNS ɓooyɗo firti ko ISP resolvers e nder winndere ndee kala maa njokku neldude njilluuji e adrees IP maayɗo oo haa oon waktu timma.

  • Feere Delegaasiyoŋ Inɗe Jaawɗo: So tawii DNS maa ina hoɗnoo e serweruuji inɗe host web maayɗo, naataa e binnditorde domen maa, waylu domen maa Serwer Inɗe Jaawɗo (NS) e lowre DNS anycast keeriiɗo, jaawɗo ɗo (hono CloudNSflare Route-im DNS3 you have.or) zone toɗɗiiɗo IP serveer keso oo. Kesɗitingol serwer inɗe binnditagol Domen Toowɗo (TLD) ina pusnoo ɗoon e ɗoon feewde e serweruuji root aduna ɗii, ina heewi kadi rewrude e kaɓirɗe binnditagol sukaaɓe ɓooyɗe e nder resolveruuji mawɗi (hono 1.1.1.1 be 8.8.8.8).
  • Rewrude e jolngo Proxy ummoraade e Serveur ɓooyɗo: So tawii serveer maa ɓooyɗo ina heɓee haa jooni e SSH (yeru, e nder doggol faktiir walla ustude hardware) tawa aɗa yiɗi zero split-brain database winnda tawa DNS ina yaaji e nder waktuuji 24, sosde block Nginx mo reverse proxy socat tunnel e dow serveer ɓooyɗo mo 100 e nder teemedere ɗaɓɓaande HTTP/HTTPS naatnde e laaɓal dow adrees IP serveer keso oo. Ko noon hay njilluuji ɗi ISP mum en resndi adrees IP ɓooyɗo oo, ina njuɓɓinee e dow laylaytol (live) ummoraade e lowre serwer keso ndee ɗoon e ɗoon.

Hokkude seedanteeje SSL/TLS otomaatik ɗe njoɓaaka (Certbot / Siiftoɗen)

So tawii DNS maa renndo hollitii serveer keso oo (walla rewrude e ƴeewndo API DNS-01 hade maa waylude DNS), sos seedantaagal HTTPS hoolaare mbele njilluuji ɗii ina kawra e jeertinaango kisal feerorde:

# 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 ina dooli keeri peewnugol tiiɗɗi (fotde seedanteeje 5 duppitiiɗe e kala set domen tigi-rigi e nder balɗe 7, e seedanteeje 50 e kala domen binnditiiɗo e nder yontere). So aɗa jarriboo binndol serwer maa laabi keewɗi, sahaa kala pass the... --staging bannge to certbot haa setup maa golla, ndeen doga certbot laawol gootol tawa alaa --staging ngam ƴettude seedantaagal maa peewnugol nguurndam.

Daawe 6 : Reende jokkondiral imeel gollorɗe (MX, SPF, DKIM, DMARC)

Ina jeyaa e batte ɓurɗe bonde e yah-ngartaa lowre yaawnde, so gardiiɗo waylii serweeji inɗe domen oo e host keso tawa o ƴettataa e dow Mail Exchanger (MX) domen oo e hoolkiso TXT winndannde, e silki blackholing denndaangal iimeeluuji sosiyetee naatɗi.

  1. Yaltin zone DNS maa timmuɗo hade maa waylude serwooɓe inɗe: Ko adii nde mbaylata serwooɓe inɗe to binnditorde maa, ƴettu kala ko woodi MX, TXT, SRV, e CNAME winndu e dashboard maa DNS jooni oo.
  2. Seerndu jaɓɓugol imeel e jaɓɓugol web: Hoto meeɗ jaɓɓaade imeel njulaagu baawɗo wonde e lowre maa cPanel nokkuure wootere e lowre maa renndo. Huutoro jokkorgal imeel keeriiɗo (hono Google Workspace, Microsoft 365, Fastmail, Proton Mail, walla Zoho Mail) mbele ŋakkere serveer web meeɗaa taƴde jokkondiral sosiyetee.
  3. Kesɗitin winndannde maa SPF e IP serwer keso oo: So lowre maa neldii iimeeluuji mbayliigu konngol, humpitooji ɓataake jokkondirde, walla keɓgol yamiroore WooCommerce to serwer oo, lomtin IP serwer ɓooyɗo oo e IP serwer keso oo e nder maa v=spf1 TXT winndu, walla laawol denndaangal iimeeluuji yaltooji lowre ndee rewrude e sarwiis API SMTP kuutorteeɗo (hono Postmark, Amazon SES, SendGrid, walla Mailgun) tawa siyno DKIM ina softi.

Daawe 7 : Eggugol karantinaaji caggal nde malware walla ransomware waɗi

So aɗa egga lowre maa sabu host ɓooyɗo oo dartinii konte maa ngam malware, injections phishing, neldude spam, walla bonnude webshell, woto tan ƴettu e udditde ɓooyɗo oo fof public_html arsiif e dow serveer maa keso. Waɗde noon ina ƴetta backdoor ñaawoowo oo feewde e serveer maa keso oo.

Rewtu ndee ɗoo golle dekontaminaasiyoŋ suudu laaɓndu e nokku mum:

  1. Naatnude piille kuutorɗe core kese ummoraade e iwdiiji laawɗuɗi: Sosde koppi keso, mo meeɗaa meeɗde e CMS maa walla framework maa (yeru, sosde yaltinnde WordPress laaɓtunde to bannge wordpress.org, walla tafde commit laaɓɗo hoolkiso ummoraade e defterdu maa Git) e udditde koppiiji kesi denndaangal plugins e tiitooɗe ummoraade e defterdu laawɗundu wonaa koppirgol ɓooyngol ngol wp-admin, wp-includes, walla vendor foldereeji.
  2. Koppir tan media kuutortooɗo static e strip scripts kuutorteeɗi cuuɗiiɗi: Ñaawooɓe ina keewi suuɗde webshells PHP cuuɗiiɗi e nder foldereeji neldugol natal (hono wp-content/uploads/2026/05/avatar.jpg.php walla .ico fiiluuji baɗɗi kode PHP). Koppir tan foldere maa jokkorgal media e nder regginorde karantine e laɓɓinde denndaangal binndanɗe kuutorteeɗe hade maa nawde ɗum e nder webroot maa guurɗo:
    # 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. Softinde gollal PHP nder doggol jokkorgal to tolno Nginx/Apache: Ɓeydu jokkorgal nokku e nder config host virtual Nginx maa jokkorgal kala .php fayndaare nder /uploads/ gila nde PHP-FPM huutortoo:
    location ~* /(?:uploads|files)/.*\.php$ {
        deny all;
    }
    
  4. Ƴeewto dump lowre SQL ngam huutoraade JavaScript injected e huutortooɓe admin rogue: Ko adii nde naatnataa lowre maa, ƴeewto... .sql file ngam innde <script> tags, eval(base64_decode(...)) payndaale, e ƴeewtaade... users taabal (wp_users e nder WordPress) ngam momtude kala konte njuɓɓudi ɗe anndaaka ɗe jokkorgal ngal sosi. Rokku kala konngol kuutorgal domen, jokkorgal salte kisal CMS, e toɓɓere API ɗoon e ɗoon.

Mahngo cemmbingol juutngol : mahngo 3-2-1-1-0

So lowre maa artii e laylaytol e darnde, ƴettu jokkorgal otomaatik, sifirngal e nder lowre ndee ngam waasde jogaade toɓɓere wootere e ŋakkeende kadi:

  • 3 koppiiji dokke maa: Serveur maa peewnugol nguurndam ɓeydu heen ko famɗi fof koppiiji ɗiɗi keertiiɗi.
  • 2 mbaadiiji mooftirɗi ceertuɗi: Nate bolokaaji hipervisor yaawɗi e sara dumps portaabe to bannge kuutorɗe (.sql.gz + .tar.gz).
  • 1 nokku ruulde mo alaa e lowre e dow dokkoowo ceertuɗo no feewi: Hoto meeɗ mooftude backups maa tan e serweeji sosiyetee jaɓɓoowo gooto. Huutoro restic walla borgbackup rewrude e golle cron ñalnde kala ngam pusde jokkorgal sifirngal, ɓuuɓngal e nder lowre mooftirgel geɗe keertiiɗe (hono AWS S3, Backblaze B2, Cloudflare R2, walla Wasabi).
  • 1 koppi mo waylaaka (append-only / Object Lock): Konfiguur S3 Object Lock walla binndol tan API keɓe ngam hay so jokkorgal heɓi root SSH e lowre maa web, ɓe mbaawataa momtude walla siifde jokkorgal maa taariindi tawa ko e nokku.
  • 0 backups ɗi hoolkisaaka: Hoolkiso artirde arsiif backup maa e nokku staging ko famɗi fof laawol gootol e nder lewru kala ngam tabitinde wonde dumps maa SQL ina timmi tawa wonaa e silsil.

Naamne keewɗe naamneede

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.

Fuɗɗoode ƴeewtaama

  • Duɗal ngenndiwal toppitiingal tolnooji e karallaagal (NIST, leyɗeele dentuɗe Amerik): Jaaynde keeriinde 800-34 Rev. 1, Ɗaɓɓaande peewnugol kaɓirɗe ngam ƴellitde humpitooji fedde ndee e ƴellitde serwer (csrc.nist.gov).
  • Goomu kisal siber e kisal gollorɗe (CISA, Amerik): Ardorde ɓeydugol mbaawkaaji e kisal ruulde, kisal DNS, e ƴellitgol Ransomware e nder backups (cisa.gov).
  • Centre National de Sécurité Cyber (NCSC, Royaume-Uni): Ardorde Backup mo alaa e laylaytol e mo waylaaka, Kisal Serwer Web, e Kisal Layer Transport (TLS) Golle ɓurɗe moƴƴude (ncsc.gov.uk).
  • Goomu gollordu Innjiniyaaruuji Enternet (IETF, hakkunde leyɗeele): RFC 1034 / RFC 1035 (Sistem innde domen e sifaaji TTL) e RFC 8555 (Protokol njuɓɓudi seedanteeje otomaatik ACME) (ietf.org).
  • Sosiyetee internet ngam inɗe e limooje toɗɗaaɗe (ICANN, International): Politik jowitiiɗo e jokkondire binnditagol hakkunde binnditagol e hakkeeji binnditagol (icann.org).
  • Eɓɓoore kisal kuutorɗe Web udditte (OWASP, hakkunde leyɗeele): Hardening serwer, sanitization upload fiilde, e binndanɗe fenaande kisal lowre (owasp.org).

Ardiiɓe jokkondirɓe