With limitless web site internet hosting per license and strong core options, SMB prospects who don’t use any cPanel-specific options might save large cash by switching to InterWorx. There could also be instances, although, the place migrating from InterWorx to cPanel is important to consolidate companies, add a cPanel-specific characteristic, or combine two companies utilizing completely different panels.
Whereas InterWorx has an import characteristic that may take backups from cPanel servers and restore them as legitimate InterWorx accounts, making migrations to the platform easier, the reverse will not be true. Migrations from InterWorx to cPanel will have to be carried out manually.
With the best basic data and particular details about your server utilization, such a migration could be executed in just a few hours for a small variety of websites.

Concerns Earlier than Beginning
Whereas there are just a few blockers in shifting from cPanel to InterWorx, these specific blockers are solely in a single course. For example, InterWorx requires database prefixing in all instances to map databases to their house owners, however cPanel doesn’t. So, there shouldn’t be a case the place a database title will trigger an import to fail.
One essential factor to recollect about cPanel is its licensing prices. InterWorx permits for an infinite variety of SiteWorx accounts per server, however cPanel prices will change relying on what number of cPanel accounts you must create.
Issues you’ll need to contemplate earlier than shifting from InterWorx to cPanel:
- What is going to your last worth might be for the content material you must host?
- What’s the forecasted development for your small business, and the way a lot house and energy will your server require?
- Do you might have the best licenses and software program to assist your objectives?
One other consideration is server clustering. Out of the field, InterWorx can assist a number of net nodes working in unison to steadiness visitors. cPanel doesn’t assist this by default, and extra merchandise might be wanted in the event you use this characteristic.
So far as basic server migration concerns go, it’s best to have understanding of the place the DNS to your domains is hosted (your nameservers). On the conclusion of your migration, you’ll need to make adjustments to the DNS to make the brand new server dwell, and guaranteeing entry to your nameservers early within the course of makes the ultimate turnaround sooner.
If attainable, decrease the TTL values in your information now in order that once we take the brand new server dwell, propagation will occur shortly.
Moreover, concentrate on the options that you simply use in your server. If you happen to host mail, ensure your mail accounts, together with their passwords and mailbox contents, are copied through the migration and that any in-use mail ports are opened and arrange on the brand new server. If you happen to use Redis, Memcache, or some other third get together purposes, ensure these are arrange on the cPanel machine forward of time as effectively.
There’s not a lot to be accomplished in InterWorx, particularly to prepare to your migration. Usually, it would be best to make sure that updates to your websites (new posts, product releases, and so forth.) are briefly suspended to decrease the probabilities of misplaced information and that your websites are on up-to-date core software program, resembling PHP 7 or larger.
1. Creating cPanel Accounts
Now, we are able to lastly get to work on migrating! First, assemble a listing of all the SiteWorx accounts in your server that you simply want to migrate. As root on the InterWorx server, you should use this command to take action:
nodeworx -u -c Customers --action listUsers -n
You may relate these to hosted domains utilizing this command, additionally run on the InterWorx machine:
nodeworx -u -c Siteworx -a listDomainAccounts -n |tr "t" "|" |awk -F"|" '{print $10,$2,$11,$19,$22}' |column -t
This could print out the area title, username, whether or not it’s a major or secondary area, its PHP model, and the placement of the doc root for the positioning.
Make Customers
cPanel accounts could be created by means of the WHM interface or as root from the command line on the cPanel server:
/scripts/createacct yourdomain.com youruser EB-al2pK)*o=
If you happen to occur to know the passwords for your entire SiteWorx customers, you could possibly enter them above. Random passwords will work right here if they’re suitably safe, and customers can reset them after the migration is full. It’s also possible to copy the password hashes immediately from /and so forth/shadow into the brand new server if you’re comfy doing so.
Observe:
No matter the way you migrate your passwords, it’s extremely beneficial that customers change their password after the migration is full. Passwords which can be typed plaintext into the command line can be saved in bash historical past and may very well be uncovered by root stage customers. Even in the event you import hashes immediately, it’s a good safety follow to vary your passwords each few months.
Make Mailboxes
With the accounts, you also needs to create mailboxes that belong to every account. This could, once more, be accomplished by means of the cPanel net GUI or from the command line.
Run this command on the cPanel server so as to add a mailbox:
/scripts/addpop person@yourdomain.com /tQ7biFJ]24%
Observe:
There are some particular characters like , |, or !, that may trigger odd conduct within the command line when utilized in a password. If you happen to get odd output from the createacct or addpop instructions, attempt utilizing a special random password.
The passwords for mailboxes could be entered, if recognized, or up to date later in /house/youruser/and so forth/yourdomain.com/shadow information on the cPanel server. The unique mailbox password hashes could be pulled utilizing this command on InterWorx:
mysql -Ns -u iworx_vpopmail -p$(grep mysqli://iworx_vpopmail: /house/interworx/iworx.ini | reduce -d: -f3 | reduce -d@ -f1) -S /usr/native/interworx/mysql/iworx-db.sock iworx_vpopmail -e "choose pw_passwd from vpopmail the place pw_name='person' and pw_domain='yourdomain.com'"
Above, you’ll exchange the person and yourdomain.com close to the tip of the command with the actual mailbox and area title to get the hash for that person. Once more, it’s best to solely do that if you’re comfy with modifying the shadow information to your mailboxes; in any other case, it’s simpler to easily let the customers reset their mail passwords as soon as the migration is full.
Make Databases
Going off of a listing of databases from the supply server, which you may get from itemizing the /var/lib/mysql listing and searching for user-prefixed folders, generate databases individually utilizing this command on the cPanel server:
mysqladmin create youruser_dbname
After creating the databases, you’ll need so as to add customers as effectively. This command, run on the InterWorx server, will get the database customers which have entry to the database you specify and makes a grant command that you could paste into your cPanel machine’s terminal. Be sure you change youruser_dbname at the start of the command to the database you might be engaged on if you run this on the InterWorx server:
mydb=youruser_dbname; mysql -BNe "choose person from mysql.db the place db='"$mydb"' and host='localhost'" | whereas learn i; do pwhash=$(mysql -BNe "choose Password from mysql.person the place Host='localhost' and Consumer='"$i"';"); echo "mysql -e 'grant all privileges on $mydb.* to $i@localhost recognized by password "$pwhash"'"; accomplished
Paste the output into your cPanel server to grant entry.
Lastly, we have to map the database and new person in order that it may be managed from the best account. Use this command on cPanel, changing all the yourxxxx parts as wanted:
/usr/native/cpanel/bin/dbmaptool youruser --type mysql --dbs 'youruser_dbname' --dbusers 'youruser_dbuser'
2. Copying Information
Now that now we have a spot on the cPanel server for all of our web site information, emails, and databases to land, we are able to start copying them over. The entire pattern instructions beneath are run on the cPanel server and can have to be up to date with the suitable IP handle of the InterWorx machine. This step is enormously simplified in the event you add an SSH key from the cPanel server into the InterWorx server for passwordless root-level SSH entry.
Observe:
In case your InterWorx server will not be utilizing port 22 for SSH, you’ll need so as to add the next bit (with the right SSH port) to your rsync instructions together with the remainder of the flags: -e ‘ssh -p9898’
Doc Roots
The person area data we found at the start of the migration course of might be very useful right here. Match up logically all the accounts you created to the accounts in InterWorx. For our examples, we are going to assume that the cPanel username is similar because the InterWorx username and that each account solely controls one area.
This command to repeat a major area doc root from InterWorx to cPanel is run on the cPanel server:
rsync -avHP 123.45.67.89:/house/youruser/public_html /house/youruser/
Be sure you watch the trailing slashes! This command copies public_html and its contents from the distant InterWorx machine into the /house/youruser/ folder on the native cPanel machine.
If there are extra doc roots to repeat into extra separate folders, you should use comparable instructions with the correct goal folder.
Emails
Emails are copied utilizing an rsync command as effectively since they’re saved in an analogous folder-based format on each methods. Right here is the command for the pattern e-mail handle we created earlier, which might be run from the cPanel server:
rsync -avHP 123.45.67.89:/house/youruser/var/yourdomain.com/mail/person/Maildir/ /house/youruser/mail/yourdomain.com/person/
There are a selection of distinctive objects that have to be altered all through this command primarily based on the account, mail person, and area you might be syncing information for, together with youruser (the cPanel/InterWorx account title), yourdomain.com, and person (the mailbox title).
Databases
Databases could be streamed from the InterWorx server over to the cPanel server immediately utilizing a easy pipeline. This avoids having to generate a file-based dump after which copying and studying that file. Our similar pattern database is copied right here, and this command is run on the cPanel machine:
ssh 123.45.67.89 "mysqldump youruser_dbname" | mysql youruser_dbname
Extra Gadgets
There are just a few miscellaneous information that will also be copied to create a extra full clone of the InterWorx accounts. Particularly, the crontab could be learn from /var/spool/cron/youruser and its contents inserted into the identical file on the cPanel server. Simply ensure that you’re not going to prematurely run any crons that would double-bill your eCommerce websites or duplicate different features which can be nonetheless being carried out by your previous machine.
That is additionally a good time to double-check and arrange any packages from the supply machine that you simply wish to proceed utilizing like ElasticSearch, NGINX, ImageMagick, and so forth, in the event you didn’t accomplish that earlier than beginning the switch. You also needs to set any configuration limits that you simply modified to permit your websites and server to work collectively higher resembling these in PHP/Apache or CSF; nonetheless, a brand new server can also be trigger for a new tuning session.
3. Testing Migrated Websites
Once you end all the above steps, you’ll be capable to check the websites on the brand new server. Begin by altering the hosts file. Hosts file modifying is a way more correct methodology than some other obtainable choice. Begin by making a line of textual content like this one with the IP of the brand new server then a listing of domains and subdomains you wish to check, separated by areas:
11.22.33.44 yourdomain.com www.yourdomain.com
Add that line to the tip of the hosts file in your workstation (not both server). You may then check the positioning by visiting it in your browser usually, with out having to vary public DNS or use a much less correct proxy service.
Whereas testing the brand new server, you usually wish to make sure that websites aren’t lacking any pictures or CSS information or giving some other obtrusive errors. Troubleshoot as wanted to appropriate these earlier than going dwell.
4. Going Stay
To shift visitors from the previous server to your new one, the one remaining step is a DNS replace of all the information which can be referencing the previous IP. There’s normally a single A report that factors to the IP handle of the supply server (123.45.67.89 in our instance), which is able to have to be modified to the brand new IP.
There are numerous choices for the place your DNS is managed. You would possibly at the moment use Liquid Internet’s shared nameservers, during which case, you may change your DNS at My LiquidWeb or by sending us a assist ticket.
You may also have DNS at your registrar or at CloudFlare. In that case, you’ll do the identical IP handle change however on the acceptable management panel for that nameserver.
The opposite risk is that you simply management DNS on InterWorx itself with customized nameservers. The menu you want could be accessed from NodeWorx > System Providers > DNS Server > Zones.
Observe:
Altering the IP addresses will make your new server dwell, and your migration is now full.
Visitors ought to begin flowing to the brand new server because the TTL worth in your DNS slowly expires. Because of this decreasing the TTL worth is essential to do at the start of your migration.
Liquid Internet Is aware of Migrations
If this information sounds a bit too intense, don’t fear. We’ve a devoted Migrations Crew obtainable to assist all of our Totally Managed prospects, with many years of expertise efficiently migrating web sites into cPanel environments. Attain out to the Help Crew 24/7 by means of My LiquidWeb to get extra data right this moment.
