WordPress Maintenance

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 password directly in the database using mysql cli or myphpadmin
  • Option 2: Edit the “function.php” file in your active themes folder. (Not the wordpress main function.php file) and add in the following at the top, after the <?php:
    wp_set_password(“yournewpassword”,1);
    Then visit your wordpress website. The password will be reset to “yournewpassword”. Re-Edit the functions.php file. Then Login :-)

The latter worked nicely for me on a remote host with only ftp access to files.
(Reference)

Backing up WordPress – ‘duplicator’ plugin

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.

One of the best wordpress backup plugins I have found is: “Duplicator“.

“Duplicator”¬†will 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

You install the duplicator plugin¬†to 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 “installer.php” 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.

This entry was posted in IT, Web Development and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *