Skip to content
Migration5 min read

How to move your website from Hostinger to ArabyHost

Short answer

Download your files and export your databases from Hostinger's hPanel, note your email accounts and DNS records, then recreate everything in ArabyHost's cPanel. Test the new copy through your computer's hosts file, point the domain's nameservers to ArabyHost, and keep the Hostinger plan active until DNS propagation has finished. ArabyHost also offers free migration help.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Before you start
  2. Step by step
  3. Troubleshooting
  4. On ArabyHost

According to Hostinger’s public pages, its hosting is managed through its own control panel, hPanel, rather than cPanel. That means a cPanel backup file can’t be restored in one step; instead you move each part on its own: files, databases, email and DNS records. It sounds like more work than it is, and the method below avoids downtime because the old site keeps running until the new one is proven.

Before you start

  • Logins for hPanel and for wherever your domain is registered (Hostinger or another registrar).
  • An ArabyHost hosting account with your domain added in the panel.
  • Enough free space on your computer for the site files and database exports.
  • An inventory of what you’re moving (step 1).

Step by step

1. Take an inventory

Write down every website and domain, each database name and user (for WordPress, they’re in wp-config.php), every email address, any cron jobs, and the PHP version each site uses. This list is your checklist at the end.

2. Back up the files

In hPanel’s File Manager, compress the site’s public_html folder into a ZIP archive and download it. According to Hostinger’s help pages, hPanel also has a backups section where you can generate and download file and database backups. For large sites, an FTP client such as FileZilla is more reliable than a browser download. Check that hidden files such as .htaccess are included.

3. Export the databases

Open phpMyAdmin from hPanel’s databases section, select the database, then Export » Quick » SQL » Go. If you have SSH on the old plan, mysqldump handles large databases better:

mysqldump -u DB_USER -p --single-transaction --default-character-set=utf8mb4 DB_NAME > site.sql

4. Save your DNS records

Open the domain’s DNS zone in hPanel and copy every record, especially custom ones: TXT records for Google or Microsoft verification and for SPF, CNAME records for services such as a store platform or email marketing tool, and any subdomains. You’ll recreate the ones you still need on ArabyHost.

5. Upload the files to ArabyHost

Open cPanel and go to Files » File Manager » public_html. Click Upload, upload the ZIP, then right-click it and choose Extract. Make sure the site’s files sit directly in public_html, not in a nested folder. Delete any lines in .htaccess that point to paths or handlers from the old server, and keep folders at 755 and files at 644.

6. Create the database and import it

Use Databases » MySQL Database Wizard to create a database and a user, and give the user ALL PRIVILEGES. cPanel adds your account username as a prefix, so the names look like cpuser_wp. Then open phpMyAdmin, select the new database, choose Import, and upload the .sql file. If the file is too big, see phpMyAdmin import too large. Update the connection details in wp-config.php:

define('DB_NAME', 'cpuser_wp');
define('DB_USER', 'cpuser_wpuser');
define('DB_PASSWORD', 'the-new-strong-password');
define('DB_HOST', 'localhost');

Leave $table_prefix exactly as it was. The WordPress-specific details are in migrating WordPress.

7. Recreate email accounts

In Email » Email Accounts, create the same addresses. To bring old messages across, add both the old and new mailboxes to an IMAP mail client and copy the folders, or use imapsync. The full method is in moving email to a new host.

8. Test before changing DNS

Make your computer alone see the new server by editing its hosts file. Find the server IP address in cPanel’s general information panel, then add a line:

SERVER_IP  example.com  www.example.com

The file is C:\Windows\System32\drivers\etc\hosts on Windows (edit it as administrator) and /etc/hosts on macOS and Linux (use sudo). Flush the DNS cache with ipconfig /flushdns on Windows or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS. Now test pages, logins, forms and checkout. A certificate warning at this stage is normal, because the SSL certificate is issued once the domain really points to the server. Remove the line when you’re done.

9. Switch DNS

If you can, lower the TTL of your current records a day in advance so the change spreads faster. Then choose one option:

  • Nameservers: at your registrar (in hPanel’s domain section if the domain is registered with Hostinger), replace the nameservers with ns1.arabicode.com and ns2.arabicode.com. See changing nameservers.
  • A record only: if you manage DNS elsewhere, for example in Cloudflare, point the @ and www records to the ArabyHost IP, and update MX records if email is moving too.

10. Keep the old account until propagation finishes

DNS propagation can take up to 48 hours, and during that time some visitors still reach Hostinger. Avoid publishing content or taking orders on the old copy, or re-export the database at the end for a busy store. Sync email one last time after the MX change. Check the new records with the DNS lookup tool, and cancel the old plan only after a few days of everything working.

Troubleshooting

  • “Error establishing a database connection”: the details in wp-config.php don’t match, usually because the cPanel prefix is missing. See database connection error.
  • You still see the old site: your hosts file line is still there, or your DNS cache hasn’t updated.
  • Email doesn’t arrive at the new mailbox: the MX records still point to the old provider, or the mailbox wasn’t created yet.
  • 500 error after the move: a leftover .htaccess directive from the old server. Check the error log; the Araby AI assistant can explain it.
  • Links point to a temporary address: replace it in the database with a search-and-replace tool.

On ArabyHost

ArabyHost runs cPanel, opened with one click from the Araby Panel, on LiteSpeed, which reads your existing .htaccess rules like Apache. Free SSL is issued automatically once the domain points here, business email gets SPF and DKIM set up automatically, and daily JetBackup backups start from the first day. If you’d rather not do the steps yourself, use the free migration help. For a side-by-side look at the two services, see ArabyHost and Hostinger compared.

FAQ

Will my site go down during the move?

It shouldn't. The Hostinger copy keeps serving visitors while you build and test the new one. After the DNS switch, each visitor reaches whichever server their DNS points to, and both work, so there's no gap as long as the old plan stays active until propagation finishes.

Do I have to transfer my domain away from Hostinger?

No. Changing the nameservers or the A record is enough to move the site. Transferring the domain registration is a separate, optional step you can do later.

Can ArabyHost do the migration for me?

ArabyHost offers free migration help. Start from the migration page, and the Arabic-speaking support team will work through the move with you.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.