Moving an enire website from one host to another

Discussion in 'Databases' started by AndreeaM, May 12, 2008.

  1. #1
    For some time I've been doing some research on this subject. I found out a way to be exact using Draeamwaver to move the entire website to another host, but it did not work.

    Can anyone help?

    Thanks
     
    AndreeaM, May 12, 2008 IP
  2. sachin410

    sachin410 Illustrious Member

    Messages:
    6,422
    Likes Received:
    573
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Did you ask your new host to do it for you?

    Many hosts move sites for new customers.
     
    sachin410, May 12, 2008 IP
  3. alemcherry

    alemcherry Guest

    Best Answers:
    0
    #3
    Does it have any database? If so you will have to back it up and restore. Also need to edit the connection string. Otherwise, it is just downloading and uploading the files.
     
    alemcherry, May 12, 2008 IP
  4. AndreeaM

    AndreeaM Peon

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The site has a database. Thanks guys I did some research too, i understand that all i have to do is back up the database and files and upload them to the new host. Is there a 100% guarantee i will not loose any files ?
     
    AndreeaM, May 12, 2008 IP
  5. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #5
    I your site is hosted on a service that comes with Cpanel there is a backup facility from inside it.

    the best way to backup a website, however is getting a hard copy on your hard drive. This can be done by downloading all of your files via FTP whle the database can be backed up using that Cpanel facility I told or via phpMyAdmin interface.

    Backing up from Cpanel is however the fastest way to do it and you can send your backup from the actual hosting to the remote server and using again Cpanel from your new host you can get your website fully restored automatically with no problem.
     
    Trusted Writer, May 12, 2008 IP
  6. AndreeaM

    AndreeaM Peon

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have backed up everything , crated a new account on my other host as a Addon domain. The new database I and username I crated are not the same as on the old host. The first part (witch is the cpanel username) is not the as on the old host. does this matter? I uplaoded all the files from the zipped archive that was crated from the back up as it is, changed the DNS servers for the domain to reflect the new host. I think I followed everything step by step. But I am sure the site has not been transfered. Can anyone help ?

    Thanks
     
    AndreeaM, May 13, 2008 IP
  7. sylv3rblade

    sylv3rblade Peon

    Messages:
    292
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It takes 1-3 days for DNS to propagate. Try pinging your site. via Start Menu > Run > type "CMD" > on CMD, type ping <your URL here>.

    If you're seeing the new host's IP then propagation is done. If not you have to wait it out.
    yes it matters. You'll likely receive an error that a connection to the database can't be established. You need to edit the config file of the software running your site to accommodate the new username and database.
     
    sylv3rblade, May 13, 2008 IP
  8. AndreeaM

    AndreeaM Peon

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have changed all the data. I think the problem is actually the backup .. the other host has backed up all the folders , including .cpanel .htpasswords etc .. Do I only need to upload the stuff in public_html on the new host? As it doesn`t work with all the files from the back as it is ..

    Thanks
     
    AndreeaM, May 17, 2008 IP
  9. sikandar

    sikandar Active Member

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    68
    #9
    Sometimes depending on the hosting company, some of your database parameters may change. Most often the following parameters are subjected to change.

    1. Database Name
    2. Database User Name
    3. Database Host Connection String

    You will have to make the necessary changes in the programs to make the programs functional.
     
    sikandar, May 17, 2008 IP
  10. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi there Andreea!

    Shifting hosts can be a pain and boy did I experience it the worst possible ways. Lol. Anyway listen, you are getting all omg way too early. The problem lies in your site cpanel panel username. Since you restored a backup, it is extremely important for the new account to have the same username as the old cpanel account. Otherwise database wont work. However, there is a way around this. You have to shift to manual gear! Lol. Go to php my admin, and restore your database manually by running a sql query. First you have to download the old backup, extract it, then open the sql file using NOTEPAD, delete the lines from the start to the exact place where it says 'database name'. Then copy the remaining content, paste it in the sql query window. Provided you have created a database already in the new host, this will work smoothly. Sounds like you are moving wordpress though lol. If you have any other problems, help is only a pm away. :)
     
    godsofchaos, May 17, 2008 IP
  11. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Oh and btw. No, not only the public html folder. Sometimes some private files wont be transferred that way. Rather transfer the www folder and you are safe all around if you are moving a site :)
     
    godsofchaos, May 17, 2008 IP