10th December 2023

We are able to now simply migrate the CWP Panel to cPanel with this text. Right here, we’ll look into the small print of mail server migration. Bobcares, as part of our cPanel & WHM Help Companies provides options to each cPanel migration situation that comes our manner.

  1. An Introduction to CWP Panel and cPanel
  2. The Migration Course of
  3. Advantages of the Migration
  4. Needed Steps to take after the Migration Course of
  5. Conclusion

An Introduction to CWP Panel & cPanel

CWP Panel/ Centos Net Panel: A free and open-source internet hosting management panel for managing servers and internet hosting environments. It’s solely for CentOS, a well known Linux distribution. It additionally provides clients a variety of options and instruments to make managing internet hosting simpler.

Admins in addition to web site house owners can handle a wide range of actions, together with area administration, DNS setting, electronic mail setup, database administration, and extra, with the assistance of CWP’s user-friendly web-based interface. Customers can effortlessly handle person accounts, construct, edit, and delete web sites, in addition to control server efficiency, with CWP. A file supervisor, firewall administration, and security measures are additionally included within the management panel with a view to enhance the internet hosting surroundings’s common safety and stability.

cPanel: Website hosting providers and server configurations could also be simply managed with the assistance of cPanel, a well-liked and well-respected internet hosting management panel with an intuitive interface filled with options. cPanel, L.L.C. created this program with the aim of streamlining and automating a wide range of internet hosting-related administrative operations.

Those that personal web sites, administer web sites, or present internet hosting could all successfully handle their internet hosting surroundings with cPanel. Quite a few instruments and performance, together with file administration, database administration, electronic mail setup, area administration, and safety measures, can be found via the management panel. Moreover, it provides many one-click installers for well-known internet apps, simplifying the creation and maintenance of internet sites and on-line providers.

The Migration Course of

Migrating recordsdata and Directories

Throughout a migration course of in cPanel, we switch the beneath directories and recordsdata:

1. PUBLIC_HTML: Each file, listing, subdirectory, and content material is current on this listing. This listing might present up on sure methods because the /dwelling/person/vhost or /dwelling/person/www listing. This listing’s recordsdata and subdirectories should belong to the person. Information on this listing will need to have 644 permissions, and subdirectories will need to have 755 permissions.

2. MAIL: The e-mail recordsdata for each electronic mail account related to the cPanel account are situated within the /dwelling/person/mail listing. Each area, subdomain, addon area, and parked area has a listing situated in /dwelling/person/mail. Every area electronic mail handle has a subdirectory inside these directories.
Knowledge in regards to the account’s bandwidth, statistics, and non permanent recordsdata are situated within the /dwelling/person/tmp listing. The AWStats knowledge from the unique server, as an example, could also be moved to the /dwelling/person/tmp/awstats listing.

3. ETC: The passwd, shadow, and quota recordsdata for electronic mail accounts are situated within the /dwelling/person/and many others listing. The e-mail account quota knowledge from the unique server, as an example, could be moved to the /dwelling/person/and many others/quota listing.

4. SSL: The SSL certificates for the account’s domains are situated within the /dwelling/person/ssl listing. We should activate the SSL certificates within the Handle SSL Hosts portion of the WHM Handle SSL Hosts interface (WHM » Dwelling » SSL/TLS » Handle SSL Hosts) after shifting them.

5. MySQL: The mysql listing contains the MySQL databases for each account on the server. Previous to restoring it to the brand new database, we now have to create an empty database on the account. Use the MySQL Database Wizard interface in cPanel to perform this (cPanel >> Dwelling >> Databases >> MySQL Database Wizard). The database should be dumped, after which imported utilizing the phpMyAdmin interface in cPanel (cPanel >> Dwelling Databases >> phpMyAdmin).

6. PGSQL: Each server account’s PostgreSQL databases are within the /var/lib/pgsql listing. Previous to restoring it to the brand new database, we should first set up an empty database on the account. Use the PostgreSQL Database Wizard interface in cPanel (cPanel >> Dwelling >> Databases >> PostgreSQL Database Wizard) to do that. Additionally, dump the database and import it utilizing the phpPgAdmin interface in cPanel (cPanel >> Dwelling >> Databases >> phpPgAdmin).

Mail Server Migration

We’re going to migrate the mail server on Centos7 with CWP to the cPanel account. Since different directories, we now have a server with cPanel/WHM. And have an account to which we’ll transfer all of the emails and take away the CWP server. The steps are as follows:

1. Firstly, create all emails on cPanel, and since CWP makes use of the identical mail construction, we are able to use the rSync to maneuver all mail directories from CWP at /var/vmail/domainx.com to the cPanel account at /dwelling/domainx/mail.

2. Now, all electronic mail directories have moved appropriately and we’ve mounted the permissions and possession utilizing WHM >> Restore Mailbox Permissions & chown command to match the cPanel mail folder possession / Permissions.

3. Then, we are able to use the next code with a view to sync the content material from the CWP server to the cPanel server:

migrate cwp panel to cpanel

4. Shifting maildir from CWP to cPanel could also be troublesome if the mail measurement in cPanel and CWP differ. So, we should know the precise utilization of mail sizes utilizing maildirsize inside the e-mail listing. Now, delete it in all emails utilizing the beneath code whereas we’re within the /mail/area.com listing.

migrate cwp panel to cpanel

This code will take away maildirsize from all subdirectories (emails), after which it’ll create the identical file with the appropriate use measurement when the person logs in to the e-mail once more.

Sadly, at this second, cPanel doesn’t include any computerized instruments that may help with the switch. To help with the migration of IMAP mailboxes from non-cPanel servers to cPanel servers, a characteristic request is now open in cPanel. Serving to a buyer transition from a non-cPanel server to the cPanel internet hosting service requires paying shut consideration to this.

5. In an effort to test if we now have the imapsync put in, we are able to use the beneath code (returns the model quantity whether it is current.:

migrate cwp panel to cpanel

If not current, use the beneath steps to put in it. It requires the epel repo for imapsync. These directions may also cowl the way to set up and allow the epel repo on the cPanel servers, contemplating we don’t presently have that setup.

i. Firstly, create a listing (non-compulsory) through which to maintain the obtain: mkdir /root/imapsync

ii. Then, go to the next listing (if not already there): cd /root/imapsync

iii. Wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm to get the epel repository.

iv. Now, set up epel repo: yum set up epel-release-latest-6.noarch.rpm

v. Additionally, use the beneath code to arrange imapsync:

vi. Change all references from enabled=1 to enabled=zero within the file /and many others/yum.repos.d/epel.repo with a view to disable the epel repository.

vii. In an effort to allow outgoing TCP connections on ports 143 (non-SSL IMAP) and/or 993 (SSL IMAP), edit the firewall.

In an effort to replace the imapsync:

i. So, to activate the epel repository, open the /and many others/yum.repos.d/epel.repo file and substitute all cases of enabled=zero with enabled=1.

ii. Now, replace imapsync:

migrate cwp panel to cpanel

iii. Change all references from enabled=1 to enabled=zero within the file /and many others/yum.repos.d/epel.repo with a view to disable the epel repository.

6. Now, to switch a single IMAP mailbox, use imapsync. This can be a easy script that transfers one mailbox with out the necessity for any of the a number of choice flags which can be accessible. Non-SSL port 143 will probably be used for this.

migrate cwp panel to cpanel

7. We are able to transfer one IMAP mailbox to GMAIL utilizing imapsync, together with different settings and flags. Additionally it is vital to make use of SSL port 993 whereas utilizing Gmail. For example, the beneath code strikes a buyer’s mail from one of many cPanel servers to a GMail mailbox by forcing port 993, utilizing one in all GMail’s IPs because the server, and doing 100 messages at a time (which is one thing that GMail requires).

The method of shifting many IMAP mailboxes directly is similar to the above cases; the one factor that differs is that the switch script is carried out towards a textual content file that incorporates electronic mail addresses and passwords.

8. Each time we use imapsync, a log is created and saved in a folder named LOG_imapsync, which is situated in the identical location because the imapsync obtain and set up. There are additionally choice flags to switch it. So, to disable logging, use –nolog or –logfile filepath.

Advantages of the Migration

There are a number of benefits to switching from CentOS Net Panel (CWP) to cPanel, based mostly on our distinctive wants and specs. The next are just a few advantages of switching:

1. Elevated Options and Ecosystem: In comparison with CWP, cPanel is a extra feature-rich internet hosting management panel with extra integrations. It offers a large number of capabilities, comparable to enhanced file administration, subtle electronic mail administration, and extra safety measures. Moreover, cPanel provides a wider vary of third-party plugins and apps, which might help us enhance the quantity of house we are able to host.

2. Consumer-Pleasant Interface: The user-friendly and aesthetically pleasing interface of cPanel is well-known. No matter experience degree, directors or novices alike will discover it simpler to deal with internet hosting settings and web sites due to its easy in addition to intuitive design. Thus, your entire expertise and productiveness could be improved by cPanel’s user-friendly characteristic set.

3. Safety & Common Updates: To incorporate the newest safety fixes and enhancements, cPanel is up to date regularly. This dedication to safety would possibly help in shielding the internet hosting surroundings from risks and weaknesses. It’s important to do not forget that due to its continued improvement and safety consideration, cPanel can be regularly seen as safer.

4. Dependable and Trusted Resolution: Website hosting firms and enterprises make the most of and belief cPanel extensively. Due to its stable popularity for stability and dependability, we are able to make certain that the internet hosting surroundings will operate correctly and obtain enough help.

5. Compatibility with Internet hosting firms: cPanel is a standard management panel selection supplied by many internet hosting firms. Having cPanel may also facilitate a smoother migration course of if we ever need to transfer internet hosting suppliers as a result of we gained’t should develop into used to a brand new management panel.

Needed Steps to take after the Migration Course of

1. Confirm that all the knowledge and logins moved efficiently and are operational within the new setting.

2. The nameservers for the area ought to be up to date to level to the brand new nameservers on the cPanel & WHM server.

3. In an effort to be certain that all content material will get to the brand new server, we additionally advise altering the DNS data on the outdated server to discuss with the cPanel & WHM server.

[Looking for a solution to another migration query? Our Experts are a click away.]


There are a number of advantages of migrating the CWP Panel to cPanel, comparable to accessing a greater variety of options, an intuitive interface, robust assist, and a dependable, safe resolution. It’s essential to judge these benefits towards the cPanel licensing charges and to take the distinctive internet hosting necessities and monetary constraints under consideration. The particular wants and priorities ought to information the selection to maneuver, ensuring it matches with the long-term internet hosting targets.


By no means once more lose clients to poor server velocity! Allow us to provide help to.

Our server specialists will monitor & preserve your server 24/7 in order that it stays lightning quick and safe.


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.