Importing Websites
You may want to import content from a different website that belongs to you but is hosted elsewhere into Plesk. Use the Site Import extension to import certain applications, folders with files, and databases. You can import content from servers running both Linux and Windows, and even from servers that do not have Plesk installed.
Starting a Website Import
By default, website import is performed in simple mode. In simple mode, you only need to specify the source website’s domain name and the username and password of the FTP or SSH user that has access to the source website’s files. Plesk tries to automatically detect and apply optimal settings for the import.
Note: Importing via SSH is much faster than via FTP. We recommend that you import content via SSH if possible.
To start importing content in simple mode:
-
Make sure that the Site Import extension is installed.
-
Go to Websites & Domains, select the domain you want to use as the target for importing content, and then click Website Importing.
-
Specify the domain name of the website you want to import content from in the “Source domain name” field.
-
Specify the username and password of an FTP or SSH (Plesk for Linux only) user on the source server that has access to the source website’s files.
-
Select the “Speed up file transfer by using web streaming (beta) when possible” checkbox if you want to import a large number of small files, or if you suspect that the import may be interrupted (for example, because of unstable Internet connection or insufficiently large PHP maximum execution time). Selecting the checkbox enables Plesk to resume interrupted import instead of starting over.
Note: This feature is still in beta, so only select the checkbox if you do not mind potentially encountering bugs in exchange for increased import speed.
-
Click OK.
Plesk will try connecting to the source website and scanning it for content. If the connection is successful, select one or more objects of the following types types to import:
-
Applications
-
Folders
-
Databases
If the connection is not successful, make sure that the following requirements are met and try again:
- The source website’s domain name resolves to the correct IP address from the target server.
- The FTP or SSH username and password are correct. The FTP or SSH user has access to all files and directories of the source website.
- You can connect to the source server via FTP from the target server.
If the connection is successful but scanning for content fails, you can try importing in advanced mode. In advanced mode you can explicitly choose the connection type, specify the document root, choose the protocol for data transfer, and more.
To start importing content in advanced mode via SSH:
-
Make sure that the Site Import extension is installed.
-
Go to Websites & Domains, select the domain you want to use as the target for importing content, and then click Website Importing.
-
Click “Switch to advanced mode”.
-
Specify the domain name of the website you want to import content from in the “Source domain name” field.
-
Under “Connection type”, select “SSH”.
-
Specify the username and password of an SSH user on the source server that has access to the source website’s files in the corresponding fields.
-
If the source server is configured to use a different SSH port than the default 22 port, specify the custom port number in the “SSH port” field.
-
Select the desired method for transferring content under “Way to transfer files”:
- (Recommended) If you keep “Automatic”, Plesk will first try to import content via rsync, the fastest method. If the attempt fails, Plesk will use SCP instead.
- To have Plesk use rsync or SCP, select the corresponding option.
- You can also have Plesk use web streaming by selecting it from the list. Web streaming is good when you need to import a large number of small files or if you believe that the import may be interrupted, but choosing it may cause issues with the import.
-
Specify where to look for the website files in the “Source document root” and “Files root” fields:
-
If the document root of the source website is inside the home directory of the SSH user, specify the document root absolute path in the “Source document root” field and keep the “File root” field empty.
For example, if the document root of the source website is
/var/www/vhosts/example.com/httpdocs
and the home directory of the SSH user is/var/www/vhosts/example.com
, you need to specify/var/www/vhosts/example.com/httpdocs
in the “Source document root” field and keep the “File root” field empty.If the SSH user is chrooted, the document root absolute path you need to specify in the “Source document root” field is
/httpdocs
. -
If the home directory of the source website is outside the home directory of the SSH user, specify the document root absolute path in the “File root” field and keep the “Source document root” field empty.
For example, if the document root of the source website is
/var/www/vhosts/example.com/httpdocs
and the home directory of the SSH user is/root
, specifyvar/www/vhosts/example.com/httpdocs
in the “File root” field and keep the “Source document root” field empty.
-
-
Specify the full URL corresponding to the document root of the source website in the “Source website URL” field. For example, if the document root is
/var/www/vhosts/example.com/httpdocs
(or just/httpdocs
if the SSH user is chrooted), specifyhttps://example.com
in the “Source website URL” field. If the document root isvar/www/vhosts/example.com/httpdocs/my/wordpress
, specifyhttps://example.com/my/wordpress
in the “Source website URL” field. -
Click OK.
To start importing content in advanced mode via FTP:
- Make sure that the Site Import extension is installed.
- Go to Websites & Domains, select the domain you want to use as the target for importing content, and then click Website Importing.
- Click “Switch to advanced mode”.
- Specify the domain name of the website you want to import content from in the “Source domain name” field.
- Under “Connection type”, select “FTP”.
- Specify the username and password of an FTP user on the source server that has access to the source website’s files in the corresponding fields.
- Select the desired method for transferring content under “Way to
transfer files”:
- (Recommended) If you keep “Automatic”, Plesk will use FTP to import content.
- You can also have Plesk use web streaming by selecting it from the list. Web streaming is good when you need to import a large number of small files or if you believe that the import may be interrupted, but choosing it may cause issues with the import.
- Specify the document root of the source website starting from the FTP
user’s home directory in the “Source document root” field. For
example, if the document root of the source website is
/var/www/vhosts/example.com/httpdocs
and the home directory of the FTP user is/httpdocs
, specify/httpdocs
in the “Source document root” field and keep the “File root” field empty. - Specify the full URL corresponding to the document root of the source
website in the “Source website URL” field. For example, if the
document root is
/var/www/vhosts/example.com/httpdocs
, specifyhttps://example.com
in the “Source website URL” field. If the document root isvar/www/vhosts/example.com/httpdocs/my/wordpress
, specifyhttps://example.com/my/wordpress
in the “Source website URL” field. - You can specify an FTP server charset other than the default “UTF-8” to prevent corrupt encoding when importing from an old source server. To do so, select the desired charset from the “FTP server charset” drop-down list or use search.
- Keep the “Use the same IP for FTP data connection as for FTP control connection” checkbox selected. You need to clear this checkbox only if the FTP server is configured in such a way that command and data channels use different IP public addresses.
- Click OK.
Importing Applications
When a website importing is initiated, Plesk scans the source website for the presence of certain applications and lists them. Currently, you can import the following applications to the target server:
- WordPress
- Joomla
- Drupal
- PrestaShop
Plesk can import an application from the source website to the target, including all its files and the database.
Warning: When importing an application, if there is already an application installed on the target domain, its files may be overwritten. We strongly recommend backing up the target domain before importing applications.
When importing an application, keep in mind the following limitations:
- The application must use a MySQL/MariaDB database.
- The MySQL/MariaDB database server must use the default port.
There may also be additional requirements specific to the application you want to import. You can find them in the application’s documentation:
Note: Plesk cannot automatically check if the application you want to import meets the requirements. Make sure that the application meets both general and application specific requirements before starting importing.
To import an application, follow these steps:
- Select the checkbox(es) next to the application(s) you want to import.
- By default, the application files are placed in the same location relative to the document root they occupied on the source. If desired, you can change where to place the application files on the target server. To do so, click the / link under “Destination Path” and type in the path to the destination folder (relative to the document root).
- Click Start Import.
The installation’s status will change from “Ready for import” to “Queued”, and then to “In progress”. Once the status changes to “Imported”, application importing was finished.
Synchronizing Imported Applications
At any time after you have imported an application, you can import it again by selecting the corresponding checkbox and clicking the Re-sync button. Note that this will overwrite any changes you may have made to the installation on the destination server.
Importing Folders
You can use the Site Import extension to import individual folders with all included files and subfolders from the source website to the destination.
To import a folder, follow these steps:
-
Under “Files”, click Add Folder to Import and browse to the folder you want to import. Optionally, you can specify the desired location for the folder on the destination server, relative to the destination website’s document root directory.
-
Click Ok.
All subfolders of that folder, as well as all files within those folders will be imported as well.
Synchronizing Folders
At any time after you have imported a folder, you can import it again by selecting the corresponding checkbox and clicking the Re-sync button. Note that this will overwrite any changes you may have made to the folder or its contents on the destination server.
Importing Databases
You can use the Site Import extension to import individual databases from the source website to the destination.
Note: At the present time, only MySQL/MariaDB databases can be imported.
To import a database, follow these steps:
-
Under “Databases”, click Add Database to Import.
-
Specify the database connection information on the source server and click OK.
Synchronizing Databases
At any time after you have imported a database, you can import it again by selecting the corresponding checkbox and clicking the Re-sync button. Note that this will overwrite any changes you may have made to the database or its contents on the destination server.