Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin Migration guide

Discussion in 'System Administration' started by Andy, Apr 4, 2018.

  1. Andy

    Andy Premium Member Premium Member

    386
    56
    28
    Aug 6, 2014
    Ratings:
    +67
    Local Time:
    11:24 PM
    Hi @eva2000
    I'm getting another dedicated server from ReliableSite and will move my existing server there. A couple of question.

    1) I usually download the run the latest script one liner betainstaller.sh
    I would like to install all the latest nginx/php instead of running the script and then updating it. Is there anyway we can do it?

    2) Is there any specific steps I should follow to move everything over? The new server has twice the RAM and space and a better CPU. All the domains/vhosts are the same. Actually I only have 1 vhost.

    3) Anything else I should keep in mind. I know once the migration is done, I need to change the DNS to point to the new IP.
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,688
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    1:24 PM
    Nginx 1.13.x
    MariaDB 5.5
    First post shows different default PHP version betainstallers at Beta Branch - Centmin Mod .09 beta branch Testing. But it's only latest at time of Nginx and PHP setting in installers which right now is Nginx 1.13.11 and PHP 5.6.35, 7.0.29, 7.1.16 and 7.2.4.

    Defaults to PHP 5.6.x branch
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh


    Add new php 7.2.4+ default installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh


    Add new php 7.1.16+ default installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller71.sh && chmod 0700 betainstaller71.sh && bash betainstaller71.sh


    Add new php 7.0.29+ default installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh


    For moving site data there's 2 general guides where the principles & steps of backing up and moving data is the same just slightly different for. You'll want to check out the 1st version.
    1. Moving Centmin Mod site data to another Centmin Mod server
    2. Moving cPanel/WHM site data to Centmin Mod server
    Those guides move alot more than just the site(s) in question but config files etc. You can use your own best judgement as to the config files and whether you want to move them or just use the fresh server setup Centmin Mod config files as they get auto optimised for the server Centmin Mod initially installed on. Generally just site vhost, vhost directories and vhost ssl directories and letsencrypt ssl directories. Remember you can do test migrations on test VPS servers practicing first as long as DNS is never updated to the new servers, it will remain a test so you can practice over and over on fresh VPS until you get want you need or comfortable with the process.
     
..