Discover Centmin Mod today
Register Now

Install How to Move from cPanel/WHM to CentminMod (wordpress)

Discussion in 'Install & Upgrades or Pre-Install Questions' started by netheroez, May 3, 2017.

  1. netheroez

    netheroez New Member

    11
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    2:14 AM
    I'm a big fan of cPanel, but after i read about centmin i want to move all my web from cPanel to centmin.
    Can anyone give a short tutorial on how to move from cPanel to centmin?
    I want to move wordpress in this case.

    If you wish please provide tips on the command line used to move wordpress.

    thanks.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,137
    Local Time:
    5:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    Have you ever manually moved a web site's data files and mysql database before ? And updated/changed domain DNS etc ? Have you used rsync to transfer data between servers or use mysqldump command line to back mysql databases ?

    For fresh installs of wordpress read Wordpress Nginx Auto Installer (WP Super Cache) which is more outline for 123.08stable which had much more wp plugins installed by default than 123.09beta01. 123.09beta01 branch of Centmin Mod is recommended as it is much improved. You'd then need to edit the wp-config.php database details and change it to your mysql database you imported from your mysqldump backup on whm/cpanel and then transfer your wordpress site's data files to overwrite the ones installed by wordpress auto installer.

    There's 5 steps to learning more about Centmin Mod and one of the tips is not to jump in the deep end with live site move but setup a test VPS with Centmin Mod and test migrate a copy of your live site data to the test VPS and work through learning that in a safe test VPS environment while live site is operational and untouched. Much easier to familiarize yourself with Centmin Mod first on test VPS ;)

    This is a guide for Centmin Mod transfers between Centmin Mod servers but the principles and tools involved are the same for any site migration between servers regardless of control panels https://community.centminmod.com/threads/centmin-mod-site-data-migration-guide.10382/. So it's a good idea to read, then research the commands and tools mentioned to understand them first.

    Basic gist is

    1. Centmin Mod config structure understanding Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    2. Backup your site data files themselves which for cpanel is usually at /home/username/public_html for web root directory and transfer a COPY to created Centmin Mod nginx vhost's web root /home/nginx/domains/domain.com/public where domain.com is your site

    3. Backup via mysqldump your mysql databases for your sites and transfer a COPY to Centmin Mod server and use mysql client command line to import into a newly created MySQL database - you can use addons/mysqladmin_shell.sh to create databases and mysql user/passwords.

    4. Transfers would be done either via rsync, scp, ssh etc from cpanel/WHM to Centmin Mod

    5. Fully test your test copy data on Centmin Mod server without update domain DNS. If you want to preview newdomain.com on new centminmod server without updating DNS, on Windows PC edit your windows HOSTS file at c:\Windows\System32\Drivers\etc\hosts (see guide at Modify your hosts file | Knowledge Center | Rackspace Hosting or install Hostman app HostsMan - abelhadigital.com which can manage the file too and allows easy dns flushing when you make changes to the hosts file.

    c:\Windows\System32\Drivers\etc\hosts contents to preview without DNS update
    Code (Text):
    centminmodserver-ip-address newdomain.com

    to disable preview comment it out and flush dns for your system
    Code (Text):
    #centminmodserver-ip-address newdomain.com


    Hostsman app to flush dns and edit the c:\Windows\System32\Drivers\etc\hosts file

    If you only do a test copy transfer to test Centmin Mod VPS, then your live site will be untouched while you learn your way around.

    Other members here maybe have suggestions specifically for how they do it as well.
     
  3. netheroez

    netheroez New Member

    11
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    2:14 AM
    Wow completely ... Thanks for your tutorial and tips.
    I want to move to Dedicated Server, what OS recommended for centminmod ? CentOS 6 or CentOS 7?
     
  4. pamamolf

    pamamolf Well-Known Member

    2,724
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    10:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Centos 7 :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,137
    Local Time:
    5:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1