• Resolved nurserowan

    (@nurserowan)


    This is my first attempt at a local install of wordpress. I’m building a new wp site to replace an older one that is currently live. I stupidly got too far ahead of myself and changed the wordpress address and site address from localhost/wordpress to the url for the site I’m replacing and now I can’t get into the backend of the localhost install as it redirects to the login page for the live site. How do I get back into the backend to change it back?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Open wp-config.php file and add those lines below define(‘WP_Debug’,’false’;);

    define('WP_HOME','http://localhost/yoursite-dir');
    define('WP_SITEURL','http://localhost/yoursite-dir');

    Alternatively, using your local database tool (generally phpMyAdmin), find and edit the siteurl and home fields of the wp_options table in your WP database.

    If the location of the WP install is, as you indicated wordpress,then use the complete path:

    http://localhost/wordpress

    Thread Starter nurserowan

    (@nurserowan)

    Tried both of the suggestions above. That allows me to get back to the wp-login screen, but it won’t let me log in with my previous password. Tried resetting my password but I never receive reset emails. Any ideas?

    Unless you have a properly configured email server running on your local system, you will not have password reset facilities.

    To manually reset your password, follow these instructions:

    http://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin

    Thread Starter nurserowan

    (@nurserowan)

    I changed my username and password using phpMyAdmin as instructed but still can’t log in for some reason. I’m still getting:

    ERROR: The password you entered for the username xyz123 is incorrect. Lost your password?

    Did you make sure that you selected MD5 from the dropdown for the password? 🙂

    – completely delete the value currently in the password field
    – enter a value, for example, 123123 (as this is a local install, it doesn’t need to be strong)
    – select MD5 from the dropdown for the user_pass varchar(64) field
    – click “Go”

    That should do it 🙂

    Thread Starter nurserowan

    (@nurserowan)

    That did it. You’re a life-saver Lyle. Thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Locked out of localhost install’ is closed to new replies.