Forums

Can not login after moving wordpress to other host (19 posts)

  1. Jensr
    Member
    Posted 1 year ago #

    I have transfered my wordpress installation to another host. Here is how:

    1. Downloaded all the WP files from my old host
    2. Uploaded them all to new host
    3. Downloaded the database from old host
    4. Uploaded the database to new host
    5. Changed WP-config information to new database
    - Got an Internal 500 error, fixed it by giving permissions to files and deleting everything from the .htaccess file -
    Now I can not login. It tells me every time I or someone else tries to log in. I tried the recover password function, got it, and that does not allow me to log in either. When I go to my homepage, I get a 404 error. I see my theme, including hte widgets, but clicking on a page or post just gives me the same 404. Please help me.

  2. Samuel B
    moderator
    Posted 1 year ago #

  3. Jensr
    Member
    Posted 1 year ago #

    Does not work. I know I have my password correct, but even if that would work it would be no solution to my 404 problem.

  4. Jensr
    Member
    Posted 1 year ago #

    Ok, update:

    The homepage is now visible. I did these commands in Php My Admin:

    UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');


    However,
    clicking on a post or other page still gives me a 404. I also can still not login, it tells me and every other user that the password is wrong. ( It is not ).

  5. The 404 is likely because your permalinks need to be reset.

    But.

    If you can't login, you can't fix that. Did you try EVERY method to reset your password?

    (It looks like you didn't follow the how to move WP directions: http://codex.wordpress.org/Moving_WordPress which say to change the URL ...)

  6. Jensr
    Member
    Posted 1 year ago #

    I do not think it is because my passwords are rong. I tried resetting them but it ALWAYS gives me the wrong password error, including my other users.

  7. If you enter your password and you can't log in, then somehow you have the wrong password. There's no much of another option here :)

    Dump your browser cache and cookies, flush any saved password, and, again, did you try every method of password resetting?

    You have:
    * Through the automatic emailer
    * Through MySQL Command Line
    * Through phpMyAdmin
    * Through FTP
    * Using the Emergency Password Reset Script
    * Retrieve Administrator E-mail via FTP

  8. Jensr
    Member
    Posted 1 year ago #

    As you can see in the post above I executed the neccesary queries to change the URL, so it is now correct..

  9. As you can see in the post above I executed the neccesary queries to change the URL, so it is now correct..

    I did see that. But you also said:

    I also can still not login, it tells me and every other user that the password is wrong. ( It is not ).

    Look, it's easy.

    Can you login? No? Then somehow the password is wrong. Please note, I am NOT saying you've forgotten your password. The file could have been corrupted when you imported/exported. There are MANY reasons for that. But the point is this: You cannot login with your password, ergo your password is incorrect.

    It doesn't matter to me one bit WHY it's wrong, what matters is getting you back up and running :)

    So. PLEASE answer the following questions or I can't offer you any help:

    1) Did you dump your browser cache and cookies, and flush any saved passwords?
    2) Did you try every method of password resetting?

    If not, please try that.

  10. Jensr
    Member
    Posted 1 year ago #

    The answer is Yes to both of those. I also had my co-admin try the same steps ( except the different reset opitions ) and he also had the error.

  11. Really? None of them worked?

    Not even the FTP one where you add wp_set_password('password',1); to functions.php in your theme? And you tried all these AFTER you ran those phpMyAdmin commands?

  12. Jensr
    Member
    Posted 1 year ago #

    Yeah I tried them before and after

    Edit: I just tried the FTP method again, still did not work.

  13. Jensr
    Member
    Posted 1 year ago #

    OK, because I am so desperate. I am going to start over.
    THIS time, I will not change domains ( I choste to use the IP of my new server to test everything first and then change it to the new domain)

    SO, will try this method:

    1. Backup the database from the old site and import it to the new site. Pay attention to database names.
       2. Change your wp-config.php in the old site to point to the database on the new site. Your old site will now run using database based on the new site and once you change the names ervers new site will have the up to date database. (You may want to check with your new hosting if they allow outside database access first. If not, you can skip this step and transfer the database at the end, when the nameserver change propagated)
       3. Backup your entire WordPress installation from the old site (this will include all your uploads, themes, plugins)
       4. Unpack your WordPress installation to the new site
       5. Change wp-config.php on the new site with new database details
       6. Change the nameservers to point to the new site

    I hope I succeed in doing this without downtime.

  14. Are you following the directions fropm this site: http://www.prelovac.com/vladimir/how-to-move-wordpress-site-to-another-server-with-zero-downtime

    I ask because those don't look like what I'm used to... Did you read this: http://codex.wordpress.org/Moving_WordPress

    Also BEFORE you move! Make sure you can log in :) Dump your cookies and cache and login, manually entering the password.

  15. Jensr
    Member
    Posted 1 year ago #

    My host does not support remote database, so i'm skipping that method. Going with the WordPress codex method :)

    Thnx alot for helping out! I can login btw :D

  16. Jensr
    Member
    Posted 1 year ago #

    Can you tell me if i need to copy the .htacces file from the old host to the new one? Or just put a blank one on the new host?

  17. James
    Happiness Engineer
    Posted 1 year ago #

    You don't need to move the file. Just re-save your permalink structure at Settings/Permalinks in your admin panel after the move. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

  18. Jensr
    Member
    Posted 1 year ago #

    Ok thnx, I will :)

  19. My host does not support remote database, so i'm skipping that method.

    Ah yeah, that'd do it. You gotta watch out :) MOST hosts don't permit remote databases.

Topic Closed

This topic has been closed to new replies.

About this Topic