Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

What you need to do when you move a website?

Discussion in 'Web Server' started by Xorin, Feb 17, 2017.

Tags:
  1. Xorin

    Xorin Guest

    Hello,

    I need to move a web server from one machine to another (Linux servers) and I don't have too much experience in this area.



    The problem I'm facing is that I have a server that I don't know too much about it (how it was configured) and I need to get the web site, with the php and sql db from it and drop it in a new machine.

    Can someone advise how should I get this web site moved?
    Or does someone has a procedure about moving a web site?

    Thank you
     
  2. atanere

    atanere Guest

    1 person likes this.
  3. Xorin

    Xorin Guest

    Thanks a lot mate! that's good stuff
     
  4. postcd

    postcd New Member

    Joined:
    Jul 8, 2017
    Messages:
    13
    Likes Received:
    1
    lower TTL values (to something like 600) in your source/old server DNS zone files (or within your web server control panel, dns section)

    Prepare new server to have similar software as old one, but ofcourse better is when the software is latest stable versions, then find where you need to place your website data in order for website to show up when you enter http://yournewserverip/ , upload mysql database , e-mail accounts, cron jobs

    then if website works on new server, you can login your domain registar control panel and get prepared to change nameserver IP

    prepare last synchronization of the website files and mysql database between servers

    stop mysql and http service on the old and new server

    launch the synchronization of the files and mysql

    change your nameservers IP to new server

    start http and mysql at new server only
    start http at old server and keep mysql stopped on old (to prevent people submit data on your old server, etc)

    edit your website .htaccess file at old server and redirect visitors (whose ISP still cache old IP) to some informational page that website is under maintenance.

    within 10 minutes probably majority of the people (Even returning visitors) should be able to access your site on new server. only downtime for the new visitors is a minute or two when you are last synchronizing website files/mysql between servers

    increase TTL in DNS zones

    maybe i forgot something
     
    Rob likes this.
  5. Mike Hudson

    Mike Hudson New Member

    Joined:
    Jan 23, 2018
    Messages:
    1
    Likes Received:
    0
    You haven't mentioned which CMS you are using for your website. If that is Wordpress, moving a site will not be a problem for you. There are plenty of plugins available that you can use to move your website. Duplicator Plugin is one of the good plugins for moving your site. Here is a detailed tutorial for that
    http://cheaperasp.net/how-to-move-your-site-to-new-host-using-duplicator-plugin/
    Hope this will help.
     

Share This Page