{"id":614,"date":"2017-10-20T14:20:56","date_gmt":"2017-10-20T13:20:56","guid":{"rendered":"http:\/\/sburke.eu\/blog\/?p=614"},"modified":"2022-07-25T23:27:40","modified_gmt":"2022-07-25T22:27:40","slug":"wordpress-maintenance","status":"publish","type":"post","link":"http:\/\/sburke.eu\/blog\/2017\/10\/wordpress-maintenance\/","title":{"rendered":"WordPress Maintenance"},"content":{"rendered":"<h3>Forgotten WordPress Password<\/h3>\n<p>If you have forgotten your wordpress password, and the forgot your password email reminder does not work (or is set to someone elses email), then there are a few things you can do.<\/p>\n<ul>\n<li>Option 1: Update the password directly in the database using mysql cli or myphpadmin<\/li>\n<li>Option 2: Edit the &#8220;function.php&#8221; <strong>file in your active themes folder<\/strong>. (Not the wordpress main function.php file) and add in the following at the top, after the &lt;?php:<br \/>\n<span style=\"color: #000080;\">wp_set_password(&#8220;yournewpassword&#8221;,1);<br \/>\n<\/span>Then visit your wordpress website. The password will be reset to &#8220;yournewpassword&#8221;. Re-Edit the functions.php file. Then Login \ud83d\ude42<\/li>\n<\/ul>\n<p>The latter worked nicely for me on a remote host with only ftp access to files.<br \/>\n(<a href=\"http:\/\/codex.wordpress.org\/Resetting_Your_Password\" target=\"_blank\" rel=\"noopener\">Reference<\/a>)<\/p>\n<h3>Backing up WordPress &#8211; &#8216;duplicator&#8217; plugin<\/h3>\n<p>In looking after a remote wordpress install, it is nice to have a full clean working backup to restore back to. Then incase wordpress gets attacked\/destroyed\/host goes down, then you have a working copy.<\/p>\n<p>One of the best wordpress backup plugins I have found is: &#8220;<strong>Duplicator<\/strong>&#8220;.<\/p>\n<p><strong>&#8220;Duplicator&#8221;\u00a0will allow you to take a complete copy of a WordPress install, including all files and SQL database, change all the Site URLs, permalinks and allow you to deploy to www.newserver.com\/whateverurl<\/strong><\/p>\n<p>You install the duplicator plugin\u00a0to the remote wordpress installation. Click run (not sure if this can be automated). A single zipped backup of SQL and all files are created. An &#8220;installer.php&#8221; file is given. Put this installed and the Zip file onto a new server, at any url, and browse to the installer.php. It will ask for a new database user\/pw and will setup right there a working copy of the entire wordpress site with links all updated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Forgotten WordPress Password If you have forgotten your wordpress password, and the forgot your password email reminder does not work (or is set to someone elses email), then there are a few things you can do. Option 1: Update the &hellip; <a href=\"http:\/\/sburke.eu\/blog\/2017\/10\/wordpress-maintenance\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,15],"tags":[16,49,35],"_links":{"self":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/614"}],"collection":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":11,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"predecessor-version":[{"id":681,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions\/681"}],"wp:attachment":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}