Filed under:
How do I transfer subdomains from Ensim Control Panel to CPanel/WHM ?
The ensim control panel systems and cpanel control panel have very different layouts / directory structures.Migration of subdomains from ensim to cpanel requires some manual work ...
This procedure assumes you have root level access to both the source (ensim) and destination (cpanel/whm) servers.
- Login to the source ensim server using SSH from where you want to migrate the existing subdomain.
- Change to the subdomain directory for the domain you want to move
i.e. cd /home/virtual/{yourdomain.co.uk}/var/subdomain- Here you can see all the subdomains for this domain with
ls -l -a- Change into each subdomain html directory
i.e. cd {subdomain}/html- TAR and GZIP the files
tar -czvf ../../{subdomain}.tar.gz *- Repeat for all subdomains
- Transfer the files to the destination cpanel server, by either ftp or scp
ftp cpanelserver as the root user
binary
hash
mput *.tar.gz
- Login to the cpanel account for the domain and create all the subdomains
- Login to the destination cpanel server using SSH.
- Change to the directory where you uploaded the files using ftp
cd ~- Move each file to the appropriate subdomain directory for the domain.
e.g. mv blog.tar.gz /home/domain-user/www/blog/- Change to the appropriate subdomain directory for the domain.
e.g. cd /home/domain-user/www/blog/- UnTar the subdomain files
tar -zxvf *.tar.gz
rm forum.tar.gz- Set the correct ownership of the files
chown domain-user.domain-user * -RNow test the subdomain and check all file permissions as necessary.
Add to Favourites Print this Article
Also Read