Convert cPanel accounts to DirectAdmin

 

The following guide assumes that you have SSH access.

This article contains information about migrating from cPanel to the latest available DirectAdmin version.

There is currently no conversion tool that will help you migrate your Plesk accounts to DirectAdmin directly. However, there is a workaround where you can first convert to cPanel and then use this article to convert to DirectAdmin.

This tool works by converting cPanel user backups to DirectAdmin user backups. This tool is designed to read all data directly from the cPanel user backup files; therefore, this tool can be executed on either the cPanel or DirectAdmin server.

This tool will covert cPanel backups created by both:

  • the /scripts/pkgacct script
  • cPanel's 'Full Backup' GUI tool

 

Converted Items

  1. basic account allocations
  2. sub-domains
  3. FTP accounts
  4. POP3 and IMAP accounts
  5. All mail data (Maildir and/or mbox format**)
  6. Squirrelmail settings
  7. addon domains
  8. user home files
  9. mysql databases
  10. domain pointers
  11. crontab entries
  12. transfers resellers and their packages
  13. transfers subdomain/domain data from custom folders
  14. E-mail forwarders get transferred
  15. MX records in DNS zones get transferred
  16. RoundCube data gets transferred (optional, requires additional scripts)

 

Cpanel to DirectAdmin backup conversion script URL:

http://www.custombuild.eu/cpanel/cpanel_to_da.sh



Instructions

Download and extract the version URL (from above) that you wish to use. (wget and tar xzf)

http://www.custombuild.eu/cpanel/cpanel_to_da.sh

 

Create import and export directories for the tool to use. (mkdir import export)

mkdir import export

 

Copy your cPanel user backups into the import directory. If required you can create backups within the cPanel GUI or with the following command:

/scripts/pkgacct USERNAME

 

Edit defaults.conf to match the DA server you will be restoring to. The only fields you must change are the IP and name server fields. The tool will not work if you fail to do this!

 

Execute perl da.cpanel.import.pl and follow the on-screen instructions (which will duplicate the steps here to a degree).

perl da.cpanel.import.pl

 

After the tool is finished converting (or as it completes each individual user), move your new DA user backups from the export directory to any DA /home/RESELLER/user_backups directory*

 

Restore the DA user backups in DirectAdmin's reseller-level Manage User Backups tool.

 

RoundCube

It will not convert RoundCube data by default, please do the following in the same directory if you want RoundCube data to be transferred:

wget -O cpanel_da_roundcube.php http://www.custombuild.eu/cpanel/cpanel_da_roundcube.php.txt
wget -O php_sql_parser.tar.gz http://www.custombuild.eu/cpanel/php_sql_parser.tar.gz
tar xzf php_sql_parser.tar.gz
rm -f php_sql_parser.tar.gz

 

Known issues

  • cPanel mdbox format email transfer has not been tested
  • Mailman mailing lists do not get converted to majordomo mailing lists

The default maximum username length in DirectAdmin consists of 10 characters. If your cPanel username has more characters you should either:

a. change the cPanel username in cPanel before conversion
b. increase the maximum allowed username length in DirectAdmin. This can be done by editing the file /usr/local/directadmin/conf/directadmin.conf and by adding:

max_username_length=16

 

Free Site Transfers

If you have backups in cPanel format that you wish to have converted to DirectAdmin please contact support. We are more than happy to arrange the conversion for you.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Binding multiple IPs to one interface in Centos

The steps to add additional IP's to one network card / interface in Centos are as follows:1.)...

What is a dedicated server?

Unlike normal hosting plans, which put many customers' accounts on a single server, a dedicated...

Mounting Partitions in CentOS 5.x

This is a basic security tip that can be executed to help protect your system. This is not an...

Bandwidth allocation

Bandwidth is the amount of data that can be transferred to and from your account in one month....

Creating Strong Passwords

Passwords provide the first line of defense against unauthorized access to your computer. The...