Support » Fixing WordPress » Moving WordPress

  • Resolved Yeti

    (@craigheyworth)


    Hi Everyone,

    Ok so I’m going crazy haha. Hopefully you guys can help.

    I’m trying to move a wordpress site i’ve built from one domain to another. I’m working with Dreamhost (who are really slow to respond and difficult to work with… not recommended)

    So i’m looking for a step by step guild to completely move the installation to work on another URL. If you wish to tackle this feat, please don’t assume anything as I believed I’d gone through all the necessary steps but have been unsuccessful so far.

    For reference, here’s what I did

    copied all the files in my ftp to my desktop
    backed up the sql database via phpmyadmin
    set up the domain on my server
    set up a new database on my server
    uploaded the files to the new domain on my server
    uploaded the sql backup on my new database
    changed my config file to point to the new database
    add ‘defines’ to update the urls of the wordpress installation.

    I’ve ran out of time by 4 days :-/ urgh. So any help would be greatful! Thanks!!

Viewing 15 replies - 16 through 30 (of 37 total)
  • First of all —
    For new site —

    — Drop the database from phpMyadmin. You don’t need this data, this belongs to the old site.
    (You may only want to drop the database and NOT DELETE, as it is properly configured back in config.php file)
    —————————–
    Then — Open up the .sql file — and replace all the occurrences of the previous site –

    For example – – replace —

    http://www.previous-site.com ———-with —- http://www.new-site.com

    Be sure to change the link till .com and don’t include the backslash after that — as this won’t change those occurrences which don’t involve a slash after them

    For this you can use a decent text editor like Notepad++.

    Yeti

    (@craigheyworth)

    hmm, I’m a little scared of playing around with the original database as I may cause a mess in there and delete all my clients work. Is this the only way?

    This is surely a way. I don’t know about others.

    — You may want to use “Replace All” feature of text-editors to replace those links.

    AS long as you have the old site up and running — You’re Safe.

    Yeti

    (@craigheyworth)

    oh i see.

    so i’ve just dropped the content in the new database that the new site referenced. Now, from the copy of the old database, I can open it up in a text editor, change the urls and upload it to the new database. That correct?

    So then the side problem is, I started the process that the wordpress help files suggest for ‘moving wordpress’ and changed the site and home url in wp on the original site. Now, even with adding ‘defines’ etc in the config file updates in the functions file, I’m still unable to login; my old user name and password doesn’t allow me access. How do I get around that?

    Well that’s correct for the .sql file.

    I didn’t get when you say —

    changed the site and home url in wp on the original site. Now, even with adding ‘defines’ etc in the config file updates in the functions file, I’m still unable to login; my old user name and password doesn’t allow me access. How do I get around that?

    Check the URL of the login screen of the new site. Is it the same as “museum…” ??

    Yeti

    (@craigheyworth)

    it seems yes.

    When i try login to http://www.jmaw.org/wp-login.php it flashes and refreshes to http://www.museum.bigyetimedia.com/wp-login.php. And when I try then to login to http://www.museum.bigyetimedia.com/wp-login.php it doesn’t redirect, but doesn’t allow me access either :-/

    As I see the log in screen and site urls are all right, you need to perform the sql move.

    That is the issue. — It is redirected back to old site.

    You may want to skype me. ak.singla47

    can some one tell me how to fix this error??

    Warning: date() expects parameter 2 to be long, string given in /home/lennox/public_html/wp-content/themes/johnlennox/page-events.php on line 62

    Warning: date() expects parameter 2 to be long, string given in /home/lennox/public_html/wp-content/themes/johnlennox/page-events.php on line 63

    code is

    $endday = date( ‘D’,$custom_fields[‘wpcf-eveend’][0] );
    $enddate = date( ‘d’,$custom_fields[‘wpcf-eveend’][0] );

    Yeti

    (@craigheyworth)

    ok

    I’m not quite following you on

    As I see the log in screen and site urls are all right, you need to perform the sql move. That is the issue. — It is redirected back to old site.

    What do I need to do to ‘perform the sql move’

    ahh – by that I mean — that change the .sql file for the site names, and import that file into new database.

    You’re not far away, what you need to do.
    Just don’t panic and carefully read this thread.
    You may find the solution.

    I am available on skype for any help: ak.singla47

    esmi

    (@esmi)

    Forum Moderator

    @rmfurqan: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem is completely different.

    ak.singla – Be VERY careful here. Craig is using the exact same DB for the new site and the old one. He didn’t need to move the DB since it’s on the same server.

    Craig – You don’t need to move the DB unless you want to have a second one. Before ak.singla stepped in, I had resolved the issue with http://www.jmaw.org/wp-login.php redirecting for you, but I guess you missed that in the other messages.

    If you’d like, I can make that change for you and you can try to log in again.

    He was mistakenly using the old site database — and — in the wp-config.php

    And, as the user/pass for both db’s were same, he couldn’t notice that error in the config file.

    Yes, it is quite right that he didn’t need to change the db.

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘Moving WordPress’ is closed to new replies.