WordPress.org

Ready to get started?Download WordPress

Forums

resetting user admin details (4 posts)

  1. afternoon tea
    Member
    Posted 3 years ago #

    arrgghhh!!

    I have had to have a month out from using word press.

    I have come to log back in to update my blog and my user name and password do not work.

    My email is not accepted to reset my password

    How do I recover my 'user name' and then reset my password.

    Bother-ations !!

  2. Maeve Lander
    Member
    Posted 3 years ago #

    You can find a selection of options for resetting your password in the codex here.

    Personally I have found the reset through FTP to be easy and successful.

  3. afternoon tea
    Member
    Posted 3 years ago #

    Enigma - Thank you for your post.

    I have read the info on the codex link....and this is where I hang my head in ignorant IT shame.

    Other that understanding the first 2 options (neither which help) I don;t understand the rest.

    Is there a customer service number that I could call.?

  4. Maeve Lander
    Member
    Posted 3 years ago #

    Ok no worries, let's walk through the FTP password reset option. To make things easier we're going to try to update the file via your cPanel file manager rather than through an FTP client.

    1.) You need to find your cPanel details (often the same as your FTP details). These would have been provided to you by your web host when you first signed up, often in a welcome email of some sort. It is a username/password that lets you access your cPanel, which is an admin area where you can manage your website and other web services (eg stats, email addresses, databases).

    2.)Go to yoursite.com/cpanel and enter your username/password to log in.

    3.) Once logged in, find 'File Manager' and click on it. It will ask you which directory you want to open, select 'web root'

    4.) The file manager will open and list all the files that make up your website. Click on the wp-content directory > themes > and open your active theme folder. Locate the file called 'functions.php' and double click it to download it to your PC.

    5.) On your PC open functions.php in a plain text editor (such as notepad) *You must only edit it in a plain text editor - don't even think about opening it with MS Word....*

    6.) Add this code to functions.php, right at the beginning, after the first <?php:
    wp_set_password('admin',1);

    7.) Save function.php, then re-upload it to the file manager, overwriting the old version.

    8.) Now re-load your website login page, and login with
    username: admin
    password: admin

    You should now be able to log in to the site successfully.

    9.) Once logged in, you need to make sure to go back and remove that code from functions.php. It will reset your password on every page load until you do.

    10.) Your done. You can now go to the users area within the WP admin and reset your password to whatever you want.

    If this doesn't work or if you can't get it done for any reason, I would recommend that you contact a WordPress web developer with your FTP/cPanel details and ask for their assistance.

    Hope it works for you though!

Topic Closed

This topic has been closed to new replies.

About this Topic