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.
እዚ ሕጂ ግበሩ¶
If your website or web application is down, suspended, or facing imminent server termination, follow these immediate containment and extraction steps:
- 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.
- 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.
- 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 subdomainAከምኡ’ውን...AAAArecords to 300 seconds (5 minutes) or 60 seconds (1 minute) so the upcoming IP address cutover propagates rapidly worldwide. - 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ወይpg_dumpover SSH, or export a.sql.gzarchive via phpMyAdmin, and download it to your local computer immediately. - Compress and download your application webroot and configuration files: Create a single compressed
.tar.gzወይ.ziparchive of your document root (including hidden files like.envከምኡ’ውን....htaccess) and download it off the server via SFTP orrsync. - 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 ወይ .tar.gz backup archive inside a live public web directory (such as /var/www/html/backup.zip ወይ 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/ ወይ /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 -->|"እወ፡ ቀጥታዊ ምብጻሕ ይሰርሕ"| C["ናይ 15 ደቓይቕ ቀጥታዊ ዳታቤዝ ዳምፕን ዌብሩት ታር ማህደርን ኣካይድ"]
B -->|"ኣይፋልን፡ ሰርቨር ሞይቱ ወይ ኣካውንት ተዓጽዩ።"| D{"ካብ ቦታ ወጻኢ ዝኾነ ምትሕብባር ኣለካ ድዩ ወይስ ናይ ምድሓን መሳርሒ?"}
D -->|"VPS Rescue Mode ኣሎ።"| E["ቦት ሃይፐርቫይዘር Rescue ISO, mount disk, and SCP data out"]
D -->|"ናይ ደገ ምትሕብባር ጥራይ"| F["ካብ S3 / Backblaze / local storage ናይ መወዳእታ ጽሩይ SQLን ፋይል ቅጽበታዊ ስእሊ ኣምጽኡ"]
C --> G{"እቲ ምቁራጽ ብሰንኪ ማልዌር ድዩ ወይስ ሃኪንግ?"}
E --> G
F --> G
G -->|"ኣይፋልን፡ ሃርድዌር፡ ሕሳብ ምኽፋል ወይ ሆስት ምብልሻው"| H["ጽሩይ ቪፒኤስ ወይ ዝምራሕ ሆስትን ሪስቶር ማህደርን ብቐጥታ ምቕራብ"]
G -->|"እወ፡ ራንሶምዌር ወይ ዌብሸል ምድምማጽ"| I["ምውሻብ ምትሕብባር፣ ካብ Git ፍረሽ ሲኤምኤስ/ኮድ ምዝርጋሕ፣ ንዝተሰቐሉን ኤስኪዩኤልን ሳኒታይዘር ምግባር"]
H --> J["ብመንገዲ ሎካል ሆስትስ ፋይል ፈትኑ፣ TLS cert ኣውጽኡ፣ ከምኡውን ኣብ ልዕሊ DNS A/AAAA መዛግብቲ ቆሪጽኩም"]
I --> J
ቀዳማይ ምዕራፍ፡ ን15 ደቓይቕ ዝጸንሕ ናይ ህጹጽ እዋን ዳታ ምውጻእ ፕሮቶኮል¶
ሓደ ሰርቨር ዘይርጉእ ክኸውን ከሎ፡ ኣብ ትሕቲ ምብስባስ ሃርድዌር ክፈሽል ከሎ፡ ወይ ድማ ኣብ ቀረባ እዋን ምቁራጽ ምስ ዝገጥሞ፡ ዳታኻ ብቅደም ተኸተል ቀዳምነት ኣውጽእ፡ መጀመርታ ዳታቤዛት፡ ፋይላት ውቅር ካልኣይ፡ ኮድን ቴማን ሳልሳይ፡ ከበድቲ ስታትቲክ ሚድያ ምጽዓን ድማ ኣብ መወዳእታ።
ሜላ ሀ፡ ብመንገዲ SSH (ዝቐልጠፈን ዝያዳ ዘተኣማምንን) መስመር ትእዛዝ ምውጻእ¶
ኣብ መርበብ ሓበሬታ ዝተመርኮሱ ኣካየድቲ ፋይላትን ዳውንሎድ መርበብ ሓበሬታን ብተደጋጋሚ ልዕሊ 500 ሜጋባይት ዝዓበዩ መርበባት ሓበሬታ ኣብ ዝሰድዱሉ እዋን ንማህደር ግዜኦም ይውድእ ወይ ይበላሾ። SSH ተርሚናል መእተዊ እንተሃልዩካ፡ ነዞም ትእዛዛት እዚኦም ብምግባር ቅኑዕን ዝተጸቕጠን ቅጽበታዊ ስእልታት ምፍጣር፤
# 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
እቶም ማህደር ኣብቲ ርሑቕ ኣገልጋሊ ምስ ተፈጥሩ፡ ተርሚናል ኣብ ከባቢኻ መደበር ስራሕ (ወይ ብቐጥታ ኣብቲ ሓድሽ ዝተዳለወ ዕላማ ኣገልጋሊኻ) ከፊትካ ነቶም ፋይላት ተጠቒምካ ስሓቦም rsync ወይ 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/
ሜላ B: ካብ ዘይቦት VPS ዳታ ምውጻእ Rescue Mode ተጠቒምካ¶
ናትካ ቨርቹዋል ፕራይቨት ሰርቨር (VPS) ወይ ውፉይ ሰርቨርካ ክጅምር እንተዘይክኢሉ (ንኣብነት ብሰንኪ ዝተበላሸወ ሊኑክስ ከርነል፣ ዝተበላሸወ GRUB ቡትሎደር፣ ወይ ምሉእ ሱር ምክፍፋል)ን SSH መልሲ እንተዘይሂቡን፣ ነቲ ሰርቨር ኣይትደርዝዮ ወይ ዳግማይ ምስሊ ኣይትሃቦ፤
- ናብቲ ናይ ደበና ኣቕራቢኻ ሃርድዌር መቆጻጸሪ ፓነል (DigitalOcean, Hetzner, Linode/Akamai, Vultr, OVHcloud, ወይ AWS EC2) እቶ።
- Rescue Mode ኣኽእሎ (ወይ ድማ ነቲ ሱር ድምጺ ምስ ግዝያዊ ናይ ምሕዋይ ተርእዮ ኣተሓሕዞ) እሞ ነቲ ኣገልጋሊ ናብቲ ቀጥታዊ ናይ ሊኑክስ ምድሓን ሃዋህው ዳግማይ ጀምርዎ።
- ብመንገዲ SSH ወይ በቲ ኣብ መርበብ ሓበሬታ ዝተመርኮሰ VNC ኮንሶል ምስቲ ናይ ምድሓን ሃዋህው ተራኸብ፣ ናይ ኣገልጋሊኻ ቀንዲ መኽዘን ክፍሊ ተሰቐል፣ ፋይላትካ ድማ ቅዳሕ ኣውጽእ፤
# 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 .
ሜላ ሐ: ናይ ሓባር ሆስቲንግ ቁጽጽር ፓነል ምውጻእ (cPanel, Plesk, DirectAdmin)¶
ብዘይ SSH access ኣብ shared hosting እንተሃሊኻ፤
- ምሉእ cPanel Backup ምፍጣር: ኣብ cPanel Backup ወይ Backup Wizard ከፊትና Download a Full Account Backup ዝብል ጠውቕ። እዚ ድማ ሓደ ንጽል ይፈጥር
backup-date_time_username.tar.gzፋይል ኣብ ናይ ገዛ ማህደርካ ዝርከብ ህዝባዊ ፋይላትካ፡ MySQL ዳታቤዛትካ፡ ኢመይል ፎርወርደርስካን DNS zone recordsን ዝሓዘ ኮይኑ፡ ኣብ ዝኾነ ካልእ cPanel host ብሓደ ጠውቂ ክምለስ ወይ ኣብ ዝኾነ Linux VPS ብኢድካ ክፍታሕ ይኽእል። - Manual phpMyAdmin database export: እቲ ምሉእ ናይ መጠባበቒ መሳርሒ ብሆስትና እንተተሰናኺሉ፡ phpMyAdmin ከፊትና፡ ኣብ ጸጋማይ ጎድናዊ መስመር ዳታቤዝና ንመርጽ፡ ኣብ ላዕሊ Export ጠውቕ፡ Custom ንመርጽ፡ ኩሎም ሰደቓታት ኣጉልሕ፡ Add DROP TABLE / VIEW / PROCEDURE / FUNCTION ምልክት ግበር፡ gzipped compression ንመርጽ፡ ከምኡውን Export ዝብል ጠውቕ።
- File Manager archive: File Manager ከፊትና ኣብ ላዕለዋይ የማናይ ኩርናዕ Settings ጠውቕ እሞ Show Hidden Files (dotfiles) ምልክት ጌርና ከይትስእኑ
.htaccessወይ.env. ኣብ ውሽጢ ዘለዉ ኩሎም ፋይላት ምረጽpublic_html/፣ ምጽቃጥ (Zip ArchiveወይGZiped Tar Archive)፡ ነቲ ማህደር ናብ ኮምፒተርካ ኣውሪድካ፡ ብኡንብኡ ነቲ ማህደር ፋይል ካብቲ ሰርቨር ደምስሶ።
ምዕራፍ 2፡ ምቕራብ ናጻ ዕላማ ዝገበረ ትሕተ ቅርጺ¶
ካብ ሓደ ዝፈሸለ ናይ ሓባር ኣአንጋዲ ምልክት ናብ ካልእ ብትኽክል ተመሳሳሊ ወላዲ ኮንግሎሜሬት ዝውነን ምልክት ሓደ ዓይነት ትሕተ ቅርጺ ዳታሰንተር ተጠቒምካ ፈጺምካ ኣይትስደድ። ግሉጽ ናይ ኩነታት ጸብጻብን ኣውቶማቲክ ቅጽበታዊ ስእሊ ዓቕምን ዘለዎ ነጻ ናይ ደበና ኮምፒዩተር ኣቕራቢ ወይ ዝምራሕ መድረኽ ምረጽ።
ንጽጽር ናይ ህጹጽ ስደት ዕላማ ስነ ህንጻታት¶
| ዕላማ ዓይነት ኣአንጋዲ | ፍጥነት ስንቂ | ቴክኒካዊ ክእለት የድሊ | ኣብ እዋን ህጹጽ እዋን ዝበለጸ ኣጠቓቕማ |
|---|---|---|---|
| ክላውድ ቪፒኤስ ኢንስታንስ (ዲጂታልኦሽን፣ ሊኖድ/ኣካማይ፣ ሄትዝነር፣ ቩልትር፣ ኤውኤስ ላይትሳይል) | 60 ካልኢት | ማእከላይ ሊኑክስ ሲኤልኣይ (SSH, Nginx/Apache, MariaDB) | ምሉእ ሱር ምቁጽጻር፣ ዝወሓደ ወጻኢታት፣ ካብ ናይ ሓባር ሆስቲንግ ሪሶርስ ትሮትሊንግ ነጻ ዝኾነ፣ ንብሕታዊ ኣፕስ ወይ ልዑል ትራፊክ ዘለዎም ሲኤምኤስ ሳይታት ምቹእ እዩ። |
| ዝመሓደር ደበና ቁጽጽር ፓነል (ክላውድዌይስ፣ ሩንክላውድ፣ ፎርጅ፣ ፕሎይ፣ ስፒንኣፕደብሊዩፒ ኣብ ቪፒኤስ) | ካብ 5 ክሳብ 10 ደቓይቕ | ካብ ጀማሪ ክሳብ ማእከላይ ደረጃ | ኣውቶማቲክ LEMP ስታክ ምቕራብ፣ ኣብ ውሽጡ ዝተሃንጸ SSL፣ ፋየርዎልን ምድላው ከባቢታትን ብዘይ ማንዋል ትእዛዝ-መስመር ኣገልጋሊ ምድላው። |
| ናጻ cPanel / Plesk ሆስት | ካብ 10 ክሳብ 20 ደቓይቕ | ጀማሪ | ዝቐልጠፈ ድሮፕ-ኢን ምሕዳስ ምሉእ እንተ ኣውጺእካ cpanel-backup.tar.gz archive ከምኡ’ውን bundled POP3/IMAP email hosting የድልዮም። |
| ስታቲክ / ጃምስታክ ኤጅ ሆስቲንግ (ገጻት ክላውድፍሌር፣ ገጻት ጊትሃብ፣ ገጻት ኔትሊፋይ፣ ቨርሰል) | ካብ 2 ክሳብ 5 ደቓይቕ | ማእከላይ (Git workflow) | ንስታቲክ ሳይታት (Zensical, MkDocs, Hugo, Astro, Next.js) ወይ ድማ ስታትቲክ ህጹጽ መዕረፊ ገጽ ብቕጽበት ኣብ ኢንተርነት ንምቕማጥ ምቹእ እዩ። |
ጽሩይ ኡቡንቱ 24.04 LTS LEMP ስታክ (Nginx + MariaDB + PHP) ምቕራብ¶
ጽሩይ Ubuntu 24.04 LTS cloud server እንተ ስፒን ኣፕ ጌርካዮ፡ ነዚ ናይ ትእዛዛት መስርዕ ከም root ወይ a ኣካይድ sudo ተጠቃሚ ኣብ ትሕቲ 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
ኩሉ ግዜ ቅድሚ ትራፊክ ምቕያርካ፡ እቲ ውርሻዊ መርበብ ሓበሬታኻ እንታይ ዓይነት PHP, Node.js, Python ወይ database version ከም ዝደሊ ድርብ መርምሮ። ንሓደ ዝኣረገ PHP 7.4 መተግበሪ ብዘይ ፈተነ ናብ ፍጹም ሓድሽ PHP 8.3 ሰርቨር እንተሰጊርካዮ፡ ኣብ ዝኣረጉ ፕላጊናት ወይ ብሕታዊ ኮድ ዝርከቡ ዘይተጠርነፉ ተግባራት ሞት ከበግሱ ይኽእሉ HTTP 500 Internal Server Error ይወድቕ። ኣድላዪ እንተኾይኑ፡ ልክዕ ውርሻዊ ስሪት ፒኤችፒ ጎኒ ንጎኒ ኣብ ኡቡንቱ ነቲ ዝእመን ተጠቒምካ ከተካይድ ትኽእል ኢኻ። ppa:ondrej/php መኽዘን ክሳብ ኮድካ ዝመሓየሽ።
ምዕራፍ 3፡ ምምላስ ዳታቤዝ፡ ምፍታሕ ፋይላትን ፍቓድ ምትራርን።¶
ሓድሽ ሰርቨርካ ምስ ተሰርሐ፡ ንመኽዘን ማህደርካ ናብቲ ሓድሽ ሰርቨር ብመንገዲ... scp ወይ rsync ከምኡ’ውን ነቲ ዳታቤዝን ሱር ሰነድን ምምላስ።
1. ዝተነፀለ ተጠቃሚ ዳታቤዝ ምፍጣርን SQL dump ምእታውን።¶
ንሓደ ናይ ምፍራይ መርበብ ሓበሬታ መተግበሪ ምስቲ ዳታቤዝ ተጠቒምካ ፈጺምካ ኣይተራኽቦ root ናይ ማይኤስኪዩል ኣካውንት። ውፉይ ዳታቤዝን ብጥብቂ ዝተኣስረ ብውሑድ ፍሉይ መሰል ዘለዎ ተጠቃሚ ዳታቤዝን ምፍጣር localhost:
ኣብ ውሽጢ SQL prompt ከምዚ ዝስዕብ ንገብር፤
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;
ሕጂ ስትሪም ናትካ ዝተጸቕጠ .sql.gz ካብ መስመር ትእዛዝ ሊኑክስ ብቐጥታ ናብቲ ሓድሽ ዝተፈጥረ ዳታቤዝ ምትሕብባር፤
# Stream and decompress the SQL backup into MariaDB:
zcat ~/db_backup_2026-10-30.sql.gz | sudo mysql -u root prod_app_db
2. ናይ ኣፕሊኬሽን ፋይላት ምፍታሕን ጽኑዕ ፍቓድ ፖሲክስ ምቕማጥን¶
ጌጋ ዋንነት ፋይል ወይ ካብ መጠን ንላዕሊ ምፍቃድ 777 ፍቓድ ቀንዲ ጠንቂ ክልቲኡ ዝተበታተነ ስደት እዩ (403 Forbidden ወይ ዝፈሸለ ምስሊ ምጽዓን) ከምኡ’ውን ካልኣዊ ምጥሓስ ድሕነት፤
# 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. ምዕራፍ ናይ ዳታቤዝ መረጋገጺታትን ናይ ከባቢ ተለዋዋጢ ረቛሒታትን¶
ናይ መተግበሪኻ ናይ ውቅር ፋይል ክፈት (ንኣብነት፡ wp-config.php ንወርድፕረስ፡ .env ንላራቨል/ኖድ/ጃንጎ፡ sites/default/settings.php ንድሩፓል፡ ወይ app/etc/env.php ንማጀንቶ) ከምኡ’ውን update:
- ስም ዳታቤዝ (
DB_NAME):prod_app_db - ተጠቃሚ ዳታቤዝ (
DB_USER):prod_app_user - ናይ ዳታቤዝ ፓስዎርድ (
DB_PASSWORD): ሓድሽ ዝፈጠርካዮ ዕድመ ንእስነት ምልክት ቃልካ - ኣአንጋዲ ዳታቤዝ (
DB_HOST):localhostወይ127.0.0.1(ብዙሓት ዝመሓደሩ ኣአንገድቲ ናይ ደገ RDS ወይ ርሑቕ MySQL ኣስማት ኣአንገድቲ ከም ዝጥቀሙ ኣይትረስዕ፤ ናብ ርእሱ ዝኸኣለ VPS ክትሰጋገር ከለኻ፡ እዚ ናብ...localhost).
ምዕራፍ 4፡ ቅድሚ ህዝባዊ DNS ምቕያርካ ፋይል ምፍታን ናይ ውሽጢ ዓዲ ኣአንገድቲ¶
እቲ መርበብ ሓበሬታ ብሓቂ ከም ዝጽዕን፡ ምስቲ ዳታቤዝ ከም ዝራኸብን ውሽጣዊ መላግቦታት ብግቡእ ከም ዝህብን ቅድሚ ምርግጋጽካ፡ ቀጥታዊ ህዝባዊ መዛግብቲ ዲኤንኤስካ ናብ ሓድሽ ዝተሰደደ ኣገልጋሊ ፈጺምካ ኣይተመልክት። እቲ ሓድሽ ሰርቨር ብውልቂ ኣብ ናይ ገዛእ ርእስኻ ኮምፒተር ክትፍትኖ ትኽእል ኢኻ፡ ዓለም ገና ነቲ ናይ ቀደም DNS ቅጥዕታትካ እናረኣየካ፡ ናትካ ሎካል ብምእራም እዩ። hosts መዝገብ።
- ኣብ ከባቢኻ ኣለሊ
hostsመዝገብ፥- Linux and macOS: ተርሚናል ከፊትና ንሰርሕ
sudo nano /etc/hosts. - ዊንዶውስ 10 / 11: ኖትፓድ ከም ኣመሓዳሪ ከፊትና ክፈት
C:\Windows\System32\drivers\etc\hosts.
- Linux and macOS: ተርሚናል ከፊትና ንሰርሕ
- ኣብ ታሕቲ ናይቲ ፋይል ግዝያዊ ናይ ምግልባጥ መስመር ምውሳኽ: ምትካእ
203.0.113.50ምስ ናይ ሓድሽ ሰርቨርካ IPv4 ኣድራሻ: - ነቲ ፋይል ኣቐሚጥና ኣብ ናይ ብሕቲ መስኮት መርበብ ሓበሬታ ፈትኖ: ሕጂ ኮምፒተርና ንህዝባዊ DNS ሓሊፋ ክትጽዕን እያ።
yourdomain.comብቐጥታ ካብቲ ሓድሽ ሰርቨር IP። ነቲ ናይ መጀመርታ ገጽ ፈትኖ፣ ውሽጣዊ ጽሑፍ ቀዋሚ መላግቦታት (ንኡሳን ገጻት እንተተመሊሶም404 Not Foundኣብ Nginx፡ Nginx ሰርቨር ብሎክካ ከም ዘጠቓልል ኣረጋግጽtry_files $uri $uri/ /index.php?$args;)፣ ናይ ዓማዊል መእተዊ ቅጥዕታት፣ ከምኡውን ናይ ዕዳጋ ሳጹን ምውጻእ ገንዘብ። - እቲ መስመር ካብ...
/etc/hostsሓንሳብ ፈተነ ምስ ተዓወተ: ነቲ ግዝያዊ መስመር ምግልባጥ ካብ ከባቢኻ ምድምሳስ ኣይትረስዕhostsፋይል ቅድሚ እቲ ሓቀኛ ህዝባዊ DNS ምቁራጽ ምፍጻም።
ምዕራፍ 5፡ ምቁራጽ DNS፡ ስትራተጂታት ምሕላፍ TTL፡ ከምኡ’ውን ምስክር ወረቐት SSL/TLS¶
ሎካል ቴስቲንግ እቲ ሓድሽ ሰርቨር ብግቡእ ከም ዝሰርሕ ምስ ኣረጋገጸ፡ ነቲ ህዝባዊ DNS cutover ፈጺምካ HTTPS ኢንክሪፕሽን ኣቕርብ።
ኣብ እዋን ምቑራጽ ኦዲት ክትገብሮም ዘለካ ኣገደስቲ መዛግብቲ DNS¶
| ዓይነት መዝገብ | ኣአንጋዲ / ስም | ዕላማ ዋጋ | ዕላማ & ስደት ስጉምቲ |
|---|---|---|---|
| መዝገብ | @ (ሱር ዓውዲ) |
ሓድሽ ኣገልጋሊ IPv4 (ንኣብነት፡ 203.0.113.50) . |
ቀንዲ IPv4 ዌብ ትራፊክ ናብ ሓድሽ ሰርቨርካ የመሓላልፎ። ብቕጽበት ኣብ cutover update ግበር። |
| ኣኣኣኣ ክብረወሰን | @ (ሱር ዓውዲ) |
ሓድሽ ኣገልጋሊ IPv6 (ንኣብነት፡ 2001:db8::1) . |
ትራፊክ IPv6 ይመርሕ። ኣገዳሲ: እቲ ሓድሽ ሰርቨርካ IPv6 እንተዘይተዋቒሩ፡ ነቲ ናይ ቀደም AAAA record delete ወይ ፍርቂ በጻሕትኻ ጌና ነቲ ዝሞተ ሰርቨር ክሃርም እዩ። |
| 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: DNS ናትካ ኣብቲ ዝሞተ web host's nameservers ዝተኣንገደ እንተኾይኑ፡ ናብ domain registerr ናትካ ኣቲኻ ናይ domain Authoritative Nameservers (NS) ናብ ናጻ፡ ልዑል ፍጥነት ዘለዎ anycast DNS network (ከም Cloudflare DNS ወይ AWS Route 53) ቀይሮ፡ ኣብኡ ድማ DNS zone ናትካ ናብቲ ሓድሽ ሰርቨር IP ዘመልክት ኣቐዲምካ ዘእተኻዮ። ላዕለዋይ ደረጃ ዓውዲ (TLD) መዝገብ ስም ኣገልጋሊ ምዕባለታት ብቕጽበት ናብ ዓለማዊ ሱር ኣገልገልቲ ይደፍኡን መብዛሕትኡ ግዜ ድማ ኣብ ልዕሊ ዓበይቲ ተደጋጋሚ መፍትሒታት (ከም
1.1.1.1ከምኡ’ውን...8.8.8.8). - ካብ ናይ ቀደም ኣገልጋሊ ምምላስ ፕሮክሲ ትራፊክ: እቲ ናይ ቀደም ሰርቨርካ ጌና ብSSH ዝበጽሕ እንተኾይኑ (ንኣብነት ኣብ እዋን ምግዓዝ ሕሳብ ወይ ምጉዳል ሃርድዌር) ከምኡ’ውን DNS ንልዕሊ 24 ሰዓታት እናተዘርግሐ ከሎ ዜሮ ዝተመቕለ ሓንጎል ዳታቤዝ ክጽሕፍ እንተደሊኻን ቀሊል Nginx reverse proxy block ወይ...
socatኣብቲ ናይ ቀደም ሰርቨር 100 ሚእታዊት ካብ ዝኣትዉ ናይ HTTP/HTTPS ሕቶታት ብግልጺ ናብቲ ናይቲ ሓድሽ ሰርቨር IP ኣድራሻ ፕሮክሲ ዝገብር ታንለ። በዚ መንገዲ እዚ፡ ዋላ እቶም ISPኦም ነቲ ናይ ቀደም IP ኣድራሻ ዝዓቀበ በጻሕቲ፡ ካብቲ ሓድሽ ሰርቨር ዳታቤዝ ብቕጽበት ብቐጥታ ይግልገሉ።
ምቕራብ ነጻ ኣውቶማቲክ SSL/TLS ምስክር ወረቐት (Certbot / Let's Encrypt)¶
ህዝባዊ DNSካ ናብቲ ሓድሽ ኣገልጋሊ ምስ ኣመልከተ (ወይ ቅድሚ DNS ምቕያርካ ብመንገዲ DNS-01 API validation)፡ በጻሕቲ መጠንቀቕታታት ድሕነት መርበብ ሓበሬታ ንኸየጋጥሞም ዝእመን HTTPS ምስክር ወረቐት ጽዓን፤
# 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 ጽኑዕ ገደብ ደረጃ ምፍራይ የተግብር (ክሳብ 5 ተደጋጋሚ ምስክር ወረቐት ኣብ ነፍሲ ወከፍ ልክዕ ስብስብ ዶመይናት ኣብ 7 መዓልታት፣ ከምኡውን 50 ምስክር ወረቐት ኣብ ነፍሲ ወከፍ ምዝጉብ ዶመይን ኣብ ሰሙን)። ሰርቨር ስክሪፕትካ ብተደጋጋሚ ትፍትኖ እንተኾንካ፡ ኩሉ ግዜ ነቲ... --staging ባንዴራ ናብ... certbot ክሳብ ኣወዳድባኻ ዝሰርሕ፡ ድሕሪኡ ጐየ certbot ሓንሳብ ብዘይ --staging ንናይ ቀጥታዊ ምፍራይ ምስክር ወረቐትካ ንምምጻእ እዩ።
ምዕራፍ 6፡ ምሕላው ቀጻልነት ኢመይል ትካላት (MX, SPF, DKIM, DMARC)¶
ሓደ ካብቲ ኣዝዩ ጎዳኢ ጎናዊ ሳዕቤናት ናይቲ ብሃውሪ ዝግበር ምግዓዝ መርበብ ሓበሬታ፡ ሓደ ኣመሓዳሪ ነቲ ናይቲ ዓውዲ ስም ኣገልገልቲ ናብ ሓድሽ ኣአንጋዲ ክቕይሮ ከሎ፡ ኣብ ልዕሊ ናይቲ ዓውዲ **መልእኽቲ ምልውዋጥ (MX)**ን ምርግጋጽን ከይቀደሐ እዩ። TXT መዛግብቲ ብምምዝጋብ፡ ንኹሉ ዝኣቱ ናይ ኩባንያ ኢመይላት ስቕ ኢሉ ጸሊሙ።
- ቅድሚ nameservers ምቕያርካ ምሉእ DNS ዞንካ ናብ ወጻኢ ምልኣኽ: ቅድሚ ኣብ መዝገብካ nameservers ምቕያርካ፡ ነፍሲ ወከፍ ዝጸንሐ ቅዳሕ
MX፣TXT፣SRV፣ እናCNAMEካብቲ ናይ ሕጂ DNS ዳሽቦርድካ መዝገብ። - ኢመይል ሆስቲንግ ካብ ዌብ ሆስቲንግ ምፍላይ: ንተልእኾ ወሳኒ ዝኾነ ንግዳዊ ኢመይል ኣብ ሓደ ሎካል cPanel server ከምቲ ህዝባዊ ዌብሳይትካ ፈጺምካ ኣይተአንግድ። ውፉይ ኣቕራቢ ኢመይል (ከም Google Workspace, Microsoft 365, Fastmail, Proton Mail, ወይ Zoho Mail) ተጠቐም፣ ምእንቲ ምብልሻው ዌብ ሰርቨር ንርክባት ኩባንያ ፈጺሙ ከየቋርጾ።
- መዝገብ SPF ናትካ ብሓድሽ ሰርቨር IP ኣዘምኖ: ዌብሳይትካ ናይ ፓስዎርድ ሪሰት ኢመይላት፣ ናይ ርክብ ቅጥዒ መፍለጢታት፣ ወይ ናይ WooCommerce ትእዛዝ ቅብሊት ብቐጥታ ካብቲ ሰርቨር እንተሰዲዱ፣ ነቲ ናይ ቀደም ሰርቨር IP በቲ ኣብ ውሽጢ ናትካ ዘሎ ሓድሽ ሰርቨር IP ተክኦ
v=spf1TXT ይምዝግብ፣ ወይ ድማ ንኹሎም ናይ ዌብሳይት ዝወጹ ኢመይላት ብውፉይ ትራንዛክሽናል SMTP API ኣገልግሎት (ከም Postmark, Amazon SES, SendGrid, ወይ Mailgun) ምስ DKIM ምፍራም ተኸፊቱ ምምራሕ።
ምዕራፍ 7፡ ድሕሪ ምድምማጽ ማልዌር ወይ ራንሶምዌር ዝግበር ምውሻብ ስደት።¶
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 ናብ ሓድሽ ሰርቨርካ ምዕቃብ። ከምኡ ምግባርካ ነቲ ናይቲ መጥቃዕቲ ዝፈጸመ ሰብ ድሕሪት ማዕጾ ትኽ ኢሉ ናብቲ ሓድሽ ሰርቨርካ ይቕድሖ።
ኣብ ክንድኡ ነዚ ናይ ጽሩይ ክፍሊ ምጽራይ ዋሕዚ ስራሕ ተኸተል፤
- ካብ ወግዓዊ ምንጭታት ፍሩይ ቀንዲ መተግበሪ ፋይላት ምዝርጋሕ: ፍጹም ሓድሽ ዘይተተንከፈ ቅዳሕ ናይ ሲኤምኤስ ወይ ፍሬምዎርክካ ኣውርድ (ንኣብነት፡ ጽሩይ ወርድፕረስ ምውጻእ ብቐጥታ ካብ...
wordpress.org፣ ወይ ድማ ካብ መኽዘን Git ናትካ ዝተረጋገጸ ጽሩይ ኮሚት ክሎን) ከምኡ’ውን ነቲ ናይ ቀደም ኣብ ክንዲ ምቕዳሕ ካብ ወግዓዊ መኽዘናት ፍሩይ ቅዳሓት ናይ ኩሎም ፕላጊናትን ቴማታትን ምትካልwp-admin፣wp-includes፣ ወይvendorኣቃፊራታት። - ስታትቲክ ተጠቃሚ ሚድያ ጥራይ ቅዳሕን ዝተሓብኡ ክፍጸሙ ዝኽእሉ ስክሪፕትታት ምቕንጣጥን: ኣጥቃዕቲ ብስሩዕ ኣብ ውሽጢ ምስሊ ምጽዓን ማህደር (ከም
wp-content/uploads/2026/05/avatar.jpg.phpወይ.icoPHP ኮድ ዝሓዙ ፋይላት)። ቅድሚ ናብ ቀጥታዊ ዌብሩትካ ምግዓዝካ ናይ ሚድያ ምጽዓን ማህደርካ ጥራይ ናብ ውሸባ ማህደር ቅዳሕ እሞ ኩሎም ክፍጸሙ ዝኽእሉ ስክሪፕትታት ኣጽርዮም፤# 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 {} + - ኣብ ውሽጢ uploads ፎልደር ብደረጃ Nginx/Apache ምፍጻም PHP ኣሰናኽል: ኣብ Nginx virtual host config ናትካ ንዝኾነ ዝዓግት location block ወስኸሉ።
.phpፋይል ኣብ ውሽጢ/uploads/ካብ ዝኾነ እዋን ብ PHP-FPM ምፍጻም፤ - Inspect the SQL database dump for injected JavaScript and rogue admin users: Before importing your database, scan the
.sqlፋይል ንዝተወግአ<script>መለለዪታት፣eval(base64_decode(...))ጽዕነት፡ ከምኡውን ነቲ...userstable (wp_usersin WordPress) to delete any unfamiliar administrator accounts created by the attacker. Rotate every database password, CMS security salt key, and API token immediately.
Building long-term resilience: the 3-2-1-1-0 backup architecture¶
መርበብ ሓበሬታኻ ናብ መስመር ምስ ተመልሰን ርጉእን ምስ ኮነ፡ ዳግማይ ሓንቲ ነጥቢ ውድቀት ከይገጥመካ ኣውቶማቲክን ምስጢራዊን ካብ ቦታ ወጻኢ ዝኾነ ናይ መጠባበቒ ሻምብቆ ኣወሃህድ፤
- 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ወይborgbackupvia 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.
ብተደጋጋሚ ዝሕተቱ ሕቶታት¶
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.
ምንጭታት ተፈቲሾም¶
- 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). - Internet Corporation for Assigned Names and Numbers (ICANN, International): Policy on Transfer of Registrations between Registrars and Registrant Rights (
icann.org). - Open Web Application Security Project (OWASP, International): Server Hardening, File Upload Sanitization, and Database Security Cheat Sheets (
owasp.org).