Switching your hosting control panel from cPanel to DirectAdmin is a straightforward process. Simply take a backup of your cPanel account and transfer it to your DirectAdmin account.
To Transfer a cPanel Account to DirectAdmin:
-
Perform a full account backup of your cPanel account.
The backup file will have a format similar to this:
backup-7.21.2021_08-50-40_USERNAME.tar.gz
The backup file's name includes your username, and the numbers indicate the date and time when cPanel generated the backup.
Alternatively, users with root access can generate a full backup through the command prompt by running:
/scripts/pkgacct USERNAME
An archive file, cpmove-USERNAME.tar.gz, will be created in the /home/ directory.
Note: The filename format cpmove-USERNAME.tar.gz is essential for DirectAdmin to successfully restore cPanel backups. If your backup is user-generated, it needs to be converted to this format.
Use the following command:
for i in `ls backup-[0-9]*.*.tar.gz`; do { USERNAME=`echo $i | cut -d_ -f3 | cut -d'.' -f1`; mv -v $i cpmove-${USERNAME}.tar.gz; }; done
-
Subsequently, upload the converted backup files to the DirectAdmin panel, typically in the directory /home/admin/cpanel_backups.
-
Log in to your DirectAdmin admin account.
-
Navigate to the Admin Tools section and select Admin Backup/Transfer."
-
Click the 'RESTORE' button.
-
Enter the path for the backup file."
-
Click the 'NEXT STEP' button until you reach Step 3.
-
Choose the backup file and click 'RESTORE'.
DirectAdmin will initiate the restoration process, ensuring a successful account transfer from cPanel.