Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The safest way to move a cPanel website to an Ubuntu VPS is to build the new server beside the old one, copy and verify everything, and change DNS only after the Ubuntu site works. A plain VPS will not recreate cPanel automatically: you must install and configure the web server, runtime, database, users, permissions, cron jobs, mail (if used), firewall, backups and TLS yourself. Keep the cPanel server online until the new server has handled real traffic successfully and you have a tested rollback plan.

This guide covers both options: retaining cPanel on the Ubuntu VPS, or rebuilding the site on a standard Ubuntu stack. It includes the inventory, backup, transfer, database, testing, DNS, certificate and rollback steps needed to avoid lost data and unnecessary downtime.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the destination architecture first

Your migration procedure depends on whether the Ubuntu VPS will run cPanel or a conventional manually managed stack. Decide this before copying data, because the required software, licensing, account model and administration responsibilities differ.

Option What you gain What you must plan for
Ubuntu VPS with cPanel and WHM Account-oriented administration, familiar cPanel tools and supported cPanel transfer workflows. cPanel licensing, the control panel’s supported operating system and hardware, and software compatibility with the old server.
Plain Ubuntu VPS Direct control of Apache or nginx, PHP and other runtimes, database services, users, firewall and resource allocation; no control-panel licensing. A complete stack rebuild. You administer virtual hosts, permissions, updates, backups, logs, certificates, mail, DNS-related services and security.

Requirements when cPanel remains on the destination

cPanel’s current Ubuntu support is for Ubuntu 24.04 LTS. Its 2026 requirements list at least 2 GB of RAM and 20 GB of disk, with 4 GB of RAM and 40 GB of disk recommended for cPanel & WHM. The installation also requires root access, a registered and resolvable fully qualified hostname, and IPv4 connectivity. Confirm these conditions before provisioning; installing on an unsupported image can force a rebuild later.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

What “plain Ubuntu” really means

Without cPanel, an Ubuntu image gives you an operating system, not a ready-made hosting account. Ubuntu’s server documentation treats Apache2, nginx, databases, DNS, backups and security as separate administration areas. You must select and configure each service, then reproduce the behavior the application previously received from cPanel.

Map the cPanel account before touching DNS

Create an inventory that another administrator could use to recreate the site. Do not rely only on the document-root folder: important behavior often lives in DNS, cron, database privileges, PHP extensions or application secrets.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Every primary domain, subdomain, addon domain, parked domain and alias.
  • The document root for each hostname, upload and media directories, symbolic links and any files outside the document root that the application reads.
  • Redirects, canonical-host rules, rewrite rules and forced-HTTPS behavior.
  • PHP or other runtime versions, required extensions, process settings and application-specific modules.
  • Database names, users, passwords, character sets, collations, privileges and connection hostnames.
  • Environment variables, API keys, webhook endpoints, encryption keys and other secrets. Record where they are used, but store the values securely rather than in a shared checklist.
  • All cron entries, scheduled framework commands, queue workers and server-side timers, including their run times and working directories.
  • Mailboxes, aliases, forwarding rules, mailing lists, SMTP credentials and MX, SPF, DKIM and DMARC records if the VPS will handle mail.
  • DNS records (A, AAAA, CNAME, TXT, MX, SRV and CAA), nameserver ownership and the provider account that can edit them.
  • Active TLS certificates, certificate names, renewal method and any certificate pinning or upstream integration.
  • Webhooks, payment callbacks, external allowlists, firewall rules and monitoring checks that refer to the old IP address.

Export the inventory to a versioned, access-controlled document. Note the current IP addresses and the time of the last successful backup so you can tell whether a later change is expected.

Back up both data and server state

Plan for two kinds of recovery: restoring the website’s content and reverting the infrastructure change. Take a provider snapshot or full-server image when your VPS provider offers one, then create independent copies of the files, configuration and databases. A cPanel account backup protects data managed by cPanel, but it is not automatically a complete image of programs or unmanaged server state on an Ubuntu machine.

Make and verify the database backup

For MySQL, Ubuntu documents a dump followed by a matching restore:

mysqldump [database name] > dump.sql
mysql [database name] < dump.sql

Use the real database name in place of the bracketed example, and keep the dump outside the web root. Check that the file is readable, has a plausible size, and can be imported into a test database before the cutover. Preserve the database user, privileges, charset and collation information alongside the dump; importing tables without recreating access rights commonly produces an application that loads but cannot write.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Define a rollback trigger

Write down the conditions that will send traffic back to cPanel: for example, failed logins or checkout transactions, persistent server errors, missing mail, or an unrecoverable certificate problem. Keep the old server unchanged and reachable. Rollback is a DNS decision, not a reason to delete the source before caches and application jobs have been observed.

Provision and secure the Ubuntu VPS

  1. Choose a supported Ubuntu LTS image. Match the CPU, memory and disk to the application, its database and expected logs. If cPanel is the destination, use Ubuntu 24.04 LTS and meet the cPanel requirements described above.
  2. Create a non-root administrator. Grant it sudo access, install your SSH public key and test a second session before disabling or restricting direct root login.
  3. Patch the operating system. Apply all available updates and reboot when the kernel or other core packages require it.
  4. Set identity and networking. Configure a stable hostname (a fully qualified name if required by your control panel), verify the server’s IPv4 and IPv6 addresses, and set the correct time zone and time synchronization.
  5. Restrict the firewall. Allow SSH from your administration network where practical, and open only the HTTP, HTTPS and other service ports the application actually needs. If the VPS will serve mail, account for its mail ports deliberately rather than opening a broad range.
  6. Install monitoring and backups. Confirm that disk, memory, CPU, service health and backup failures will be visible before public traffic arrives.

Do not copy the old server’s binaries or package directories wholesale. Install compatible packages on Ubuntu, then transfer application data and configuration in a controlled way.

Recreate the web and application stack

Install the selected web server (Apache or nginx), the exact or a compatible PHP/runtime version, required extensions, the database engine and any queue or cache services the application uses. cPanel’s migration guidance emphasizes matching target software versions; a major PHP or database change can alter behavior even when the files are identical.

Create hosts, users and permissions

For every hostname, create an Apache virtual host or nginx server block with the correct document root. Reproduce redirects, rewrite rules, upload limits, timeouts and canonical-domain logic. Create a dedicated system user or group for the site, assign ownership deliberately, and make only the upload, cache or other required directories writable. Never make the entire document root writable by the web process just to get past a permissions error.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Restore secrets and scheduled work

Place environment files and credentials outside publicly served directories where the application supports it. Recreate cron jobs with the intended user, absolute paths and working directory; then run each command manually once and inspect its log output. Restore queue workers, webhooks and external allowlists, replacing the old IP only where the destination address is authorized.

Plan mail separately

A website transfer does not automatically move mail. If mail stays with the existing provider, preserve its MX and authentication records and test SMTP credentials from the new application. If the VPS will host mail, migrate mailboxes and filtering, reproduce MX, SPF, DKIM and DMARC records, and test inbound and outbound delivery before changing those records. Treat mail as a separate service with its own backup and abuse controls.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Copy website files without losing changes

Use an authenticated transfer over SSH or another encrypted channel. An rsync-style copy is efficient for repeated synchronization:

rsync -a SOURCE_PATH/ USER@NEW_SERVER:DEST_PATH/

Replace the uppercase values with the actual source directory, administrator account and destination path. Preserve timestamps and then set ownership and permissions on the Ubuntu side according to the service user you created. Copy hidden files such as environment files only when they are needed, and inspect them for old absolute paths, hostnames and credentials.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Perform an initial copy while the cPanel site remains live. After testing the destination, schedule a short maintenance window or freeze writes, run a final synchronization, and take the final database dump. This sequence prevents uploads, orders, comments or other writes made during the first copy from being overwritten or omitted.

Export, import and reconcile the database

  1. Put the application into a maintenance or read-only mode if it supports one, or otherwise stop writes for the final export.
  2. Run the final mysqldump and verify that the dump completed without errors.
  3. Create the destination database and user with the intended charset, collation and privileges.
  4. Run the documented mysql [database name] < dump.sql restore command on Ubuntu.
  5. Update the application’s connection settings and test both reads and writes. Check timestamps, auto-increment behavior, uploaded-file references and any queues or sessions stored in the database.
  6. Keep the final dump and the previous known-good dump until the migration has been accepted.

If the site uses more than one database, repeat the inventory and restore process for each one. Do not assume a successful web response proves that every background worker or reporting database is connected.

Use cPanel’s supported transfer path only for cPanel-to-cPanel moves

When both servers run cPanel & WHM, the WHM Transfer Tool or an account archive/cpmove restore is the supported route. The replacement cPanel server should contain software versions compatible with the old server, and cPanel’s restore interface accepts an account backup or cpmove archive. Those tools do not turn a plain Ubuntu installation into a cPanel account manager; for a non-cPanel destination, use the stack-rebuild procedure and manually recreate services.

Test the Ubuntu site before public DNS changes

Do not use public DNS as your first test. Point a test workstation’s hosts file at the VPS address, or use a temporary staging hostname that maps to the destination. Test every hostname, including redirects and HTTPS, while normal visitors still reach cPanel.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
  • HTTP status codes for the home page, representative content pages and expected error pages.
  • HTTPS, certificate names, HTTP-to-HTTPS redirects and canonical-host redirects.
  • Administrative login, password reset, forms, search, checkout or other critical transactions.
  • File uploads, image and media delivery, generated thumbnails and downloads.
  • Database reads and writes, sessions, queues, scheduled jobs and webhook callbacks.
  • Mail sending and receiving if the migration includes mail or changes application SMTP settings.
  • Application, web-server, PHP/runtime, database and system logs for warnings, permission errors and repeated failures.
  • Firewall behavior, resource use, disk capacity and backup completion.

Test from more than one network and with both the bare domain and every required subdomain. Fix errors on the destination and repeat the final synchronization if test activity changed data.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Lower TTL, switch DNS and issue TLS

Prepare the DNS change

Lower the TTL on records you will change before the maintenance window when practical. Confirm that you can edit the authoritative zone and identify whether the website uses A, AAAA, CNAME or a proxy service. At cutover, update the required records to the VPS address, then query the authoritative nameservers and several public resolvers. DNS caches do not follow a universal, guaranteed propagation timetable, so do not announce a fixed number of minutes for completion.

Leave unrelated records—especially MX, SPF, DKIM, DMARC, verification TXT records and service CNAMEs—unchanged unless your inventory shows that they must move. An accidental MX edit can interrupt mail even when the website itself is healthy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install or renew HTTPS certificates

Let’s Encrypt certificates are free, trusted by major browsers and clients, and valid for 90 days according to current Ubuntu documentation. The domain must resolve to the new server for issuance, and an HTTP-01 challenge requires port 80 to be reachable. After DNS points to Ubuntu, Certbot can configure nginx:

sudo certbot --nginx -d example.com -d www.example.com

For Apache, use the corresponding Apache installer:

sudo certbot --apache -d example.com -d www.example.com

Certificates are stored under /etc/letsencrypt/live/<domain>/. Verify the complete chain and each hostname, then test automated renewal with:

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
sudo certbot renew --dry-run

Do not remove the old certificate until the new server has served HTTPS successfully and renewal testing has passed.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Monitor the cutover and keep rollback possible

Watch access and error logs, application transactions, database health, CPU, memory, disk, queues, webhooks and mail after changing DNS. Compare real behavior with the inventory rather than checking only whether the home page loads. Keep cPanel online while DNS caches age and while certificate, email and scheduled-job checks remain clean.

If a serious problem appears, restore the affected DNS records to the old IP, preserve the Ubuntu logs, identify the failing component and repeat the final file and database synchronization. Do not continue accepting writes on both servers without a deliberate conflict-resolution plan. Once the observation period is complete and backups are verified, decommission the cPanel server only after documenting the final DNS state.

Troubleshoot common migration failures

“502 Bad Gateway” or a blank PHP response

Check that the installed runtime version and extensions match the application’s requirements, that the PHP process is running, and that the web server points to the correct socket or upstream. Review runtime and web-server logs before changing permissions.

“403 Forbidden” or uploads fail

Inspect ownership of the document root and writable directories, parent-directory traversal permissions, and the web-server security rules. Grant write access only to directories that need it, then retry an upload while watching the logs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The site loads but cannot save data

Verify the destination database name, user, password, host, charset, collation and privileges. A successful read does not prove that INSERT, UPDATE or file-backed session operations work.

Only some domains work

Check that every virtual host/server block exists, that its DNS record points to the new address, and that the TLS certificate includes the hostname. Test the bare domain, www and each subdomain independently.

HTTPS issuance fails

Confirm that DNS already resolves to Ubuntu, port 80 is reachable from the internet, the firewall permits the challenge, and no redirect or proxy blocks the HTTP-01 request. Correct the DNS or firewall issue, then rerun Certbot.

Visitors see old content after the switch

Different resolvers and browsers may retain cached answers for different periods. Query authoritative nameservers and multiple public resolvers, and keep the old server available. Do not delete the source merely because one network shows the new address.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Final cutover checklist

  • Architecture selected: cPanel on Ubuntu with its supported requirements, or a documented plain Ubuntu stack.
  • Domains, DNS, software versions, extensions, databases, secrets, cron, mail, certificates and integrations inventoried.
  • Provider snapshot and independent file, configuration and database backups verified.
  • Ubuntu administrator, SSH keys, updates, hostname, firewall, monitoring and backup jobs configured.
  • Virtual hosts, runtimes, permissions, writable paths, database users and scheduled tasks recreated.
  • Initial copy completed, final write freeze planned, and final file synchronization and SQL dump ready.
  • Destination tested through a hosts-file entry or staging hostname, including transactions, uploads, logs, mail and HTTPS.
  • TTL lowered where practical; authoritative DNS access confirmed; only intended records scheduled for change.
  • Certificates issued or installed, renewal dry-run passed, and port 80/443 reachability verified.
  • Rollback trigger agreed, old cPanel host retained, and post-cutover monitoring assigned.