Plesk reconfigurator failed during vhosts location change

Refers to:

  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Created:

2016-11-16 12:52:37 UTC

Modified:

2017-01-24 11:04:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk reconfigurator failed during vhosts location change

Symptoms

Plesk reconfigurator failed during vhosts location change.

Websites shows the following error:

Internal error: D:\\www\\example.com\\httpdocs is out of webspace

FTP users are unable to login their home folders.

Cause

Plesk reconfigurator was accidentally interrupted or stuck during the transferring.

Resolution

To rollback changes perform the following steps bellow.

  1. Update home path for system users in mysql DB:

    "%plesk_dir%"\\mysql\\bin\\mysql -uadmin -p -P8306 psa -Ne"update sys_users set home=replace(home,'G:','D:')"

    Where D: is source drive and G: is destination drive.

  2. Change the same parameters in Windows registry at HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config :

    FTP_ROOT_D from G:\\www\\Default to D:\\www\\Default
    HTTPD_VHOSTS_D from G:\\www to D:\\www
  3. Update the system user's permissions for all subscriptions:

    "%plesk_dir%"\\mysql\\bin\\mysql -uadmin -p -P8306 psa -Ne"select name from domains where id in (select object_id from Subscriptions)" > C:\\list.txt
    for /F %a in (C:\\list.txt) do "%plesk_cli%\\repair.exe" --reconfigure-ftp-site -webspace-name %a
    for /F %a in (C:\\list.txt) do "%plesk_cli%\\repair.exe" --repair-webspace-system-users -webspace-name %a
  4. Rerun Plesk reconfigurator to change vhosts location from drive D: to G: .

Have more questions? Submit a request
Please sign in to leave a comment.