cpanel migration bugs

Affected backup file : http://64.191.99.143/permalink/backup-9.12.2011_22-42-55_maindoma.tar.gz

Problems :

1- Files of addondomain3.com , domain1.com ( both are addon domains ) are not copied at all. This occured for (sub1dom1.domain1.com,sub1dom2.domain2.com,sub2dom1.domain1.com ).

Note : The root path of a domain/subdomain should read from /userdata/ folder in migration file.

Note 2 : If the files of addon domains and subdomains get moved to the /home/USERNAME/domains/ folder, it would be great which also is the default virtualmin structure.

2- Wildcard can be enabled by adding a * subdomain in cpanel. I've enabled it for addondomain3.com and domain1.com but some unexpected behaviours occurs in virtualmin migration ! ( wrong seperate virtualhost and dns zone )

3- The origin host was running reverse proxy, I can see all DNS records are set to 127.0.0.1 which is wrong.

4- I can see 'Convert to Sub-Server' is available for migrated subdomains ! which is a bit strange, as a subdomain is a sub-server itself !

Status: 
Active

Comments

Thanks, I'll take a look ..

For point 3, could you post the full set of DNS records that got created?

For point 4, this is correct as Virtualmin treats a sub-domain and sub-server slightly differently.

Mostafa's picture
Submitted by Mostafa on Wed, 09/14/2011 - 02:08

REF : Sub-server and sub-domain #4 As I know, there are three type of servers. Virtual server(Addon or Main domain), Sub-server (Subdomain), Alias Server (Parked domain) ! So ?

REF : Created DNS Records

sv1:/etc/bind# cat "/var/lib/bind/maindomain.com.hosts"
$ttl 38400
@       IN      SOA     sv1.HOST.NAME. root.sv1.HOST.NAME. (
                        1315982927
                        10800
                        3600
                        604800
                        38400 )
@       IN      NS      sv1.HOST.NAME.
maindomain.com. IN      A       64.191.IP.ADD
www.maindomain.com.     IN      A       64.191.IP.ADD
ftp.maindomain.com.     IN      A       64.191.IP.ADD
m.maindomain.com.       IN      A       64.191.IP.ADD
localhost.maindomain.com.       IN      A       127.0.0.1
webmail.maindomain.com. IN      A       64.191.IP.ADD
admin.maindomain.com.   IN      A       64.191.IP.ADD
mail.maindomain.com.    IN      A       64.191.IP.ADD
maindomain.com. IN      MX      5 mail.maindomain.com.
maindomain.com. IN      TXT     "v=spf1 a mx a:maindomain.com ip4:127.0.0.1 ip4:64.191.IP.ADD?all"
submain.maindomain.com. IN      A       127.0.0.1
www.submain.maindomain.com.     IN      A       127.0.0.1
ftp.submain.maindomain.com.     IN      A       127.0.0.1
m.submain.maindomain.com.       IN      A       127.0.0.1
localhost.submain.maindomain.com.       IN      A       127.0.0.1
webmail.submain.maindomain.com. IN      A       127.0.0.1
admin.submain.maindomain.com.   IN      A       127.0.0.1
mail.submain.maindomain.com.    IN      A       127.0.0.1
submain.maindomain.com. IN      MX      5 mail.submain.maindomain.com.
domain2.maindomain.com. IN      A       127.0.0.1
www.domain2.maindomain.com.     IN      A       127.0.0.1
ftp.domain2.maindomain.com.     IN      A       127.0.0.1
m.domain2.maindomain.com.       IN      A       127.0.0.1
localhost.domain2.maindomain.com.       IN      A       127.0.0.1
webmail.domain2.maindomain.com. IN      A       127.0.0.1
admin.domain2.maindomain.com.   IN      A       127.0.0.1
mail.domain2.maindomain.com.    IN      A       127.0.0.1
domain2.maindomain.com. IN      MX      5 mail.domain2.maindomain.com.
addondomain3.maindomain.com.    IN      A       127.0.0.1
www.addondomain3.maindomain.com.        IN      A       127.0.0.1
ftp.addondomain3.maindomain.com.        IN      A       127.0.0.1
m.addondomain3.maindomain.com.  IN      A       127.0.0.1
localhost.addondomain3.maindomain.com.  IN      A       127.0.0.1
webmail.addondomain3.maindomain.com.    IN      A       127.0.0.1
admin.addondomain3.maindomain.com.      IN      A       127.0.0.1
mail.addondomain3.maindomain.com.       IN      A       127.0.0.1
addondomain3.maindomain.com.    IN      MX      5 mail.addondomain3.maindomain.com.
sub2main.maindomain.com.        IN      A       127.0.0.1
www.sub2main.maindomain.com.    IN      A       127.0.0.1
ftp.sub2main.maindomain.com.    IN      A       127.0.0.1
m.sub2main.maindomain.com.      IN      A       127.0.0.1
localhost.sub2main.maindomain.com.      IN      A       127.0.0.1
webmail.sub2main.maindomain.com.        IN      A       127.0.0.1
admin.sub2main.maindomain.com.  IN      A       127.0.0.1
mail.sub2main.maindomain.com.   IN      A       127.0.0.1
sub2main.maindomain.com.        IN      MX      5 mail.sub2main.maindomain.com.
domain1.maindomain.com. IN      A       127.0.0.1
www.domain1.maindomain.com.     IN      A       127.0.0.1
ftp.domain1.maindomain.com.     IN      A       127.0.0.1
m.domain1.maindomain.com.       IN      A       127.0.0.1
localhost.domain1.maindomain.com.       IN      A       127.0.0.1
webmail.domain1.maindomain.com. IN      A       127.0.0.1
admin.domain1.maindomain.com.   IN      A       127.0.0.1
mail.domain1.maindomain.com.    IN      A       127.0.0.1
domain1.maindomain.com. IN      MX      5 mail.domain1.maindomain.com.