<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>local host to server | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/local-host-to-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 11 Dec 2022 04:47:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>How to move WordPress site to a new server or a new domain without downtime?</title>
		<link>https://studentprojects.in/software-development/wordpress/wordpress-installation/move-wordpress-site-new-host-domain/</link>
					<comments>https://studentprojects.in/software-development/wordpress/wordpress-installation/move-wordpress-site-new-host-domain/#comments</comments>
		
		<dc:creator><![CDATA[Ranjith Kadamboor]]></dc:creator>
		<pubDate>Wed, 02 Mar 2011 14:16:17 +0000</pubDate>
				<category><![CDATA[WordPress Installation]]></category>
		<category><![CDATA[Move domain]]></category>
		<category><![CDATA[move wordpress]]></category>
		<category><![CDATA[shift server]]></category>
		<category><![CDATA[local host to server]]></category>
		<category><![CDATA[once domain to another]]></category>
		<category><![CDATA[wp migrate db]]></category>
		<category><![CDATA[Export database]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Migrate website]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1481</guid>

					<description><![CDATA[<p>Here is a Step by step procedure&#160;to move a WordPress site from&#160;one server to another&#160;server or&#160;from localhost to server. You can also move the complete website setup from&#160;one domain name to another. If you have hosted your website on a dedicated server or cloud server and don&#8217;t have a cPanel and PHPMyAdmin access, then click</p>
<p>The post <a href="https://studentprojects.in/software-development/wordpress/wordpress-installation/move-wordpress-site-new-host-domain/">How to move WordPress site to a new server or a new domain without downtime?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is a <strong>Step by step procedure</strong>&nbsp;to move a WordPress site from&nbsp;<strong>one server to another</strong>&nbsp;<strong>server</strong> or<strong>&nbsp;from localhost to server</strong>. You can also move the complete website setup from&nbsp;<strong>one domain name to another</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="960" height="440" src="https://studentprojects.in/wp-content/uploads/2011/03/Move-wordpress-website.jpg" alt="" class="wp-image-9330" srcset="https://studentprojects.in/wp-content/uploads/2011/03/Move-wordpress-website.jpg 960w, https://studentprojects.in/wp-content/uploads/2011/03/Move-wordpress-website-300x138.jpg 300w, https://studentprojects.in/wp-content/uploads/2011/03/Move-wordpress-website-768x352.jpg 768w" sizes="(max-width: 960px) 100vw, 960px" /></figure></div>


<p>If you have hosted your website on a dedicated server or cloud server and don&#8217;t have a cPanel and PHPMyAdmin access, then click here to read How to move WordPress site to a new server or a new domain using SSH?</p>



<p><strong>Assumptions</strong></p>



<p><strong>Server 1</strong>: Current server where WordPress is set up. This can be your local host also.<br><strong>Server 2</strong>: The server where you want to move the website.</p>



<p><strong>Follow the below steps.</strong> </p>



<h2>1. Server 1: Export database</h2>



<p>We can use a simple plugin to export the WordPress database. Login to the WordPress control panel of <strong>server1</strong> and install the plugin &#8220;<strong>WP Migrate DB</strong>&#8220;</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="560" height="302" src="https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate-DB.jpg" alt="" class="wp-image-9269" srcset="https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate-DB.jpg 560w, https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate-DB-300x162.jpg 300w" sizes="(max-width: 560px) 100vw, 560px" /><figcaption>WP Migrate DB plugin</figcaption></figure></div>


<p>WP Migrate DB helps to export the WordPress database, does a find and replace on URLs and file paths, and then allows you to save it to your computer for free of cost.</p>



<p>Once the installation is completed, open Tools -&gt; WP Migrate -&gt; MIGRATE -&gt; Export database. </p>



<p>Here we have to update the domain name and website file path. </p>



<p>To move the website from one domain name to another or from localhost to the actual domain name, you need to fill Current address and new address. If there is no change in the domain name, then just leave it blank. </p>



<p>File-path is the complete file path of your server. You can get this file path on the cPanel. If you don&#8217;t know the full path, you can ignore this. </p>



<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="726" height="356" src="https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate.jpg" alt="" class="wp-image-9268" srcset="https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate.jpg 726w, https://studentprojects.in/wp-content/uploads/2011/03/Wp-Migrate-300x147.jpg 300w" sizes="(max-width: 726px) 100vw, 726px" /></figure>



<p>Click Export Database to export the database. Download and keep it. </p>



<h2>2. Server 1: Download the website files</h2>



<p>Download complete website files from server1 using FTP or file manager. As there are multiple files, it is better to zip the files and download them as a single file. Login to cPanel and click on File Manager.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="900" height="464" src="https://studentprojects.in/wp-content/uploads/2022/05/File-Manager-Wordpress.jpg" alt="" class="wp-image-9316" srcset="https://studentprojects.in/wp-content/uploads/2022/05/File-Manager-Wordpress.jpg 900w, https://studentprojects.in/wp-content/uploads/2022/05/File-Manager-Wordpress-300x155.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/05/File-Manager-Wordpress-768x396.jpg 768w" sizes="(max-width: 900px) 100vw, 900px" /><figcaption>cPanel File Manager</figcaption></figure></div>


<p>Go to the public_html folder. Select all the files inside and click on the compress option on the right-click menu. Give a name and save it in the public_html folder. Now download the zip file.</p>



<p>Alternatively, you can download the files using any FTP application. </p>



<p>Now we have taken the complete back of WordPress files and database. </p>



<h2>3. Server 2: Import Database</h2>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="914" height="248" src="https://studentprojects.in/wp-content/uploads/2022/05/cPanel-Database.jpg" alt="" class="wp-image-9317" srcset="https://studentprojects.in/wp-content/uploads/2022/05/cPanel-Database.jpg 914w, https://studentprojects.in/wp-content/uploads/2022/05/cPanel-Database-300x81.jpg 300w, https://studentprojects.in/wp-content/uploads/2022/05/cPanel-Database-768x208.jpg 768w" sizes="(max-width: 914px) 100vw, 914px" /><figcaption>Database section in cPanel</figcaption></figure></div>


<ul><li>Login to Server 2 cPanel</li><li>Create a new database<ul><li>Open MySQL Databases</li><li>Create a new MySQL database and note down the created database name</li><li>Create a new MySQL user</li><li>Add User To Database: Select the created user and database and click add. Provide all the permissions. </li></ul></li><li>Import the database<ul><li>Open phpMyAdmin</li><li>Select the database on the left-hand side</li><li>Click on Import</li><li>Chose file: Select the exported database dump downloaded from server 1</li><li>Click on the &#8216;Go&#8217; button.</li><li>Once the import is done, there will be a success message. </li></ul></li></ul>



<h2>4. Server 2: Upload the website files</h2>



<p>Upload the downloaded WordPress files zip file to the public_html folder of Server 2. You can upload using the FTP application or using File manager. </p>



<p>Login to server 2 cPanel and go to File Manager. Select the public_html folder. Upload the WordPress files zip file. Once the upload is done, unzip the files into the public_html folder. </p>



<p>Edit the wp-config.php file and update the database and user details which you have created and noted down. </p>



<pre class="wp-block-code"><code lang="php" class="language-php">/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** Database username */
define( 'DB_USER', 'username_here' );

/** Database password */
define( 'DB_PASSWORD', 'password_here' );

/** Database hostname */
define( 'DB_HOST', 'localhost' );</code></pre>



<p></p>



<h2>5. Update the DNS records</h2>



<p>Now you have moved the database and all the website files from one server to another. Now is the time to point the domain to the new server. </p>



<p>Login to the domain control panel and go to DNS or name server settings. Point the DNS of your domain name to the new hosting server. Usually, it will take 12-24 hours to update the records. </p>



<h2>6. Browse the website and enjoy! </h2>



<p><span style="font-size: revert; color: initial;">You are done with all the tasks. Open the URL on the browser and check if the website opens properly. </span>Still, your domain may point to the old server and open the website properly. To check whether the website loaded from the old server or the new server, you use the ping command on the command prompt and check the IP. You can also rename the index.php file of the old server and check if the website loads properly. </p>



<p>Just drop a comment if you get any problems while moving the website. I will be happy to assist you. </p><p>The post <a href="https://studentprojects.in/software-development/wordpress/wordpress-installation/move-wordpress-site-new-host-domain/">How to move WordPress site to a new server or a new domain without downtime?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/wordpress/wordpress-installation/move-wordpress-site-new-host-domain/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
