How to Migrate from Shared Hosting to a Dedicated Server

Shared Hosting to Dedicated Server Migration banner

To migrate from shared hosting to a dedicated server, inventory your site and email, back up the shared account, prepare the new server, copy and test everything, then stop new writes long enough to move the final data. Change the relevant DNS records only after the new site passes your checks. Keep the old account until you have confirmed website traffic, mail delivery, backups, and scheduled jobs on the new setup.

The transfer method depends on your access. Most shared hosting customers can log in to cPanel or another control panel but cannot run server-wide commands. This guide starts with those limits. It also explains what you can test before the move and why a short DNS TTL alone cannot prevent lost orders or messages.

Do you need a dedicated server?

Move when the limits of your current plan keep affecting the site and a larger shared plan or VPS will not meet your needs. Check the evidence before choosing hardware. Slow pages can also come from uncached requests, large plugins, inefficient database queries, or a third-party service.

Look at several weeks of CPU, memory, process, storage, inode, and database usage. Note traffic peaks, checkout activity, backup size, and any account limits your host has recorded. Size the new server for observed use plus room for growth and backups, rather than for monthly visitor count alone.

托管选项 What you control 合身 Main responsibility
共享托管 Site files and settings allowed by the provider Small sites that fit account limits Provider manages the server; you manage the application
VPS A virtual server with allocated resources Sites that need more control without a whole machine You or the managed provider maintain the server
专用服务器 An entire physical server Sustained workloads, specific hardware needs, or several sites that justify the capacity You or the managed provider handle the operating system, security, backups, and recovery

A VPS may be the simpler next step. A dedicated server gives your workload its own physical hardware, but it has finite CPU, memory, storage, and network capacity. It will not fix an inefficient application by itself. If you are comparing physical options, see our guide to 裸机服务器.

Before ordering, also decide who will install updates, monitor failures, manage the firewall, and restore backups. Root access gives you control; it does not mean the server is managed for you.

Choose a transfer method that your shared account allows

Your source permissions decide how you can move the site. Write down whether you have a cPanel login, full-account backup access, file access, database export access, and email administrator access. Ask the new provider what it can restore before creating an archive.

What you have at the shared host Practical route 确认什么
cPanel account and a downloadable account backup Give the account archive to the destination WHM administrator for a supported restore Panel compatibility, archive size, available disk, and what account data transfers
cPanel account but no usable full backup Ask the destination provider about an account-level transfer; otherwise export files, databases, and mail separately Whether the provider needs account credentials and which parts it will move
File manager or SFTP plus database export Copy site files and import a database dump on the target Document root, application settings, owners, permissions, and database compatibility
WordPress administrator login only Use a supported WordPress migration tool or get help from the old host Plugin scope, upload limits, mailboxes, DNS, cron jobs, and non-WordPress files
Source root or WHM administrator access Use a supported server or account transfer workflow Whether root access exists on both ends and whether versions are compatible

On a typical shared account, you cannot run rsync against system paths or set up server-level database replication. A cPanel user login is also different from WHM root access. The destination administrator may be able to restore an account archive even when you cannot run WHM at the source. cPanel documents account transfer and restore paths; check the current requirements and disk space before starting.

A WordPress plugin can help move a WordPress site. It does not, by itself, prove that the account’s mailboxes, DNS zones, other applications, or scheduled jobs have moved.

Audit the site before you copy anything

Make an inventory that you can use for both the build and final checks. A successful home page is not proof that the rest of the account works.

Record these items for every domain and subdomain:

  • The current registrar, authoritative DNS provider, and complete DNS record set, including A, AAAA, CNAME, MX, TXT, and any DNSSEC settings.
  • Document roots, site files, uploads, private files, redirects, and rewrite rules.
  • Database names and sizes, users, character sets, storage engines, and application connection settings.
  • PHP version and extensions, web server behavior, cache, image processing, and any other runtime dependencies.
  • Mailboxes, aliases, forwarders, SMTP settings, and the current email provider.
  • Cron jobs, background workers, webhook endpoints, payment callbacks, and integrations that write data.
  • TLS certificate coverage, current renewal method, domain ownership, and IP-based allowlists.
  • Current errors, page speed, key URL status codes, and a sample of important search landing pages.

For a store, list every way an order can arrive or change. Checkout, payment callbacks, subscriptions, manual admin changes, inventory updates, and scheduled tasks all count as writers. This list determines the final data freeze.

Take a full backup of files and database data, plus separate mail exports if you plan to move email. Store a copy outside both hosting accounts. Test that you can open the archive and restore a sample database or staging site. RAID can help with a drive failure, but it is not a backup against deletion or corruption.

Prepare the dedicated server before transferring data

Build the target for the application you actually run. Choose the control panel first. If you will use cPanel, follow its supported installation path on a fresh, compatible operating system. Do not install a separate web stack first and assume the panel can adopt it. If you will manage the server without a panel, install and document each required component.

Set up the operating system, access controls, firewall, security updates, web service, PHP runtime, database service, backup destination, and monitoring. Limit administrator access. Keep a working remote console or recovery route in case a firewall change blocks SSH. Record who owns patching and incident response.

Match the source runtime closely enough to move safely. Check PHP extensions and application requirements. Check database version and collation support before import. You can update software later as a separate, tested change. Make sure the new server has enough free space for the site, the database import, temporary archives, logs, and backups. cPanel restores can require substantial temporary disk space in addition to the final account size.

Create the destination account and database credentials. Set the right document root and site hostname. Prepare a certificate path for every public hostname. If your email will move, build mailboxes and authentication records separately; a working website does not set up email.

Copy the website and database while the old site stays live

Make an initial copy before your cutover window. This gives you time to fix compatibility issues while visitors still use the old site. Initial copies are for testing. Any changing data will need a final transfer.

If both sides support a cPanel account transfer

Ask the destination administrator to confirm its transfer or restore method and supported versions. Use the shared account’s available backup or the provider’s supported account-level route. Confirm whether the process includes files, databases, mailboxes, forwarders, SSL material, and cron jobs in your case. Check the restored account rather than assuming every setting survived.

Do not upload account archives through a public web directory. Transfer them through an approved secure channel, and remove temporary copies after you have checked the restore. Verify file ownership, database users, paths, and mail settings on the new server.

If you need to move the site manually

Download files through SFTP or the hosting panel. Export each database through phpMyAdmin or another account-level tool the source host allows. Import on the new server and update the application’s database host, name, user, and password. Preserve hidden files such as .htaccess where the application uses them. Do not apply one blanket permission setting to every directory.

Large databases may exceed browser-based import limits. In that case, use a supported server-side import on the destination or ask the source and destination providers for an account-level export and import route. A mysqldump –single-transaction export can give a consistent snapshot for InnoDB tables when the source permits command-line access, but it does not make all storage engines or concurrent schema changes safe. Match the method to the database and permissions you have.

For WordPress, copy the application files and database, update wp-config.php as needed, and check uploads, permalinks, cache, and plugins. If the public domain remains the same, a normal hosting move does not require replacing every URL in the database. If a staging domain changes URLs, use a WordPress-aware method that handles serialized data. Test checkout or form writes on the target in a way that cannot send real customer notifications or create live transactions.

Decide what happens to email

Email and website hosting can stay together or move separately. First identify where mail is hosted today by checking your service setup and DNS records. The MX record routes incoming mail; it does not copy stored messages.

If you use an external mail service: Keep its MX and required TXT records in place. Check SPF, DKIM, DMARC, verification, and any application SMTP settings after changing web hosting. Do not replace the mail records merely because the website’s A record changes.

If mailboxes are on the shared account: Create the mailboxes, aliases, and forwarders on the new service. Copy existing messages with a supported account transfer or IMAP migration. Test mail in both directions. Set appropriate SPF and DKIM records for the actual sender, and configure reverse DNS if the new server will send mail directly. Plan a final mailbox sync because messages may still reach the old host during the DNS transition.

Do not cancel the old account while it still receives mail. Check old mailbox delivery logs or new message counts where available. If email reputation or deliverability matters, a separate transactional email service may be a better fit than sending directly from a new server IP.

Test the new site before changing public DNS

Send your own browser to the new server while keeping the real hostname in the request. A local hosts-file entry can map example.com 和 www.example.com to the new IP on your test computer. Remove the entry after testing. You can also use a staging hostname, but avoid exposing a duplicate indexable site.

Test more than a home page:

查 通过条件
Key URLs and assets Expected content, HTTP status, images, CSS, and downloads load
应用 Login, search, forms, admin actions, and scheduled work behave as expected
Store or membership site Cart, test checkout, payment callback, inventory, and account flows work safely
资料库 A controlled test write appears on the target and does not alter the live source
TLS Each hostname has a valid certificate and no mixed-content error
安全 Admin access, firewall rules, backups, logs, and monitoring work
Search Canonicals, robots rules, sitemap, redirects, and important status codes match the intended public site

A hosts-file change affects only your device. External payment providers and webhooks still follow public DNS. Use their test or sandbox tools, temporary endpoints, or a planned post-cutover verification. Do not mistake a local preview for an end-to-end test.

Plan certificate issuance before switching traffic. Let’s Encrypt HTTP-01 validation reaches the public hostname on port 80, so your local hosts-file entry does not point the certificate authority to the new server. A suitable DNS-01 challenge, a correctly transferred existing certificate where allowed, or a planned issuance at cutover can solve this. Check certificate renewal on the final setup.

Move the final data and switch DNS

The final cutover has two separate jobs: make the new copy current, then route visitors to it. Shortening DNS TTL helps some resolvers refresh sooner. It does not make every visitor switch at a fixed time and does not preserve orders written to the wrong database.

If you control the DNS zone, lower relevant A and AAAA record TTLs ahead of time, allowing the old TTL to expire before cutover. Record the current values for rollback. Check whether a CDN, proxy, nameserver change, or DNSSEC setting adds another dependency. If you can keep the existing DNS provider, changing only the records you need is often simpler than changing nameservers during the same move.

Use this order for a site with changing data:

  1. Announce the window. Assign a person to watch the source, target, DNS, mail, and application checks. Set a go/no-go time and a rollback decision point.
  2. Stop every writer to the old database. Put the site in a suitable maintenance or read-only state. Pause checkout and admin edits. Stop source cron jobs and background workers. Account for in-flight payment callbacks, queues, uploads, and external integrations.
  3. Take the final data copy. Export the source database and any files changed since the initial copy. Import them on the target. Check counts or recent records that matter to the business, such as the latest order ID and timestamp. Do not start two independent writable copies.
  4. Run the acceptance checks. Confirm key pages, login, checkout test flow, database writes, certificates, and monitoring on the target. Make the target the one intended write destination.
  5. Change the necessary DNS records. Update the site’s A record and AAAA record if you use IPv6. Keep external mail records untouched. Change MX only if mail is moving and the destination is ready.
  6. Watch both ends. Check authoritative DNS and several public resolvers, but also inspect requests at the old and new servers. Verify real orders, mail, logs, error rates, and integrations. Keep the old application read-only or route late visitors safely if your architecture supports that setup.

For a static site with no incoming writes, the final data step can be simple. For an active store, truly uninterrupted checkout across DNS caches needs a shared write destination or a controlled traffic-routing design tested in advance. A short TTL and a second database dump do not provide that guarantee. Plan a brief, clearly managed write pause if you cannot support one write destination for both old and new traffic.

What if you must roll back?

State at decision time Safe response
Target has not accepted new data Keep or return traffic to the old site, diagnose the fault, and verify that the source is current before reopening writes
Target has accepted orders, messages, uploads, or account edits Preserve target data first. Reconcile or copy new records back under a planned procedure before sending writers to the old site
Mail has started reaching the new provider Check both old and new mailboxes and sync late messages; changing MX alone does not move messages back

Reverting DNS is a routing change, not a database rollback. Never erase valid customer actions just to return to the old IP. For more planning detail, review our data center migration risks 向导。

Verify the migration after public traffic moves

Check the public site from more than one network and use the real domain without a local hosts override. Review both IPv4 and IPv6 if both are published. Monitor application errors, database connections, disk use, CPU, memory, and requests still reaching the old host.

Run a real, low-risk transaction through each key workflow. Confirm incoming and outgoing email, contact forms, password resets, payment callbacks, cron execution, and backup completion. Make sure a scheduled job cannot run on both machines and send two sets of messages or alter the same inventory.

Preserve the same public URLs if only the host and IP have changed. Check that key pages return the intended status, canonical tags point to the public domain, robots.txt allows the pages you mean to index, and no staging noindex tag reached production. Keep redirects that already served the old site. Submit or inspect the existing sitemap and watch Google Search Console and Bing Webmaster Tools for crawl errors. A same-URL hosting change does not call for a domain change procedure.

If a service uses IP allowlists, update it for the new address. Check the new IP’s reputation and geolocation when email delivery, access controls, or regional behavior depends on them. Our pre-migration IP checklist covers those checks.

When can you cancel the shared hosting account?

Cancel only after the new site and its recovery path work and the old account no longer hosts anything the domain still needs. The right overlap period depends on the application and the DNS, mail, and billing setup. There is no universal number of days that proves every resolver or late message has cleared.

Before cancellation, confirm that the registrar and authoritative DNS are independent of the old account or have been moved safely. Check mailboxes, forwarders, late incoming messages, backups, cron jobs, private files, and any forgotten subdomain. Take a fresh off-server backup of the destination and test a restore. Retain required records under your own data policy. Then document the final DNS records, server access, certificate renewal, backup schedule, and support contacts.

If the audit shows you need physical hardware and a clear operations plan, compare Atal Networks dedicated servers. Share your current resource use, application stack, storage, location, and migration window when asking for a configuration. Confirm migration help and management scope for the specific plan before you order.

Shared hosting to dedicated server migration checklist

Use this list as a sign-off sheet. The move is complete when the checks pass, not when DNS first changes.

 

阶段 Required sign-off
Audit Domains, files, databases, mail, DNS, certificates, writers, jobs, and integrations listed
保护 Off-server backup taken and sample restore tested
Target Compatible runtime, capacity, security, backups, and monitoring ready
Initial transfer Files, database, and required account settings copied
Preview Important URLs and real application workflows tested
Final sync Source writers stopped; latest data imported and checked
路由 Correct A/AAAA and, where needed, MX records published
Live checks Orders or forms, email, cron, TLS, logs, SEO signals, and backups pass
Retirement No required DNS, mail, or data remains on the old account

经常问的问题

Can I move directly from shared hosting to a dedicated server?

Yes. You do not have to move through a VPS first. Choose dedicated hardware if your measured workload or control requirements justify its cost and operating work. A VPS may be enough for a smaller site.

Can I migrate without root access on the shared host?

Yes. Use your hosting panel’s account backup or supported transfer option, or export site files and databases with account-level tools. The destination administrator can help restore a compatible archive. Check separately how you will move mail and scheduled jobs.

Will my website go down during the move?

You can build and test the new server while the old site remains online. An active site may need a brief write pause for the final database copy. Keeping checkout fully writable throughout requires a tested way for all traffic to use one current data source.

Does lowering DNS TTL to five minutes make the switch take five minutes?

No. TTL tells compliant caches how long to hold a record, but existing caches, client behavior, proxies, and DNS changes outside the A record can affect the transition. Lower the TTL ahead of time, then monitor actual traffic at both servers.

Do I need to move my domain registration?

Usually not. Domain registration, authoritative DNS, website hosting, and email can be separate services. Check who controls each one and change only what your migration requires.

Can I keep Google Workspace or Microsoft 365 email?

Yes. If email stays with an external provider, keep its working MX and related verification and authentication records. Update the website’s address separately and test any forms or applications that send mail.

How do I move a WordPress site without losing orders?

Make an initial copy and test it. For final cutover, stop all writers to the old database, including checkout, webhooks, admin edits, and jobs. Export the latest data, import it on the new server, and verify recent orders before opening the new site for writes.

Can I test SSL on the new server before changing DNS?

Yes, if you have a valid certificate for the hostnames or can complete a suitable domain-control challenge. A hosts-file preview alone cannot direct a public HTTP-01 validation request to the new server. Plan issuance and renewal before cutover.

Will changing servers hurt my search rankings?

A hosting move with unchanged URLs does not require new URLs or redirects. Errors, blocked crawlers, missing pages, poor performance, and accidental noindex settings can still affect search traffic. Compare key pages before and after the move and monitor search tools.

Can I simply change DNS back if something breaks?

Only if the old site still has all current data. If the dedicated server has received new orders, messages, or uploads, capture and reconcile them before returning writes to the old site. DNS reversal alone cannot merge two databases.

How long does a migration take, and what will it cost?

Time depends on the number of sites, account size, database export speed, mail volume, compatibility work, and the length of the test window. Budget for any server setup, panel licenses, managed support, backups, additional storage, and overlap while both accounts run. Get a scope-specific quote rather than assuming the server price includes migration.

滚动至顶部