{"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-03-16T12:12:06","modified_gmt":"2026-03-16T12:12:06","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 From cPanel to Web or Cloud Hosting at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">At Hostinger, we have a control panel with all the features to easily manage your hosting plan and websites &ndash; <b>hPanel<\/b>! It is available in all of our Web and Cloud plans.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you currently have a cPanel plan and wish to migrate your websites to a hosting plan with hPanel, follow these steps:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_7b85c2bbac\">Step 1 &ndash; Download Your File and Database Backups<\/h2><p class=\"no-margin\">Go to your cPanel &rarr; <b>Files <\/b>section and click on <b>Backup<\/b>. In the next window, click on <b>Download a Full Account backup<\/b>. You can choose from a list of previously generated backups, if any are available, or generate a new backup. Download the desired backup by clicking on the link:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/31fc226a-ef39-4c60-913b-850656420994.jpg\"><\/div><p class=\"no-margin\">Make sure to <b>extract the files<\/b> from the backup before moving to the next step. You can use your OS terminal or a dedicated software such as 7-Zip.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_42370e54c5\">Step 2 &ndash; Upload Your Website Files<\/h2><p class=\"no-margin\">First, ensure that the domains are <b><a href=\"\/support\/1583214-how-to-add-a-domain-to-my-account-how-to-add-a-website\" target=\"_blank\" class=\"intercom-content-link\">added to your hosting plan<\/a><\/b>. If you&rsquo;re using subdomains, <b><a href=\"\/support\/1583405-how-to-create-and-delete-subdomains-in-hpanel\" target=\"_blank\" class=\"intercom-content-link\">create them as well<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Your website files will be located in the<b> \/homedir<\/b> directory. <b>Upload the files<\/b> to the public_html folder of each domain &ndash; you can check the different available methods to do so here: <b><a href=\"\/support\/1884234-how-to-upload-backup-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">How to upload a backup at Hostinger<\/a><\/b>.<b> <\/b><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">For <b>subdomains<\/b>, upload the files to the folder named after the subdomain, located in the public_html folder of the domain.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_ed7a323401\">Step 3 &ndash; Import and Connect Databases<\/h2><p class=\"no-margin\">If you use databases, as is the case for WordPress websites, you will need to <b>create a new database<\/b> for each website: <b><a href=\"\/support\/1583542-how-can-i-create-a-new-mysql-database\" target=\"_blank\" class=\"intercom-content-link\">How to create a new MySQL database<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Following the example for WordPress, you can <b>identify<\/b> which database corresponds to each of your websites by <b>opening the wp-config.php file<\/b> of the website using a notepad application. The database name will appear next to the DB_NAME parameter:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/83f7ff50-c1d5-4bfe-96fa-2239435729ac.jpg\"><\/div><p class=\"no-margin\">In the cPanel backup you downloaded and extracted, the databases can be found in the <b>\/mysql<\/b> directory. To import them, follow these steps: <b><a href=\"\/support\/1884149-how-to-import-a-database-with-phpmyadmin\" target=\"_blank\" class=\"intercom-content-link\">How to import a database with phpMyAdmin<\/a><\/b>. For larger databases, <b><a href=\"\/support\/4536306-how-to-import-a-database-over-ssh\" target=\"_blank\" class=\"intercom-content-link\">import the database over SSH<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Now, <b>connect the database<\/b> to your WordPress website by replacing the following parameters with the new values in the wp-config.php file:<\/p><ul>\n<li>\n<p class=\"no-margin\">DB_NAME: database name<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">DB_USER: database user<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">DB_PASSWORD: database password<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">DB_HOST: localhost<\/p>\n<\/li>\n<\/ul><h3 id=\"h_9c06cd0d2e\">Common Issues<\/h3><ul>\n<li>\n<p class=\"no-margin\">If you get a database connection error, refer to this article: <b><a href=\"\/support\/1583224-how-to-fix-error-establishing-a-database-connection\" target=\"_blank\" class=\"intercom-content-link\">How to fix &ldquo;Error establishing a database connection&rdquo;<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If your WordPress site shows a 404 error on the internal pages after the migration, <b><a href=\"\/support\/3490582-how-to-recreate-permalinks-in-wordpress\" target=\"_blank\" class=\"intercom-content-link\">recreate the permalinks<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">For sites built with other CMS, check the <b><a href=\"\/support\/3313359-where-to-find-the-configuration-file-of-my-website\" target=\"_blank\" class=\"intercom-content-link\">location of the configuration files<\/a><\/b> to connect the database.<\/p>\n<\/li>\n<\/ul><h2 id=\"h_3232b824c3\">Step 4 &ndash; Migrate Your Email Service (Optional) <\/h2><p class=\"no-margin\">If you wish to <b>migrate your emails<\/b> as well, you can find a complete guide here: <b><a href=\"\/support\/5240867-how-to-migrate-email-services-to-hostinger\" target=\"_blank\" class=\"intercom-content-link\">How to migrate email services to Hostinger<\/a><\/b><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! You have fully migrated from cPanel to hPanel. Now you can <b><a href=\"\/support\/1863967-how-to-point-domain-to-hostinger\" target=\"_blank\" class=\"intercom-content-link\">point your domain to Hostinger<\/a><\/b> &#128522; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Migrating your websites from cPanel to a Web or Cloud hosting plan at 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-PT","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----cpanel----\/","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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/850\/revisions"}],"predecessor-version":[{"id":3482,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/850\/revisions\/3482"}],"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}]}}