{"id":1160,"date":"2020-06-26T17:27:36","date_gmt":"2020-06-27T00:27:36","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=1160"},"modified":"2024-01-15T12:27:31","modified_gmt":"2024-01-15T20:27:31","slug":"how-to-move-a-wordpress-site-manually-no-plug-in-and-phpmyadmin-required","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=1160","title":{"rendered":"How To Move A WordPress Site Manually (No Plug-in And Phpmyadmin Required)"},"content":{"rendered":"\n<p><strong>How To Move A WordPress Site Manually (No Plugin And Phpmyadmin Required)?<\/strong><\/p>\n\n\n\n<p>This article is assuming both old and new server are ruing same software, like Apache, MySQL, PHP, etc.<\/p>\n\n\n\n<p><strong>Step 1: Backup all files on the old server<\/strong><\/p>\n\n\n\n<p>&nbsp;\/var\/www<\/p>\n\n\n\n<p>&nbsp;\/etc\/httpd<\/p>\n\n\n\n<p>&nbsp;\/etc\/php.ini<\/p>\n\n\n\n<p><strong>Step 2: check the exiting configures from wp-config.php<\/strong><\/p>\n\n\n\n<p>define( &#8216;DB_NAME&#8217;, &#8216;wp&#8217; );<\/p>\n\n\n\n<p>\/** MySQL database username *\/<\/p>\n\n\n\n<p>define( &#8216;DB_USER&#8217;, &#8216;wordpress&#8217; );<\/p>\n\n\n\n<p>\/** MySQL database password *\/<\/p>\n\n\n\n<p>define( &#8216;DB_PASSWORD&#8217;, &#8216;YourPassword&#8217; );<\/p>\n\n\n\n<p>\/** MySQL hostname *\/<\/p>\n\n\n\n<p>define( &#8216;DB_HOST&#8217;, &#8216;localhost&#8217; );<\/p>\n\n\n\n<p>\/** Database Charset to use in creating database tables. *\/<\/p>\n\n\n\n<p>define( &#8216;DB_CHARSET&#8217;, &#8216;utf8mb4&#8217; );<\/p>\n\n\n\n<p>\/** The Database Collate type. Don&#8217;t change this if in doubt. *\/<\/p>\n\n\n\n<p>define( &#8216;DB_COLLATE&#8217;, &#8221; );<\/p>\n\n\n\n<p><strong>Step 3: Backup Database on the old server<\/strong><\/p>\n\n\n\n<p>[root@mail ~]# mysqldump -u wordpress -p wp &gt; dump.sql<\/p>\n\n\n\n<p>Enter password:<\/p>\n\n\n\n<p>root@mail ~]#<\/p>\n\n\n\n<p><strong>Step 4: Create a new dbasebase on the new server<\/strong><\/p>\n\n\n\n<p>[root@www ~]# mysql -u root -p<\/p>\n\n\n\n<p>Enter password:<\/p>\n\n\n\n<p>Welcome to the MariaDB monitor.&nbsp; Commands end with ; or \\g.<\/p>\n\n\n\n<p>Your MariaDB connection id is 19<\/p>\n\n\n\n<p>Server version: 10.3.17-MariaDB MariaDB Server<\/p>\n\n\n\n<p>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<\/p>\n\n\n\n<p>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<\/p>\n\n\n\n<p>MariaDB [(none)]&gt; CREATE DATABASE wp;<\/p>\n\n\n\n<p>Query OK, 1 row affected (0.000 sec)<\/p>\n\n\n\n<p>MariaDB [(none)]>\u00a0 CREATE USER &#8216;wordpress&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;Your-Password-Here&#8217;;<\/p>\n\n\n\n<p>Query OK, 0 rows affected (0.001 sec)<\/p>\n\n\n\n<p>MariaDB [(none)]>\u00a0 GRANT ALL ON wp.* TO &#8216;wordpress&#8217;@&#8217;localhost&#8217;;<\/p>\n\n\n\n<p>Query OK, 0 rows affected (0.001 sec)<\/p>\n\n\n\n<p>MariaDB [(none)]&gt; FLUSH PRIVILEGES;<\/p>\n\n\n\n<p>Query OK, 0 rows affected (0.001 sec)<\/p>\n\n\n\n<p>MariaDB [(none)]&gt; exit<\/p>\n\n\n\n<p>Bye<\/p>\n\n\n\n<p><strong>Step 5, restore the database on the new server<\/strong><\/p>\n\n\n\n<p>[root@www ~]# mysql -u root -p&nbsp; wp &lt; dump.sql<\/p>\n\n\n\n<p>Enter password:<\/p>\n\n\n\n<p><strong>Step 6, Upload all files to the new server<\/strong><\/p>\n\n\n\n<p>\/var\/www<\/p>\n\n\n\n<p>&nbsp;\/etc\/httpd<\/p>\n\n\n\n<p>&nbsp;\/etc\/php.ini<\/p>\n\n\n\n<p><strong>Step 7, start the Apache on the new server<\/strong><\/p>\n\n\n\n<p>If your website is using https, make sure to install the SSL module for Apache. Otherwise, the httpd service will not start.<\/p>\n\n\n\n<p>[root@www ~]# dnf install mod_ssl<\/p>\n\n\n\n<p>[root@www ~]# systemctl start httpd.service<\/p>\n\n\n\n<p>All done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Move A WordPress Site Manually (No Plugin And Phpmyadmin Required)? This article is assuming both old and new server are ruing same software, like Apache, MySQL, PHP, etc. Step 1: Backup all files on the old server &nbsp;\/var\/www &nbsp;\/etc\/httpd &nbsp;\/etc\/php.ini Step 2: check the exiting configures from wp-config.php define( &#8216;DB_NAME&#8217;, &#8216;wp&#8217; ); \/** <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=1160\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[104,5,178],"tags":[],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-apache","category-linux","category-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1160"}],"version-history":[{"count":3,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions"}],"predecessor-version":[{"id":4995,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions\/4995"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}