{"id":794,"date":"2011-10-29T17:23:29","date_gmt":"2011-10-30T00:23:29","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=794"},"modified":"2011-10-29T17:23:29","modified_gmt":"2011-10-30T00:23:29","slug":"move-wordpress-blogs-to-a-new-server","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/mythemes\/move-wordpress-blogs-to-a-new-server.html","title":{"rendered":"Move WordPress Blogs To A New Server"},"content":{"rendered":"<p style=\"text-align: center;\"><em>WordPress has all the tools to move a current blog to a new server or a new url easily with preserving all comments, view counts and everything that I know of. I had to move my blogs with hundreds of posts and comments and view counts for many popular posts from Justhost.com to Inmotion Hosting due to &#8220;inodes&#8221; over limit (TOS). After a few trials and errors, I got it down to a few simple steps. <\/em><\/p>\n<div class=\"igallery\">\n<p style=\"text-align: center;\"><em>First, we need to understand the basic of a database, especially in WordPress. I have 4 blogs using the same database, we need to use the <a class=\"preview\" title=\"phpmyadmin\" href=\"\/media\/wpweb\/inmotion\/phpmyadmin.jpg\" >phpMyAdmin<\/a> which should be in any control panel of hosting server.<\/em><\/p>\n<p style=\"text-align: center;\"><strong><em>BACK UP BLOG DATABASE<\/em><\/strong><\/p>\n<p style=\"text-align: center;\"><em>Open phpMyAdmin, select the database of the blog we want to move to the new server, notice the tables of the database. We will need to create the same table when install the new WordPress on the new server.<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"phpMyAdmin database panel\" href=\"\/media\/wpweb\/inmotion\/sm_phpmyadmin1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"phpMyAdmin panel with all databases\" src=\"\/media\/wpweb\/inmotion\/tn_phpmyadmin1.jpg\" alt=\"phpmyadmin\" width=\"250\" height=\"103\" \/><\/a>     <a class=\"preview\" title=\"WordPress database with 4 blog tables\" href=\"\/media\/wpweb\/inmotion\/sm_phpmyadmin2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"WordPress database with 4 blog tables\" src=\"\/media\/wpweb\/inmotion\/tn_phpmyadmin2.jpg\" alt=\"phpmyadmin\" width=\"250\" height=\"159\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"url that needs to be the same\" href=\"\/media\/wpweb\/inmotion\/sm_phpmyadmin3.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"database table with url that need to be the same\" src=\"\/media\/wpweb\/inmotion\/tn_phpmyadmin3.jpg\" alt=\"phpmyadmin\" width=\"250\" height=\"22\" \/><\/a>     <a class=\"preview\" title=\"url that needs to be the same\" href=\"\/media\/wpweb\/inmotion\/sm_phpmyadmin4.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"url needs to be the same\" src=\"\/media\/wpweb\/inmotion\/tn_phpmyadmin4.jpg\" alt=\"phpmyadmin\" width=\"250\" height=\"54\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>We need to export the database we want to move with the blog.<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"export database and save\" href=\"\/media\/wpweb\/inmotion\/sm_exportdb.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"export database\" src=\"\/media\/wpweb\/inmotion\/tn_exportdb.jpg\" alt=\"export database\" width=\"250\" height=\"117\" \/><\/a>     <a class=\"preview\" title=\"export database and save\" href=\"\/media\/wpweb\/inmotion\/sm_exportdb1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"save database\" src=\"\/media\/wpweb\/inmotion\/tn_exportdb1.jpg\" alt=\"export database\" width=\"250\" height=\"188\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><strong>BACK UP THE BLOG<\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><em>WordPress has tools: import and export function that will export\/import everything of the blog which is great. All posts and comments should be the same as the database date and time. If the old blog is still running and there are more comments, post views counts, make sure back up the database just before transferring it to the new server.<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"export blog\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"export blog \" src=\"\/media\/wpweb\/inmotion\/tn_exportwp.jpg\" alt=\"export wordpress\" width=\"250\" height=\"177\" \/><\/a>     <a class=\"preview\" title=\"save blog by exporting\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"Save WordPress blog\" src=\"\/media\/wpweb\/inmotion\/tn_exportwp1.jpg\" alt=\"export wordpress\" width=\"250\" height=\"147\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>If your theme has back up settings, then export the settings also, zip the whole theme folder with all the modifications and edits we did before.<strong><\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"export theme settings\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"export theme settings\" src=\"\/media\/wpweb\/inmotion\/tn_exportwp2.jpg\" alt=\"export theme settings\" width=\"250\" height=\"128\" \/><\/a><em><strong>     <a class=\"preview\" title=\"zip the theme folder\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp3.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"Zip the theme folder\" src=\"\/media\/wpweb\/inmotion\/tn_exportwp3.jpg\" alt=\"zip the theme folder\" width=\"250\" height=\"95\" \/><\/a><\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"zip and download the theme folder\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp4.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"zip the theme folder\" src=\"\/media\/wpweb\/inmotion\/tn_exportwp4.jpg\" alt=\"zip the theme folder\" width=\"250\" height=\"126\" \/><\/a>     <a class=\"preview\" title=\"zip and download the plugins folder\" href=\"\/media\/wpweb\/inmotion\/sm_exportwp5.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"zip  and download the plugins folder\" src=\"\/media\/wpweb\/inmotion\/tn_exportwp5.jpg\" alt=\"zip the plugins folder\" width=\"250\" height=\"109\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>*** <strong>IF WE&#8217;RE GOING TO KEEP THE SAME URL FOR THE BLOG-ZIP THE BLOG FOLDER***<\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><em>If we&#8217;re going to keep the same url =&#8221;www.dognmonkey.com\/audi&#8221; from the old server to the new server &#8220;www.dognmonkey.com\/audi&#8221; then we only need to extract the whole blog.zip file to the new one &#8220;root\/&#8221; because when we enter the new &#8220;dognmonkey.com&#8221; DNS server address, the www.dognmonkey.com will be directed to the root of the new server. After extracted the blog.zip, we should have &#8220;root\/audi&#8221; folder, that&#8217;s where all the data of the blog. Make sure all the other data that the blog used must be in the same relative position as the root folder from the old one. For example, I use a folder for media at the root of the domain for all blogs to share, therefore I must copy the whole directory media to the root of the new server. <\/em><\/p>\n<p style=\"text-align: center;\"><em><strong>*** RESTORE THE OLD DATABASE TO THE NEW ONE ***<\/strong><\/em><\/p>\n<p style=\"text-align: center;\"><em>Create a <a class=\"preview\" title=\"create database\" href=\"\/media\/wpweb\/inmotion\/createdb1.jpg\">new database <\/a>on the new server for the &#8220;www.dognmonkey.com\/audi&#8221; WordPress blog, the database will be blank, use phpMyAdmin to import the old database to it. Now all we need to do is to edit the &#8220;wp_config&#8221; file in the restored blog (&#8220;www.dognmonkey.com\/audi\/&#8221; ), edit all the database name, user, password and table (wp_audi) to the new database created and restored with old database. Make sure the table of the database is the same as the old one. When done, remember to change the rights of the config file to &#8220;444&#8221;. Now the blog will be exactly the same as when it was last backed up, post views counts, comments, posts are there.<\/em><\/p>\n<p style=\"text-align: center;\"><em><br \/>\n<a class=\"preview\" title=\"new database _wp1(0) blank\" href=\"\/media\/wpweb\/inmotion\/newdb.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"New database _wp1(0) blank\" src=\"\/media\/wpweb\/inmotion\/tn_newdb.jpg\" alt=\"new database blank (0)\" width=\"250\" height=\"60\" \/><\/a>      <a class=\"preview\" title=\"restore old database to the new one\" href=\"\/media\/wpweb\/inmotion\/newdb1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"import old database (restore) to new one\" src=\"\/media\/wpweb\/inmotion\/tn_newdb1.jpg\" alt=\"new database\" width=\"250\" height=\"86\" \/><\/a><\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"old database restored on new one _wp1(49)\" href=\"\/media\/wpweb\/inmotion\/newdb2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"old database restored on the new one _wp(49)\" src=\"\/media\/wpweb\/inmotion\/tn_newdb2.jpg\" alt=\"old database restored\" width=\"250\" height=\"77\" \/><\/a>     <a class=\"preview\" title=\"edit wp_config modify database to new one\" href=\"\/media\/wpweb\/inmotion\/editconfig.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"edit wp_config file to new database\" src=\"\/media\/wpweb\/inmotion\/tn_editconfig.jpg\" alt=\"edit config\" width=\"250\" height=\"110\" \/><\/a><\/p>\n<\/div>\n<p style=\"text-align: center;\">Please check out related posts if somethings are not shown here.<\/p>\n<p style=\"text-align: center;\"><em>Cheers,<\/em><\/p>\n<p style=\"text-align: center;\"><em>idog<\/em><\/p>\n<p style=\"text-align: center;\">tobecontinued<\/p>\n<p style=\"text-align: center;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has all the tools to move a current blog to a new server or a new url easily with preserving all comments, view counts and everything that I know of. I had to move my blogs with hundreds of posts and comments and view counts for many popular posts from Justhost.com to Inmotion Hosting <a href=\"https:\/\/www.dognmonkey.com\/mythemes\/move-wordpress-blogs-to-a-new-server.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,55],"tags":[845],"class_list":["post-794","post","type-post","status-publish","format-standard","hentry","category-webhostings","category-wordpress-3-2-1","tag-move-wordpress-to-new-server"],"views":10,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts\/794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/comments?post=794"}],"version-history":[{"count":0,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts\/794\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/media?parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/categories?post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/tags?post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}