{"id":464,"date":"2024-11-06T16:54:32","date_gmt":"2024-11-06T16:54:32","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/11\/06\/10091923-how-to-migrate-your-website-from-vps-to-shared-hosting-on-hostinger\/"},"modified":"2026-10-02T02:21:01","modified_gmt":"2026-10-02T02:21:01","slug":"10091923-how-to-migrate-your-website-from-vps-to-web-hosting-on-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10091923-how-to-migrate-your-website-from-vps-to-web-hosting-on-hostinger\/","title":{"rendered":"How to migrate your website from VPS to web hosting on Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Migrating your website from a VPS plan to Web Hosting on Hostinger is a straightforward process. This guide will walk you through each step to ensure a smooth transition.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">This article is part of <a data-click-id=\"hgr-post-content-link-how-to-move-a-website-within-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/move-website-within-hostinger\/\">how to move a website within Hostinger<\/a>. If you&rsquo;re moving between other plan types or accounts instead, start there to find the right method for your situation.<\/div><h2 id=\"h_ad1d36ed99\"><b>Step 1 &ndash; Prepare for migration<\/b><\/h2><p class=\"no-margin\">Before you start the migration process, make sure to:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Check resource requirements<\/b> to ensure that your website can perform optimally on a Web Hosting plan.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Review limitations<\/b> of Web Hosting to confirm compatibility (e.g., software compatibility, resource limits).<\/p>\n<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">VPS offers full control and flexibility, while Web Hosting may have restrictions on certain scripts and resource-intensive applications.<\/p>\n<\/div><h2 id=\"h_dfb8077a99\"><b>Step 2 &ndash; Download files and databases from VPS<\/b><\/h2><ol>\n<li>\n<p class=\"no-margin\"><b>Connect to your VPS via SSH:<\/b><br>\nin your terminal enter this command, with your VPS IP address.<\/p>\n<pre><code>ssh root@your-ip-address&#8203;<\/code><\/pre>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Find your website directory:<br>\n&#8203;<\/b>To locate your directory, use this command:<\/p>\n<pre><code>&#8203;find \/ -type d -name \"your_website_directory\"&#8203;<\/code><\/pre>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Compress your website files:<br>\n&#8203;<\/b>Compress all website files into a .zip file:<\/p>\n<pre><code>&#8203;zip -r file_name.zip path\/to\/your\/directory<\/code><\/pre>\n<p class=\"no-margin\">If you see <code>zip: command not found<\/code>, install zip with:&#8203;<\/p>\n<pre><code>&#8203;sudo apt-get install zip&#8203;<\/code><\/pre>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Download the compressed file to your local device:<br>\n&#8203;<\/b>Run this command on your <b>local machine&rsquo;s terminal<\/b> (not on the VPS), changing <code>your_vps_ip<\/code> with your actual IP:<\/p>\n<pre><code>&#8203;scp root@your_vps_ip:\/path\/to\/file_name.zip \/local\/path\/&#8203;<\/code><\/pre>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Export your database:<br>\n&#8203;<\/b>Create a backup of your database:<\/p>\n<pre><code>&#8203;mysqldump -u root -p database_name &gt; backup_name.sql<\/code><\/pre>\n<p class=\"no-margin\">You will be prompted to enter your password, you should enter your <b>mysql<\/b> <b>password<\/b> for the specified user.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">&#8203;While you are entering the password, <b>it will seem that nothing is being typed<\/b> <b>in the terminal<\/b>. It&rsquo;s a common security practice.<\/div>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Download the database backup:<br>\n&#8203;<\/b>Again, on your <b>local machine&rsquo;s terminal <\/b>(not on the VPS), run:<\/p>\n<pre><code>&#8203;scp root@your_vps_ip:\/path\/to\/backup_name.sql \/local\/path\/&#8203;<\/code><\/pre>\n<\/li>\n<\/ol><h2 id=\"h_d3dbc88c16\"><b>Step 3 &ndash; Set up your web hosting environment<\/b><\/h2><h3>Option A &ndash; <a data-click-id=\"hgr-post-content-link-create-migration-request\" href=\"https:\/\/www.hostinger.com\/support\/4455931-how-to-migrate-a-website-to-hostinger\/\">Create migration request<\/a><\/h3><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to Hostinger dashboard<\/b> and open your Web Hosting plan.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to the Website section then click<b> Import Website<\/b>, choose <strong>Upload your website files.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-19426\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-01.png\" alt=\"\" width=\"870\" height=\"235\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-01.png 870w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-01-300x81.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-02_09-01-768x207.png 768w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><br>\n<\/strong><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Upload your website <b>backup files<\/b> (don&rsquo;t forget the database file)<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-19406\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-52.png\" alt=\"\" width=\"1197\" height=\"402\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-52.png 1197w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-52-300x101.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-52-1024x344.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-52-768x258.png 768w\" sizes=\"(max-width: 1197px) 100vw, 1197px\" \/><\/div>\n<\/li>\n<\/ol><h3 id=\"h_34716dcf2d\">Option B &ndash; Upload files and import database manually<\/h3><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to Hostinger dashboard<\/b> and open your Web Hosting plan.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to <a data-click-id=\"hgr-post-content-link-file-manager\" href=\"https:\/\/www.hostinger.com\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\"><b>File Manager<\/b><\/a> and <a data-click-id=\"hgr-post-content-link-upload-your-website-files\" href=\"https:\/\/www.hostinger.com\/support\/1869114-how-to-upload-backups-with-file-manager-in-hostinger\/\"><b>upload your website files<\/b><\/a> to the <code>\/public_html<\/code> directory.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-create-a-new-database\" href=\"https:\/\/www.hostinger.com\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/\"><b>Create a new database<\/b><\/a> for your website by going to <b>Databases <\/b>in the side menu, then Management, then by creating new database name, username and password.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-19410\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-58_1.png\" alt=\"\" width=\"860\" height=\"382\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-58_1.png 860w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-58_1-300x133.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-01_19-58_1-768x341.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><a data-click-id=\"hgr-post-content-link-import-your-database\" href=\"https:\/\/www.hostinger.com\/support\/1884149-how-to-import-a-database-with-phpmyadmin-in-hostinger\/\"><b>Import your database<\/b><\/a>:<\/p>\n<\/li>\n<\/ol><ul>\n<li>\n<p class=\"no-margin\">Go to <b>phpMyAdmin<\/b> in Hostinger dashboard.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Select your newly created database and import the <code>.sql<\/code> file from your local device.<br>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/11\/b5e961b1-af9c-4c11-b509-8f4f62c51018.jpg\" alt=\"phpMyAdmin import page with file upload field highlighted\" data-media-id=\"2249\"><\/div>\n<\/li>\n<\/ul><h2 id=\"h_2ef922f595\"><b>Step 4 &ndash; Update configuration files<\/b><\/h2><p class=\"no-margin\"><b>Edit your configuration file<\/b> (e.g., <code>wp-config.php<\/code> for WordPress or <code>config.php<\/code> for other CMSs) to reflect the new database details:<\/p><p class=\"no-margin\">Update database name, username, and password with the one&rsquo;s created in <b>Hostinger dashboard<\/b>.<\/p><h2 id=\"h_dc2ec076fa\"><b>Step 5 &ndash; Final checks<\/b><\/h2><p class=\"no-margin\">Monitor your website&rsquo;s performance to ensure it&rsquo;s stable on Web Hosting. If everything looks good, you&rsquo;re all set!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two simple ways how to migrate from VPS to a Web Hosting on 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":[275],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-other-website"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10091923-how-to-migrate-your-website-from-vps-to-web-hosting-on-hostinger","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/464","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=464"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":19435,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/464\/revisions\/19435"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}