Knowledge Base

How to migrate data from Kloxo to cPanel

If you currently have a semi-managed VPS package and are using the Kloxo control panel, you may want to try managed VPS hosting. Managed VPS packages include the cPanel control panel. Although there is no automated way to transfer an account from Kloxo to cPanel, the procedures below can help you do this task manually while you transfer your account.

Step 1: Exporting databases

The first step is to export all of the databases that you want to migrate. To do this, follow these steps:

  1. Log in to the Kloxo control panel.
  2. Click the Home icon.
  3. Under Web - Mail - Database, click Phpmyadmin.
  4. On the phpMyAdmin home screen, click Export.
  5. Under Export Method, select Custom.
  6. Under Database(s), select the database that you want to export.
  7. Under Output, confirm that Save output to a file is selected.
  8. In the Compression list box, select gzipped.
  9. Under Format, confirm that SQL is selected.
  10. Click Go. When the Save dialog appears, save the file on your computer. If you are exporting multiple databases, you may want to rename the file to indicate which database it contains.
  11. Repeat steps 4 through 10 for each database that you want to export.

Step 2: Backing up website files

After you have exported databases, you can back up website files. To do this, follow these steps:

  1. Log in to the Kloxo control panel.
  2. Click the Home icon.
  3. Under Domain, click File Manager.
  4. Select the directory that you want to back up.
    In Kloxo, website files are usually located in a directory that has the same name as your domain, such as example.com.
  5. Click Zip. After a few moments, the page refreshes and a new .zip file appears. The .zip file starts with NewArchive followed by today's date.
  6. Click the Download icon, and then save the .zip file in the same location where you saved the database backups. If you are backing up multiple web sites, you may want to rename the file to indicate which web site files it contains.

Step 3: Importing databases into cPanel

Now you're ready to start setting up your managed VPS using cPanel. First, import your databases. To do this, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. In the Databases section of the cPanel home screen, click MySql Database Wizard.
  3. In the New Database text box, type the name of the database that you exported earlier.
  4. Click Next Step.
  5. In the Username text box, type the same name that you typed in step 3.
  6. In the Password and Password (again) text boxes, type the database password that you used in Kloxo.
    Many dynamic websites, such as WordPress and Joomla, have a configuration file (such as config.php, configuration.php, or database.php) where database settings are stored. Use these same settings in cPanel.
  7. Click Create User.
  8. Select the ALL PRIVILEGES check box, and then click Next Step. cPanel creates the database and database user.
  9. Click Return Home to return to the cPanel home screen.
  10. In the Databases section of the cPanel home screen, click phpMyAdmin.
  11. On the phpMyAdmin home screen, select the database that you just added, and then click Import.
  12. Under File to Import, click Browse, and then select the database file that you downloaded from Kloxo earlier.
    The filename should have a .gz extension.
  13. Click Go. phpMyAdmin imports the database.
    Depending on the size of the database, the import process may take some time.
  14. Repeat steps 2 through 13 for each database that you want to import.

Step 4: Uploading website files

Now you are ready to upload website files to the managed VPS. To do this, follow these steps:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. In the Files section of the cPanel home screen, click File Manager.
    If cPanel asks which location to open, select Web Root (public_html/www), and then click Go.
  3. On the top menu bar, click Upload.
  4. Click Browse, and then select the .zip file you downloaded from Kloxo whose filename starts with NewArchive. The upload starts immediately.
  5. After the upload is complete, click Back to /home/USERNAME/public_html, where USERNAME represents your account username. The main file manager window reappears.
  6. Select the .zip file whose filename starts with NewArchive, and then click Extract. The Extract dialog appears.
  7. Click Extract File(s). When the Extraction Results dialog appears, click Close. There is now a folder that has the same name as the folder you backed up on Kloxo.
  8. Now you can move the files to the document root so the website functions correctly. Double-click the folder, and then click Select all.
    You may want to exclude some directories that are already in the web root, such as the cgi-bin directory. You can deselect items by pressing the Ctrl key and clicking the file or directory.
  9. Drag the selected files to the www directory in the left-hand pane.
  10. Click Up One Level, and then delete the archive file and old Kloxo directory.

Step 5: Application database configuration

This step only applies if your web site runs an application (such as WordPress, Joomla, or Drupal) that uses a database configuration file.

cPanel manages databases by adding your account username in front of the database name. For example, if you add a database named Joomla, cPanel prepends your account username, and the database name is actually username_Joomla (where username represents your account username).

Therefore, you must update your application's configuration file to use the new database name. You may also have to update the configuration file to use the new database username.

Testing the new configuration

If the migration process is successful, you can now browse the website using your domain name. If DNS propagation is not yet complete, you can use your account's temporary URL. For more information about how to do this, please see this article.