{"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-03-16T12:11:59","modified_gmt":"2026-03-16T12:11:59","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><h3 id=\"h_ad1d36ed99\"><b>Step 1: Prepare for Migration<\/b><\/h3><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\"><b>Note:<\/b> VPS offers full control and flexibility, while Web Hosting may have restrictions on certain scripts and resource-intensive applications.<\/p>\n<\/div><h3 id=\"h_dfb8077a99\"><b>Step 2: Download Files and Databases from VPS<\/b><\/h3><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.<br>\n&#8203;<\/p>\n<pre><code>ssh root@your-ip-address&#8203;<\/code><\/pre>\n<p class=\"no-margin\">\n<\/p><\/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<p class=\"no-margin\">\n<\/p><\/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\"><b>Note:<\/b> If you see <code>zip: command not found<\/code>, install zip with:<br>\n&#8203;<\/p>\n<pre><code>&#8203;sudo apt-get install zip&#8203;<\/code><\/pre>\n<p class=\"no-margin\">\n<\/p><\/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<p class=\"no-margin\">\n<\/p><\/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.<br>\n&#8203;<br>\n&#8203;<b>Note: <\/b>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.<br>\n&#8203;<\/p>\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:<br>\n&#8203;<\/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_34716dcf2d\"><b>OPTION A:<\/b><\/h2><h3 id=\"h_d3dbc88c16\"><b>Step 3: Set Up Your Web Hosting Environment<\/b><\/h3><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to hPanel<\/b> and open your Web Hosting plan.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Press on <b>&ldquo;Add website&rdquo; -&gt; &ldquo;Migrate Website&rdquo;<\/b><br>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/11\/3c734948-b33e-4c1a-8894-b543213e0e00.jpg\"><\/div>\n<p class=\"no-margin\">\n<\/p><\/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\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/11\/f21de0df-7dcc-4ed6-86a1-5faa88163ac9.jpg\"><\/div>\n<\/li>\n<\/ol><h3 id=\"h_d911aa20c6\"><b>Step 4: Final Checks<\/b><\/h3><ol>\n<li>\n<p class=\"no-margin\">Monitor your website&rsquo;s performance to ensure it&rsquo;s stable on Web Hosting.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If everything looks good, you&rsquo;re all set!<\/p>\n<\/li>\n<\/ol><h2 id=\"h-option-b\">OPTION B:<\/h2><h3 id=\"h_4a4ede25aa\"><b>Step 3: Set Up Your Web Hosting Environment<\/b><\/h3><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to hPanel<\/b> and open your Web Hosting plan.<br>\n&#8203;<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to <b>File Manager<\/b> and <b>upload your website files<\/b> to the <code>\/public_html<\/code> directory.<br>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/11\/0c6fc25e-f83b-4dda-ab0e-1214a89a38da.jpg\"><\/div>\n<p class=\"no-margin\">\n<\/p><\/li>\n<li>\n<p class=\"no-margin\"><b>Create a new database<\/b> 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&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/11\/7d6152ab-67af-4815-9ac3-3e801b4d6ea0.jpg\"><\/div>\n<p class=\"no-margin\">\n<\/p><\/li>\n<li>\n<p class=\"no-margin\"><b>Import your database<\/b>:<\/p>\n<\/li>\n<\/ol><ul>\n<li>\n<p class=\"no-margin\">Go to <b>phpMyAdmin<\/b> in hPanel.<\/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\"><\/div>\n<\/li>\n<\/ul><h3 id=\"h_2ef922f595\"><b>Step 4: Update Configuration Files<\/b><\/h3><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:<br>\n&#8203;<\/p><p class=\"no-margin\">Update database name, username, and password with the one&rsquo;s created in <b>hPanel<\/b>.<br>\n&#8203;<\/p><h3 id=\"h_dc2ec076fa\"><b>Step 5: Final Checks<\/b><\/h3><ol>\n<li>\n<p class=\"no-margin\">Monitor your website&rsquo;s performance to ensure it&rsquo;s stable on Web Hosting.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If everything looks good, you&rsquo;re all set!<\/p>\n<\/li>\n<\/ol>\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-shared-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":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":6996,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/464\/revisions\/6996"}],"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}]}}