There was a problem loading the comments.

How to migrate/transfer WordPress from .net Plesk hosting to cPanel

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
This guide will show you how to migrate your PHP based website from Windows Server hosting with Plesk to cPanel

In this example we will be migrating a WordPress website, the process is the same for any other PHP based website although file names maybe different for database configuration.
Step 1. Login to Plesk and Once in Plesk click File Manager:
50e2254175436f64327ee3e5c3808e5a1a3b17de6b8815023afb168c4001484a2d6d39e0c630fe2f?t=955efc1ce1e6cf9f9dc7abc0070ffe90

Your Files will load
Click Select all at the top of the files
click Archive > add to archive
Give the file a name i.e Website Files
Click OK
It may take a few minutes to create the zip file depending on the number of files/images/videos that your website has.
62be78d01623ca0882bbab2ce364749a855b572d260e28e48f8aa9f36d90543dabf7da16cfb72a7b?t=1f3e1fa4ec1b88f5089c8081a56b373c

Once finished you will see:
b0a7491442916ffbd74e0d642bbc826dc1d5565c7d52a98082064a7fdcd7ee9cb879b45c39bced01?t=4d4fa0395be86dee01c03b5870518e60

Download the zip file
1. locate websitefiles.zip
2. click the drop down menu
3. click download

40b251bec866e0f9ed9a8296a39718027d3cb04814143e0633de45fc19e3eb1c44a61d058042fc29?t=cffddb724cad0280d594044f06c4fba1

once downloaded click your domain name at the top of file manager to go back to Plesk control Panel.

Step 2. Backup Databases
on the right hand menu in Plesk click Databases
3c934ce396aa2bb7e93c200e1e2ad4299adbc2bb5656180c967d2710b16edc7ebf2c766691643223?t=0028ea6fdb1b490e2356d32b8f638d8b

Under your database name click phpMyAdmin. Note, if you see multiple databases only export the ones you need to move to cPanel
4ca2578790bb166dcfd6b296191ff6c70035831da06aae1320490ca1ef252df438396cbac1e69645?t=1961eab715270581d13b5600fb204ace

In phpMyAdmin, click the database, from the top select Export. Then click Go
85d578177eb1ec68ade8330ce8f6a95deb2301ba0bbf6f516f0feb19ad361f4ccbb08de13ce5b6a0?t=aeb4a844000de9d108e61a9fe019c134

Save the file to your computer.
We have now downloaded the Website Files & the database and ready to migrate to the new hosting Plan.

Step 3. Login to cPanel
Select File Manager from Menu
6563f4df5fa766b960664abf3fc24fca705e0b99ecb144b6fd3c5cec356d5681e8ad7131032c066d?t=b5d96a746016bca46d471f68a0949725

Double click the public_html directory

53dc8b60389828b939d298fc46f87770513d167f465b1501eeb319f28810361fb5099d759e394cff?t=406d4bb1deee52184fdfee6ff4fb47a1

Upload the website files zip to the folder from the menu at the top bar
Once finished close the popup window
right click websitefiles.zip and click extract

The files would all be extracted here


Step 4. restoring the database
Go back to the other tab in your web browser for direct admin
go to account manager > MySQL Databases
Click create new database
776a734b3b945fe36f501fb6e5e773ba662cdcf88c44759b50aa55948b069347516fd22e1fdaa602?t=12ea47bf0a42890c636cde22da812c0f


Give the database a name, in my example i used wordpress

b6e85fe46a307ef304e3796ab311cf0975f34f2fca2169df3941e8098f5895dfc77ba06ff458cfe8?t=e9ed91350aefef73d3d778065d8e0e30

Create a corresponding database user (you can use the password generator-just remember to copy it down
0567a5e4bdf75e5083122ecadd80a551998cf7d3edf105665c04f6b4d1452581c47cd8e5b5f326eb?t=7b6f1aa568f87dc96bc83f6e5b590281

Go back to the main menu and enter phpMyAdmin
Select the database and from top menu, select Import. Then browse to the database backup had taken from Plesk and click Go at the bottom of the screen
7c4ea1648993916cfc47d885f28caa934b2c6bd00774ce6c4e8983dd5efcca40683f08586aba5eea?t=fad3a7eeeaffbf7cdc2641030f96df0c


Next go back to the file manager tab
Find the file that contains your database configuration, if wordpress this is wp-config.php
right click the file and go to edit

Edit
1. DB Name
2. DB User
3. DB Password
4. DB Host (must be localhost)
acc4a9f73e1aed506a8e2bade126247efb4721272626004d15a483b1b6908d99169cce69cee5366f?t=ea7e631ba934a784c61e859c735fbc3b

5. Scroll down and find:

$table_prefix  = 

it will be prefixed with something random, for example:

$table_prefix  = 'A5c9Mrf_';

change all of the text after = to lowercase letters, my example above would become:

$table_prefix  = 'a5c9mrf_';

Click SAVE

Next Click NEW > Text File > Other....
right click our new file .htaccess and click Edit
394c398eb9367e2894d4212bbf297eab4199f107d55ef6d372d5d28cbf6a75c3f07aab6fe6ddc530?t=88e5d387976917aa5db119819018fb15



copy/paste the below text:

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Then Click SAVE:


You have now successfully migrated your website.

Step 5. Go Live

Change your domain names name servers from the old Plesk hosting to the new hosting package, these can be found in your welcome email when you signed up.

Share via
Did you find this article useful?  

Related Articles

Categories

© The Hosting Heroes