{"id":850,"date":"2022-08-17T06:51:27","date_gmt":"2022-08-17T06:51:27","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/08\/17\/6477932-how-to-migrate-from-cpanel-to-web-or-cloud-hosting-at-hostinger\/"},"modified":"2026-10-14T10:06:29","modified_gmt":"2026-10-14T10:06:29","slug":"6477932-how-to-migrate-from-cpanel-to-web-or-cloud-hosting-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6477932-how-to-migrate-from-cpanel-to-web-or-cloud-hosting-at-hostinger\/","title":{"rendered":"How to migrate a website from cPanel to Hostinger"},"content":{"rendered":"<p>At Hostinger, you can move your websites from a cPanel provider using automated or manual methods depending on your hosting plan type. Choosing the most suitable path ensures a smooth process.<\/p><h2 id=\"h-option-1-migrate-to-a-hostinger-web-or-cloud-hosting-plan\">Option 1 &ndash; Migrate to a Hostinger web or cloud hosting plan<\/h2><p>If you are moving your cPanel-hosted website to a Hostinger web or cloud hosting plan and the cPanel plan is active, you do not need to move files manually. Hostinger provides an automated migration tool inside Hostinger dashboard that handles the entire process.<\/p><ol>\n<li>Go to Hostinger dashboard &rarr; Websites &rarr; <a data-click-id=\"hgr-post-content-link-migrations\" href=\"https:\/\/hpanel.hostinger.com\/websites\/migrations\" target=\"_blank\" rel=\"noopener\">Migrations<\/a>.<\/li>\n<li>Click on <strong>Migrate website<\/strong>.<\/li>\n<li>Select the <strong>Use login details<\/strong> method.<\/li>\n<li>Follow the on-screen instructions to complete the migration request.<\/li>\n<\/ol><p>For more details, refer to the guide on <a data-click-id=\"hgr-post-content-link-how-to-migrate-a-website-to-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/4455931-how-to-migrate-a-website-to-hostinger\/#h_886f4552be\">how to migrate a website to Hostinger<\/a>.<\/p><h2 id=\"h-option-2-migrate-from-cpanel-to-hostinger-vps\">Option 2 &ndash; Migrate from cPanel to Hostinger VPS<\/h2><p>If you are transferring your website from a cPanel environment to a Hostinger Virtual Private Server (VPS), the automated Hostinger dashboard migration tools do not apply. Instead, you must manually perform the server transfer process.<\/p><p>To move your data to a virtual server, refer to the guide on <a data-click-id=\"hgr-post-content-link-how-to-migrate-to-hostinger-vps\" href=\"https:\/\/www.hostinger.com\/support\/2774885-how-to-migrate-your-vps-to-hostinger\/\">how to migrate to Hostinger VPS<\/a>.<\/p><h2 id=\"h-option-3-migrate-to-hostinger-agency-hosting-backup-migration\">Option 3 &ndash; Migrate to Hostinger Agency hosting \/ backup migration<\/h2><p>If you are moving websites to a Hostinger Agency hosting plan (which does not feature an automated migration flow for cPanel websites) or if the cPanel hosting is no longer active and you have a local backup, follow these steps:<\/p><ol>\n<li>Go to Hostinger dashboard &rarr; Websites &rarr; <a data-click-id=\"hgr-post-content-link-migrations-2\" href=\"https:\/\/hpanel.hostinger.com\/websites\/migrations\" target=\"_blank\" rel=\"noopener\">Migrations<\/a>.<\/li>\n<li>Click on <strong>Migrate website<\/strong>.<\/li>\n<li>Select the <strong>Upload backup files<\/strong>&nbsp;method.<\/li>\n<li>Follow the on-screen instructions to complete the migration request.<\/li>\n<\/ol><h2 id=\"h-option-4-migrate-manually-using-backups\">Option 4 &ndash; Migrate manually using backups<\/h2><p>If the websites could not be moved to Hostinger using the automated tool either using credentials or uploading the backup to the tool, you can complete the process manually. This method involves downloading your backups from cPanel and restoring them within Hostinger dashboard.<\/p><h3 id=\"h_7b85c2bbac\">Step 1 &ndash; Download backups from cPanel<\/h3><ol>\n<li>Log in to your previous provider&rsquo;s cPanel account.<\/li>\n<li>Navigate to the <strong>Files<\/strong> section and click <strong>Backup<\/strong>.<\/li>\n<li>Click <strong>Download a Full Account Backup<\/strong>.<\/li>\n<li>Download the backup archive to your local computer.<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/31fc226a-ef39-4c60-913b-850656420994.jpg\" alt=\"cPanel backup file link to download full account archive\" data-media-id=\"3477\"><\/li>\n<li>Extract the downloaded archive locally using an extraction tool like 7-Zip to access the raw website directories.<\/li>\n<\/ol><h3 id=\"h_42370e54c5\">Step 2 &ndash; Upload website files to Hostinger<\/h3><ol>\n<li><a data-click-id=\"hgr-post-content-link-add\" href=\"https:\/\/www.hostinger.com\/support\/1583214-how-to-add-a-domain-to-my-account-how-to-add-a-website\/\">Add<\/a> the websites (domains or subdomains) to your hosting plan as empty <strong>Custom PHP\/HTML<\/strong> websites.<\/li>\n<li>Locate your website files inside the extracted cPanel backup folder under the <code>homedir<\/code> directory.<\/li>\n<li>Open the <strong>File Manager<\/strong> for your specific domain.<\/li>\n<li><a data-click-id=\"hgr-post-content-link-upload\" href=\"https:\/\/www.hostinger.com\/support\/1884234-how-to-upload-backup-at-hostinger\/\">Upload<\/a> your files directly into the <code>public_html<\/code> folder of the corresponding website.<\/li>\n<\/ol><h3 id=\"h_ed7a323401\">Step 3 &ndash; Import and connect databases<\/h3><p>If your website uses a database (such as a WordPress site), you must manually recreate and link it:<\/p><ol>\n<li>Find your database files in the extracted backup folder under the <code>mysql<\/code> directory.<\/li>\n<li>In Hostinger dashboard, go to the <strong>Databases<\/strong> section and <a data-click-id=\"hgr-post-content-link-create-a-new-mysql-database\" href=\"https:\/\/www.hostinger.com\/support\/1583542-how-can-i-create-a-new-mysql-database\/\">create a new MySQL database<\/a>.<\/li>\n<li>Open phpMyAdmin from Hostinger dashboard and <a data-click-id=\"hgr-post-content-link-import\" href=\"https:\/\/www.hostinger.com\/support\/1884149-how-to-import-a-database-with-phpmyadmin\/\">import<\/a> your database backup file.\n<ol>\n<li>If your database file is larger than 256 MB, import it using an <a data-click-id=\"hgr-post-content-link-ssh-connection\" href=\"https:\/\/www.hostinger.com\/support\/4536306-how-to-import-a-database-over-ssh\/\">SSH connection<\/a> instead.<\/li>\n<\/ol>\n<\/li>\n<li>Open your website&rsquo;s configuration file (such as <code>wp-config.php<\/code> for WordPress) in the Hostinger dashboard File Manager.<\/li>\n<li>Update the following configuration lines with your newly created Hostinger database details:<br>\n<img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/83f7ff50-c1d5-4bfe-96fa-2239435729ac.jpg\" alt=\"WordPress database name setting showing DB_NAME value username_wp123 highlighted in code\" data-media-id=\"3478\">\n<ol>\n<li><strong>DB_NAME<\/strong>: Your new Hostinger database name.<\/li>\n<li><strong>DB_USER<\/strong>: Your new Hostinger database user.<\/li>\n<li><strong>DB_PASSWORD<\/strong>: Your new Hostinger database password.<\/li>\n<li><strong>DB_HOST<\/strong>: Set this value to <code>localhost<\/code>.<\/li>\n<\/ol>\n<\/li>\n<\/ol><p><strong>NOTE<\/strong><\/p><ul>\n<li>For sites built with other CMS, check the <a data-click-id=\"hgr-post-content-link-location-of-the-configuration-files\" class=\"intercom-content-link\" href=\"\/support\/3313359-where-to-find-the-configuration-file-of-my-website\/\" target=\"_blank\" rel=\"noopener\">location of the configuration files<\/a> to connect the database.<\/li>\n<\/ul><h3 id=\"h_3232b824c3\">Step 4 &ndash; Migrate email services (optional)<\/h3><p>To move your custom email accounts and previous messages over to Hostinger, use the <a data-click-id=\"hgr-post-content-link-email-migration-tool\" href=\"https:\/\/www.hostinger.com\/support\/5240867-how-to-migrate-email-services-to-hostinger\/\">email migration tool<\/a> directly in Hostinger dashboard to transfer your mailboxes.<\/p><p>&nbsp;<\/p><p><span data-path-to-node=\"25,1\"><span class=\"citation-546\">You have successfully completed the migration configuration<\/span><\/span><span data-path-to-node=\"25,3\">. <\/span><span data-path-to-node=\"25,5\"><span class=\"citation-545\">Once your files are uploaded and your databases are fully connected, you can <a data-click-id=\"hgr-post-content-link-point-your-domain\" href=\"https:\/\/www.hostinger.com\/support\/1863967-how-to-point-domain-to-hostinger\/\">point your domain<\/a> to Hostinger to take your website live<\/span><\/span><span data-path-to-node=\"25,7\">.<\/span><\/p><p><strong>NOTES<\/strong><\/p><ul>\n<li>If your website displays a <a data-click-id=\"hgr-post-content-link-database-connection-error\" href=\"https:\/\/www.hostinger.com\/support\/1583224-how-to-fix-error-establishing-a-database-connection\/\">database connection error<\/a> after editing your configuration file, carefully double-check your database credentials in Hostinger dashboard.<\/li>\n<li>If your WordPress website shows 404 errors on internal pages after the transfer, log in to your WordPress Admin area and <a data-click-id=\"hgr-post-content-link-save-your-permalinks-again\" href=\"https:\/\/www.hostinger.com\/support\/3490582-how-to-recreate-permalinks-in-wordpress\/\">save your permalinks again<\/a> to rebuild them.<\/li>\n<li>After you submit a migration request in Option 1 or Option 3, track its progress in <a data-click-id=\"hgr-post-content-link-how-to-check-the-website-migration-status-in-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/8385661-how-to-check-the-website-migration-status-in-hostinger\/\">How to check the website migration status in Hostinger<\/a>.<\/li>\n<li>Keep your domain pointed to your previous hosting provider until the migration status is Completed. A domain that already points to Hostinger is a common reason for a rejected request, as explained in <a data-click-id=\"hgr-post-content-link-what-to-do-if-your-website-migration-request-to-hostinger-is\" href=\"https:\/\/www.hostinger.com\/support\/10385247-what-to-do-if-your-website-migration-is-rejected\/\">What to do if your website migration request to Hostinger is rejected<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Select the best method to transfer your website from cPanel to Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[196],"tags":[],"class_list":["post-850","post","type-post","status-publish","format-standard","hentry","category-ftp-file-manager"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6477932-how-to-migrate-from-cpanel-to-web-or-cloud-hosting-at-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6477932-como-migrar-de-cpanel-a-hpanel-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6477932-comment-migrer-de-cpanel-vers-hpanel-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/6477932-cara-migrasi-website-dari-cpanel-ke-hpanel-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/6477932-como-migrar-do-cpanel-para-o-hpanel-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/6477932-\u044f\u043a-\u043f\u0435\u0440\u0435\u0439\u0442\u0438-\u0437-cpanel-\u043d\u0430-\u0441\u043f\u0456\u043b\u044c\u043d\u0438\u0439-\u0430\u0431\u043e-\u0445\u043c\u0430\u0440\u043d\u0438","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=850"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/850\/revisions"}],"predecessor-version":[{"id":20563,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/850\/revisions\/20563"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}