CyberPanel Community

cPanel and Plesk import

sl
slaweally #1

Hello,
When will Cyberpanel’s website import feature from cPanel and plesk come?
Because there are hundreds of websitems in cPanel, it takes a lot of time to move to the individual cyberpanel how can I move them collectively?
Is the import feature coming?

48 replies
Cy
CyberPanel #2

This is not implemented yet and not in roadmap either but can be done if requested frequently, I will move this to feature request.

ri
ricardofh #3

I think cPanel import would made things quite easier, Vesta has one and it works really well… not sure about Plesk as it is not widely used as cPanel. But cPanel import would be great!

sl
slaweally #4
I think cPanel import would made things quite easier, Vesta has one and it works really well.. not sure about Plesk as it is not widely used as cPanel. But cPanel import would be great!

Other panellas are not even in the foreground, just cyberpanel import feature should come :)))
Importing from other Panels like cPanel, Plesk, Maestro, DirectAdmin is absolutely crucial.
Priority should be cPanel of course :slight_smile:

ma
magnovasquez #5

I had to do that manually with 14 sites and some of them with sub domains, it will be nice to have a feature that can import from other panels like cPanel and Plesk to CyberPanel.

sl
slaweally #6
I had to do that manually with 14 sites and some of them with sub domains, it will be nice to have a feature that can import from other panels like cPanel and Plesk to CyberPanel.

I have so many more sites :slight_smile:
It would also be nice if there was auto SSL like cpanel: D

wi
wiredhosting #7

yes, this should be a must :smile: Thumbs up for this.

bu
bubundas17 #8

Did you see Cpanel’s Price hike recently? I guess many peoples will be wanting to switch panels because of this.
So I think it is a perfect opportunity to grub some users.

Cpanel Import should in top priority. and if possible add softaculous. And also try to make the whmcs Module work properly. And let’s see the rise in popularity and Hopefully License sells

it
itnuthosting #9

Is it implemented yet? We have many vps clients that we want to move from cpanel to cyberpanel. But each of them has lots of cPanel account. It’s very time consuming and painful to move this much data manually. Please build the cPanel import too as fast as possible. Thanks.

th
thuanduongpa #12

Hello Cyberpanel,

I think a tool have some bugs, i already send ticket and email, did you guy received it’s

It’s about addon domain and subdomain restore, maybe tool don’t understand, all addon domain was convert to subdomain

Cy
CyberPanel #13

@thuanduongpa

In CyberPanel there is either main website or child-domain. There is no concept of addon domain in CyberPanel. So basically your main website will be created as website and rest will be its child-domains.

Do you see any other bugs?

th
thuanduongpa #14

@CyberPanel

Don’t see any bugs, just restore from Cpanel backup (include addon domain, subdomain) and it’s not restore correct (all restore to structure of subdomain, not addon domain), i hope you fix it to make this tool greater, also, i see in Cyberpanel has Addon domain, i can create addon domain normally, just cannot restore addon domain from cPanel backup

Cy
CyberPanel #15

@thuanduongpa

As I said, we don’t have addon domains, we call them child-domains.

th
thuanduongpa #16

@CyberPanel

Hi, i know you call them child-domains

But when create addon domain (ie abc.com) on cPanel with main domain xyz.net, it’s will auto create a subdomain (ie abc.xyz.net), then using this tool it’s will create subdomain, not a domain

can you guide me how i can fix it?

Cy
CyberPanel #17

@thuanduongpa

Sorry, CyberPanel don’t do this. But I can’t understand your use-case for this. It is possible we can add this feature later.

But if you create abc.com under xyz.net, its directory will be created under document root of main/master domain. Thus you can access contents through xyz.net/yourselectedfolder.

Cy
CyberPanel #19

They can create either google.com or XXX.w3services.net Both are allowed as child domains.

Ho
HostXNow #20

First time I tried to restore cPanel backup I got

[root@cp home]# mkdir backup
[root@cp home]# python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup
Backup logs to be generated in /home/cyberpanel/4511
Extracting main cPanel archive file: /home/backup/user1.tar.gz

/home/backup/user1.tar.gz successfully extracted.

Creating main account from archive file: /home/backup/user1.tar.gz

Failed to create main website from backup file /home/backup/user1.tar.gz, error message: [Errno 2] No such file or directory: ‘/home/backup/user1/userdata/main’.

[root@cp home]#

Second time it ends with

root@cp backup]# python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup
Backup logs to be generated in /home/cyberpanel/5055
Extracting main cPanel archive file: /home/backup/cpmove-user1.tar.gz

/home/backup/cpmove-user1.tar.gz successfully extracted.

Creating main account from archive file: /home/backup/cpmove-user1.tar.gz

Detected main domain for this file is: user1.org.

Finding PHP version for user1.org.

PHP version of user1.org is PHP 7.1.

Finding Server Admin email for user1.org.

Server Admin email for user1.org is webmaster@user1.org.

Calling core to create user1.org.

Running some checks…,0

This website already exists. [404]

Failed to create main site user1.org from archive file: /home/backup/cpmove-user1.tar.gz

[root@cp backup]# python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup
Backup logs to be generated in /home/cyberpanel/6900
Extracting main cPanel archive file: /home/backup/cpmove-user1.tar.gz

/home/backup/cpmove-user1.tar.gz successfully extracted.

Creating main account from archive file: /home/backup/cpmove-user1.tar.gz

Detected main domain for this file is: user1.org.

Finding PHP version for user1.org.

PHP version of user1.org is PHP 7.1.

Finding Server Admin email for user1.org.

Server Admin email for user1.org is webmaster@user1.org.

Calling core to create user1.org.

Running some checks…,0

Creating DNS records…,10

Setting up directories…,25

Creating configurations…,50

[OK] Send SIGUSR1 to 848
DKIM Setup…,90

Website successfully created. [200]

Successfully created user1.org from core.

Detecting SSL for user1.org.

SSL found for user1.org, setting up.

[OK] Send SIGUSR1 to 903
1,None
SSL set up OK for user1.org.

Restoring document root files for user1.org.

Main site user1.org created from archive file: /home/backup/cpmove-user1.tar.gz

Creating child domains from archive file: /home/backup/cpmove-user1.tar.gz

Finding Addon/Subdomains from backup file /home/backup/cpmove-user1.tar.gz. Account main domain was user1.org.

Following Addon/Subdomains found for backup file /home/backup/cpmove-user1.tar.gz. Account main domain was user1.org.

Starting Addon/Subdomains creation from backup file /home/backup/cpmove-user1.tar.gz. Account main domain was user1.org.

We are going to create DNS records now, please note we will not create DKIM records. Make sure to create them from CyberPanel interface using our DKIM manager.

Restoring databases from /home/backup/cpmove-user1.tar.gz.

Restoring MySQL dump for user1_162.

MySQL dump successfully restored for user1_162.

Restoring MySQL dump for user1_wp685.

MySQL dump successfully restored for user1_wp685.

Creating Database users from backup file /home/backup/cpmove-user1.tar.gz.

Failed to retore databases from file /home/backup/cpmove-user1.tar.gz, error message: [Errno 2] No such file or directory: ‘/home/backup/cpmove-user1/mysql.sql’.

So it restored but not the MySQL database.

PS the CyberPanel demo is not working.

I mentioned the issues at https://www.webhostingtalk.com/showthread.php?t=1774552

CyberPanel looks promising. Keep up the great work!

Best regards,
Christopher Smith

Cy
CyberPanel #21

@HostXNow

Backup is full backup generated from cPanel wizard? As you can see that for the first run it look for the meta file that cPanel usually generates, not sure why it could not find or was it not there?

/home/backup/user1/userdata/main

Second time something is wrong with MySQL restore, maybe need to investigate more why mysql is not there or can’t restore. Can you contact me via slack.

Ni
NiiYankee #22

I I also got this error: [Errno 2] No such file or directory: ‘/home/backup/backup-8.2.2019_00-25-28_domaininfo/meta.xml’ [5009]

I did a full cPanel backup which I downloaded from cPanel, uploaded to /home/backup/

Cy
CyberPanel #23

@NiiYankee Can you create ticket and send us a backup file if possible?

Cy
CyberPanel #24

@HostXNow and @NiiYankee I’ve had another user report this error and @w3services contacted us regarding this issue.

It turns out that cPanel generated backup file was not complete and or corrupt, you need to have complete file to generate the backup successfully. Once the complete backup file was provided, restore went fine.

Ni
Nick #25

Hi, i have some cPanel migration problems, I uploaded the cpanel pkgacct cpmove-user.tar.gz to /home/backup and run the command. but nowhere to find the users email boxes, what could be wrong?

  • do you need to create first this user and a package before starting the migration?

  • can I upload the cpmove file as root and run migration command as root?

  • I also noticed that a folder called /akeebabackup below the /public_html was removed or not converted, now some of the website have folders below /public_html for their CMS, that would mean manually upload?

Any help or suggestions much appreciated

Ni
Nick #26

Another attempt, but i just can’t get my 3 emailboxes…

Cy
CyberPanel #27

@Nick

If those folders belong to subdomains/child-domains they are created in CyberPanel but in a different way under the document root of master domain.

Such as /home/masterdomain.com/public_html/childomain.com

So folder structure might slightly change during conversion from cPanel.

Regarding your email boxes, when you restore cPanel backup file kindly grep the output using

grep Failed

Or at the start of the process, it will output the log file, you can do

cat filename | grep Failed

and share the output here, will see if email restore failed.

Ni
Nick #28

Hi, thanks for the reply, the folders belong to the domain no subdomains or any child as you call them, it looks like your cPanel converter just copies all the files from /public_html but ignores anything below, and some CMS or backup programs keeps files below.

I will use the grep failed but since the cpmove is huge file [a good 11GB] and this time I try with a cpmove instead of a full nightly backup.

BRB

Ni
Nick #29

Failed to restore emails from archive file /home/backup/cpmove-user.tar.gz, error message: [Errno 2] No such file or directory: ‘/home/backup/cpmove-user/homedir/mail/mailbox_format.cpanel’. [ExtractBackup]

I tried it with a full nightly backup and a pkgacct [cpmove-user] file

Any suggestions?

Ni
Nick #30

OK, found the problem in the script, but it is late and i need my sleep, we don’t need the mdbox as we use maildir…

Find Mail Format

        UserData = '%s/homedir/mail' % (CompletPathToExtractedArchive)
        FormatPath = '%s/mailbox_format.cpanel' % (UserData)

        message = 'Detecting email format from %s.' % (self.backupFile)
        logging.statusWriter(self.logFile, message, 1)

        Format = open(FormatPath, 'r').read()

        if Format.find('mdbox') > -1:
            self.mailFormat = cPanelImporter.MdBox
            message = 'Mdbox format detected from %s.' % (self.backupFile)
            logging.statusWriter(self.logFile, message, 1)
        else:
            self.mailFormat = cPanelImporter.MailDir
            message = 'Maildir format detected from %s.' % (self.backupFile)
            logging.statusWriter(self.logFile, message, 1)

        ####

Perhaps I can peek and poke it…

Cy
CyberPanel #31

@Nick

great information, I will give you my detailed reply soon. Looks like your backup file didn’t have mail format file. More on this later.

Cy
CyberPanel #32

So @Nick if we don’t see the format file we can default to Maildir format, that should fix your issue.

Ni
Nick #33

Hi, this comes from a cPanel server with Maildir as default, I have double checked it. The backup should have it all in Maildir format, I checked the backup file and no such file to indicate we use mdbox is in there, but for some reason it is not detecting it…

Ni
Nick #34

@CyberPanel
sorry, but how will this fix my issue?

Cy
CyberPanel #35

@Nick

I released v1.8.9. So if the format file does not exists. It will now defaults to Maildir format, you can upgrade and try again.

Ni
Nick #36

OK, BRB, thank you

Ni
Nick #37

@CyberPanel great news!

cd
rm -f upgrade.py
wget http://cyberpanel.net/upgrade.py
python upgrade.py

python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup/

Creating DNS records…,10

/usr/lib/python2.7/site-packages/requests/init.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn’t match a supported version!
RequestsDependencyWarning)

Setting up directories…,25

Emails successfully restored

Great!!!
Thanks ever so much, now i need to check if all has come over…

What about that error?
I didn’t had that before…

Cy
CyberPanel #38

Just a warning, so your emails are ok now ? @Nick

Ni
Nick #39

@CyberPanel

Hi, yes some mail has come over but… I am so sorry, a few things are not correct, I hope you don’t mind me saying… so you can improve your script and attract cPanel users :slight_smile:

What happens is when the conversion script run is that it indeed found all the users, and then retrieved all emails [from /cur] and moved them in their new account on Cyberpanel.

  • The date and time of those emails are not preserved, they have the date/time from the conversion, this should not happen, email should keep their date/time.

  • The folder structure is not preserved, all email in one user, your structure:
    /home/vmail/domain/user/Maildir/cur
    / new
    /tmp

cPanel folder structure from user with [n] folders are gone, all emails in just that one /cur folder…

Seems to me, the emails your script has moved to Cyberpanel are the ones in the folder cur and did not look for anything in folders. So, many thousands of emails have gone lost for the users who have organised all their emails in folders.

I hope you understand what I say.
Kind regards,
Nick

Ni
Nick #40

Any one?

Ni
Nick #42

@CyberPanel updated to v1.9 and now all email folders are there, many thanks.
Nick

da
dadadudu #44

Is the support for plesk coming or already here?

Ca
Caffeinedesign #45

here for plesk support too, at least importing websites :stuck_out_tongue:
i’d like to switch to cyberpanel first with my private VPS (3 domains and 15 subdomains) then if i’m good with it to the ent with my agency VPS websites (30 domains and 50 subdomains), and we always used plesk as CP, and switching so many sites manually would be a real pain :stuck_out_tongue:

us
usmannasir #46

Will try to prioritize this.

Ca
Caffeinedesign #47

any news on plesk support?
thanks

ag
agaitan026 #48

news for plesk support?

Gr
Graciasseo #49

Hello, do we have any news? It would also be interesting for us to be able to migrate more VPS from Plesk to Cyberpanel

Sign in to reply