How to transfer sudomains from Ensim to cpanel
Hello,
As the ensim control panel and cpanel server having different directory structures we need to manually migrate subdomains from ensim to cpanel
Following is the procedure for Transfer :
1. First login to the ensim server from where you want to move .
2. Then go to subdomain directory for the domain you want to move: as
cd /home/virtual/domain.com/var/subdomain
3. Here you can see all the subdomains for this domain in the directory. Go
into each directory plus the html directory as
cd subdomainxx/html
4 Then zip up the files
tar -czvf ../../subdomainname.tar.gz *
do the same procedure for all subdomains
you have to go up 3 levels to find the files due to symbolic
cd ../../..
5. FTP the files to the new server
ftp newserver
mput *.tar.gz
6 On new server
Login to the domain’s cpanel account and create all the subdomains
7 Go to the directory where the files were ftp uploaded.
cd /home/admin
8 copy each file to the proper directory. You will need to know the admin
username for the primary domain. If the domain user is tuks123 and the
subdirectory (sudomain) is “forum” then you would copy the files like this:
mv forum.tar.gz /home/tuks123/www/forum/
9 After moving it to specific directory(sudomain) then unzip the files.
cd /home/tuks123/www/forum/
tar -zxvf forum.tar.gz
rm forum.tar.gz
10 at the last change the permission and ownership for all files in that directory as
chown tuks123:tuks123 * -R
Now finally subdomain get transfered from ensim to cpanel
enjoy…..

















September 24th, 2006 at 3:37 pm
After step 10 you have to find out some include path in different file. It may be like this “/home/virtual/site148/fst/var/www/html/forum/ or “/home/virtual/domain.com/var/www/html/forum/. You can search it following way
Go to
cd /home/~username/public_html
grep -lir “/home/virtual” *
Above command list the path then you can replace it by following command
grep -lir “/home/virtual” * | xargs replace /home/virtual/site148/fst/var/www/html /home/alex/public_html –
Regards,
Alex P