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
- basic account allocations
- FTP accounts
- POP3 and IMAP accounts
- All mail data (Maildir and/or mbox format**)
- Squirrelmail settings
- addon domains
- user home files
- mysql databases
- domain pointers
- crontab entries
- transfers resellers and their packages
- transfers subdomain/domain data from custom folders
- E-mail forwarders get transferred
- MX records in DNS zones get transferred
- RoundCube data gets transferred (optional, requires additional scripts)
Cpanel to DirectAdmin backup conversion script URL:
Download and extract the version URL (from above) that you wish to use. (wget and tar xzf)
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:
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!
perl da.cpanel.import.pl and follow the on-screen instructions (which will duplicate the steps here to a degree).
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
Restore the DA user backups in DirectAdmin's reseller-level Manage User Backups tool.
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
- 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:
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.