Recommended VPS Complete list of best VPS hosting providers.

cPanel to CWP Migration Tutorial

A Complete Guide

CentOS Web Panel (CWP) has recently being one of most popular free control panel. It is a great alternative especially when zPanel project has been shut down. Its sleek user interface makes users enjoy managing websites on their servers easily. I personally like CWP and being my second alternative after VestaCP. One of my favorite CWP’s feature is its ability to perform cPanel backup restoration make it easier to restore full website backup created by famous cPanel CP.

So here it is a complete guide (with pics) on how to move a website from cPanel to CWP automagically using full cPanel backup. You don’t even have to download the backup file to your local PC / laptop as we are also going to use wget. I’ll try to write the tutorial easy-to-understand so do not hesitate to tell me in which part makes you confused. Let’s start..

Ingredients

  1. A server / VPS running CentOS 6.5 or 6.6 either 32-bit or 64-bit. However if your VPS has only 512MB RAM, then go with 32-bit. Need recommendation? Read my recommended VPS providers list.
  2. A basic knowledge about common Unix command to SSH to your server.
  3. SSH client like Putty or Terminal and ability to use it.
  4. A spare time of yours
  5. A cup of coffee or tea.

In this tutorial I use a 512MB cloud server from Atlantic.net running CentOS 6.6 32-bit with CWP v0.9.8.6. I will move my friend’s old website from cPanel to CWP so make sure you you change the domain name replacing it with yours.

Preparation

Step 1 – Login to your server as root and follow my guide to install CWP.

Step 2 – Perform some basic CWP setup tasks.

Step 3 – Do not change your domain’s NS yet until you migrate the websites.

Backup cPanel

Step 1 – Login to your cPanel account using username and password given by your webhosting provider:

2015-06-12_220715

Step 2 – Once you logged in to cPanel, click the Backup Wizard icon > click the Backup button > then click the Full Backup button. See illustrations below:

2015-06-12_220957

2015-06-12_221047

2015-06-12_221107

Step 3 – In the next page, make sure you choose “Home Directory” as Backup Destination. In case if your hosting account has many files consume large amount of disk space, you better also provide an email address to send notification when the backup process complete. Finally click the Generate Backup button.

2015-06-12_221143

Step 4 – Now go back to cPanel homepage and open up File Manager, choose the Home Directory then click the Go button.

2015-06-12_222002

2015-06-12_222100

Step 5 – In the File Manager page you’ll see the newly created backup file with .tar.gz ending. Right click on it and choose Move. Now type public_html as the destination.

2015-06-12_222228

2015-06-12_222255

Step 6 – Then go to public_html directory, find the backup file, right-click on it and change its permission to 644:

2015-06-12_222358

Step 7 – Right-click on that file again and choose Rename then change its name with cpmove- prefix followed with the account name.

Format: cpmove-(USER).tar.gz
Example account test: cpmove-test.tar.gz

2015-06-12_231306

The Migration

Step 1 – Now go back / login back to your server / VPS as root and go to /home directory.

2015-06-12_223500

Step 2 – It is time to transfer the full cPanel backup file to your VPS using simple wget command:

wget http://domain.tld/cpmove-user.tar.gz

2015-06-12_231640

Do not forget to replace domain.tld and cpmove-user.tar.gz accordingly. See screenshot pic above.

Restoring to CWP

Step 1 – So now you have the full cPanel backup file in your VPS located in /home directory. CWP need it to be placed in that location. Open up your favorite browser and login to CWP control panel as root.

2015-06-12_224651

Step 2 – Once logged in, click the User Accounts menu at the left then choose cPanel Migration sub menu.

2015-06-12_224851

Step 3 – In the next page, type in the username part of the file name then hit the Search button.

2015-06-12_231940

Step 4 – Next, you will see something like this below, now click the Restore button.

2015-06-12_232030

Step 5 – You’ll then see new page asking you to create new account. Fill in all required fields accordingly. See example below. Do not forget to click the Create button.

2015-06-12_232143

Step 6 – That’s it. You’ll then see a page similar to this one below indicating the restore process has completed.

2015-06-12_232252

Finishing Up

The migration is almost complete. The very last thing to do is now to change the NS record of your domain. Go to your domain registrar and change current NameServers to the new ones belong to your server. Wait till all DNS propagates then give your newly moved sites a test confirming all functions of your websites are working. Enjoy..

8 Comments

Add a Comment

Your email address will not be published. Required fields are marked *

Get more stuff like this
in your inbox

Subscribe and get interesting stuff plus faster updates to your email.