Discover Centmin Mod today
Register Now

Sysadmin Migration guide

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

  1. Andy

    Andy Active Member

    Aug 6, 2014
    Local Time:
    10:12 AM
    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
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    12:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 && chmod 0700 && bash

    Add new php 7.2.4+ default installer
    Code (Text):
    yum -y update; curl -O && chmod 0700 && bash

    Add new php 7.1.16+ default installer
    Code (Text):
    yum -y update; curl -O && chmod 0700 && bash

    Add new php 7.0.29+ default installer
    Code (Text):
    yum -y update; curl -O && chmod 0700 && bash

    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.