Transferring a site from one server to another

Discussion in 'Site & Server Administration' started by iowadawg, Feb 11, 2006.

  1. #1
    Okay, I am at a loss here and need some help.
    I bought a site that is on one server.
    I want to move the entire site, files and all, mysql databases, etc to another server.
    I do not have the files, or it would not be a problem.
    How do I go about (explaining simple as I know nothing about this) moving the site from one host company to another?

    Will even entertain such help as someone offering to move it for me.

    Thank you for reading.
     
    iowadawg, Feb 11, 2006 IP
  2. vishalrao

    vishalrao Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's step by step process to help you transfer your site from Server A to Server B:

    1) Download all the files (entire site directory) from Server A to your PC, using an FTP program like CuteFTP (assuming you must have also got the ftp access to the site bought).

    2) Create an account on Server B and upload all the files to the newly created site directory.

    3) Now point the nameservers of your domain name to the server B. Your domain name should point to the new server in 24-48 hrs.
     
    vishalrao, Feb 12, 2006 IP
  3. iowadawg

    iowadawg Prominent Member

    Messages:
    10,918
    Likes Received:
    811
    Best Answers:
    0
    Trophy Points:
    380
    #3
    And screwed it up royally!
    So after trying and trying, using advice and help from everyone, I hit the brilliant idea of doing this:
    ASKING MY HOST!
    So it was transferred and all is okay now!

    So now, when another poor soul needs help like this, I will know exactly what to offer.

    Thank you for your response.
    Oh, the site is:
    http://www.ezforumhost.com
     
    iowadawg, Feb 12, 2006 IP
  4. vishalrao

    vishalrao Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, I forgot about backing up mysql databases.

    I assume you also have telnet or shell access to the mysql server. After you telnet to server A. The syntax of command used to backup mysql database is:
    mysqldump -u [username] -p [password] [databasename] > [/path_to/backupfile.sql]

    Where [username], [password], [databasename] are username, password and database name of the mysql database you are going to backup.

    P.S. Brackets are used just for representation. Do not use them in real commands.

    After you have backed up the database, you need to compress it so you can download it to your pc. The command to compress is:

    gzip /path_to/backupfile.sql

    The new file will be backupfile.sql.gz

    Now download this file and upload to your new server to some location in your newly created directory. Here's how to restore the database:

    First, uncompress the mysql file:

    gunzip /path_to/backupfile.sql.gz

    Next, restore the database using command:

    mysql -u [username] -p [password] [database_to_restore] < [/path_to/backupfile.sql]
     
    vishalrao, Feb 12, 2006 IP
  5. vishalrao

    vishalrao Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oh! Congratulations! That's always the best option.
     
    vishalrao, Feb 12, 2006 IP