Article ID: 123170, created on Oct 16, 2014, last review on Aug 11, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows


During the course of disaster recovery, it is necessary to set up a new Plesk instance and migrate all server settings and customer data from the old server.


We strongly recommend to restore server from server backup. It will be the best way to solve the issue.

Also, the following instructions can be used, but we can not guarantee no issue will be faced.

Please note that server configuration (paths) should be exactly the same.

Let us assume that:

  1. Create container/server with exactly the same version of Plesk with same set of tools installed, with the same DB providers and same IP addresses.

  2. Mount HDD from crashed server on the new server (we assume it is D:).

  3. Connect by RDP.

  4. Stop all Plesk services.

  5. Copy D:\Plesk\sb\config into C:\Plesk\sb\config and D:\Plesk\sb\sites into C:\Plesk\sb\sites accordinly.

  6. Copy D:\Plesk\var\apspackages into C:\Plesk\var\apspackages.

  7. Copy Horde DB password from D:\Plesk\Webmail\horde\conf\.horde.shadow to C:\Plesk\Webmail\horde\conf\.horde.shadow.

  8. Copy Plesk/APSC databases (make sure that MySQL/MSSQL services are stopped on the source server).

    • in case of MySQL - copy D:\Plesk\MySQL\Data into C:\Plesk\MySQL\Data.

    • in case of Plesk engine is MSSQL - copy D:\Plesk\Databases\MSSQL\MSSQL.1\MSSQL\Data to C:\Plesk\Databases\MSSQL\MSSQL.1\MSSQL\Data. Attach Plesk database using Microsoft SQL Server Management Studio or any other MSSQL Management Utility.
  9. Copy content from D:\Inetpub\vhosts into C:\Inetpub\vhosts

  10. Copy mail content:

    • MailEnable Server - D:\Plesk\Mail Servers\Mail Enable, folders Config,Postoffices,Queues.

    • SmarterMail Server - copy appropriate MailBoxes with content, configuration of MTA to the new server.
  11. Copy Databases from D:\Plesk\Databases\MySQL into C:\Plesk\Databases\MySQL. Same operation for C:\Plesk\Databases\MSSQL. Attach MSSQL databases using Microsoft SQL Server Management Studio or any other MSSQL Management Utility.

  12. Copy certificates from D:\Backup\Plesk\var\certificates to C:\Plesk\var\certificates.

  13. Start Plesk services.

  14. Set Administrator password exactly the same as on crashed server:

     "%plesk_bin%\plesksrvclient.exe" -set setup

    If you have any issues with reseting password with plesksrvclient.exe utility, restore MySQL "admin" password according to the following KB

  15. In case of issues with Plesk Panel access under admin, please apply KB article #118485 for admin user.

  16. Restore MSSQL "sa" password with MSSQL Management Studio.

    Reconfigure MSSQL Webadmin:

    "%plesk_cli%/repair" --reconfigure-mssql-webadmin-site
    "%plesk_cli%/repair" --update-mssql-users-permissions
  17. Find and rename/delete all '.Security' files in vhosts folders:

    For Plesk 11 and less:

     "%plesk_bin%\dbclient.exe" --direct-sql --sql="SELECT name FROM domains WHERE htype = 'vrt_hst'" > list.txt
     for /f "skip=1" %i in (list.txt) do del %plesk_vhosts%\%i\.Security

    Or this script can be used:

    for /F "skip=1 usebackq" %r in (`dbclient.exe --direct-sql "--sql=select name from domains"`) do move "%plesk_vhosts%"\%r\.Security "%plesk_vhosts%"\%r\.Security.old

    For Plesk 11.5 and above:

    for /F "skip=1 usebackq" %r in (`dbclient.exe --direct-sql "--sql=select name from domains"`) do move "%plesk_vhosts%"\%r\.plesk\.Security "%plesk_vhosts%"\%r\.plesk\.Security.old
  18. Reset passwords according to the KB article #116758

  19. Create system ftp and IUSR users in Windows system:

    "%plesk_bin%\dbclient.exe" --direct-sql --sql="SELECT su.login,accounts.password,su.home FROM sys_users su LEFT JOIN accounts ON" > accounts.list.txt   
    for /f "skip=1 tokens=1-3" %x in (accounts.list.txt) do "%plesk_bin%\usermng.exe" --add --name=%x --password=%y --home=%z   
  20. Run Reconfigurator and perform 'Repair Plesk Installation', 'Plesk Virtual Hosts security' - it recreates systems users and restores permissions.

    reconfigurator.exe /check=VirtualHostsSecurity
  21. Recreate domains in IIS Web server:

    For Plesk 11.0:

    "%plesk_bin%\websrvmng.exe" --reconfigure-all  

    Or better way per domain:

    "%plesk_bin%\dbclient.exe" --direct-sql --sql="SELECT displayName FROM domains" > domains.txt    
    for /f "skip=1" %i in (domains.txt) do "%plesk_dir%\bin\websrvmng.exe" --reconfigure-vhost --vhost-name=%i

    For Plesk 11.5 and higher:

    "%plesk_bin%\dbclient.exe" --direct-sql --sql="SELECT displayName FROM domains" > domains.txt    
    for /f "skip=1" %i in (domains.txt) do "%plesk_dir%\bin\repair.exe" --reconfigure-web-site -web-site-name %i
    "%plesk_dir%\bin\repair.exe"  --synchronize-protected-directories-storage
    "%plesk_dir%\bin\repair.exe"  --repair-all-webspaces-security
    "%plesk_dir%\bin\repair.exe"  --synchronize-impersonation-storage
    "%plesk_dir%\bin\repair.exe"  --synchronize-protected-directories-storage
    for /f "tokens=*" %d in ('type C:\domains.txt') do repair.exe --repair-webspace-security -webspace-name %d
  22. Reconfigure FTP:

    For Plesk 11.0:

    "%plesk_bin%\ftpmng.exe" --reconfigure-all

    For Plesk 11.5 and higher:

    "%plesk_dir%\bin\repair.exe"  --reconfigure-ftp-sites   
  23. Reconfigure Mail server:

    "%plesk_bin%\mchk.exe" --all --fix=all

    In case of Webmail issues please reinstall Horde.

  24. Update DNS zones:

    "%plesk_bin%\dnsmng.exe" update *

Search Words

import mssql

HTTP Error 503. The service is unavailable.

restore mysql databases parallels

ERROR: Uncaught exception 'Exception' with message 'C structured exception: 0xc0000005' in C:\Program Files (x86)\Parallels\Plesk\admin\plib\common_func.php3:322

plesk restore from backup

Plesk installation error

Recover Plesk from crashed OS / hard disk

recovery plesk

Cannot migrate the server

ftp account

Control Panel > Tools & Settings > Migration & Transfer Manager > From another Plesk Server (transfer)

How do I restore Parallels Plesk from a hard disk drive if the Operating System is broken and the HDD with the old installation is mounted to the new server?

restore accounts

disaster recovery

recovery windows

500 - Internal server error

ERROR: PleskMainDBException: Access denied for user 'admin'@'localhost' (using password: YES) (db.php:451)

can't connect to mysql since update

restore databases plesk

dead hard drive

email issue

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 514af229ae32522202a910a2649c80fb bd7fc88cf1b01f097749ae6f87272128 46a8e394d6fa13134808921036a34da8 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 29d1e90fd304f01e6420fbe60f66f838 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 8b661cab116c79dbe6c4ac5bbdf1c8cb 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF