Procedure for moving the vhosts location through Plesk Reconfigurator hanged and is not responding

Created:

2016-11-16 12:46:29 UTC

Modified:

2017-04-24 12:12:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Procedure for moving the vhosts location through Plesk Reconfigurator hanged and is not responding

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Plesk reconfigurator failed during vhosts location change.Websites show 500 error. It is impossible to access File Manager:

Permissions denied

Cause

Plesk reconfigurator was accidentally interrupted or stuck during websites reconfiguration.

Resolution

  1. Backup psa database

    plesk db dump > psa_dump.sql
  2. Make sure that home and www_root location was changed in database:

  3. home path for system users in mysql DB:

        plesk db "update sys_users set home=replace(home,'D:','G:')"

    Where `D:` is source drive and `G:` is destination drive.
  4. www_root path for psa.hosting table:

        plesk db "update hosting set www_root=replace(www_root,'D:','G:')"
  5. Check parameters in Windows registry at HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config :

    FTP_ROOT_D G:\\www\\Default
    HTTPD_VHOSTS_D G:\\www
  6. Update the system user's permissions for all subscriptions:

    Run Plesk Reconfigurator > Repair Plesk installation > Plesk Virtual Hosts Security

  7. Follow steps provided in KB #213936165 to change path for additional PHP custom directives

  8. Perform the following command to reconfigure websites:

    plesk bin repair --web
  9. Update IIS virtual directories path

  10. Export domains list into file

        mysql -uadmin -P8306 -p<admin_password> psa -Nse"select name from domains" > dom_list.txt
  11. Run the following:

        for /f %a in (dom_list.txt) do  websrvmng.exe --update-site-paths --site-name=%a --old-path=D:\\vhosts --new-path=G:\\www
Have more questions? Submit a request
Please sign in to leave a comment.