How to reconfigure domain or per domain FTP settings in Plesk 11.5 or Plesk 12?

Created:

2016-11-16 12:46:33 UTC

Modified:

2017-08-16 18:27:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to reconfigure domain or per domain FTP settings in Plesk 11.5 or Plesk 12?

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

  1. In Plesk versions released before 11.5.30, there was a utility to reconfigure domains - websrvmng.exe - but this does not work in Plesk 11.5. How can a website be reconfigured?

  2. A website with hosting exists in Plesk, but it is absent in IIS. How can it be reconfigured in IIS?

Cause

The command websrvmng.exe was replaced with the utility repair.exe .

To reconfigure the domain manually in Plesk 11.5, use the new utility, repair.exe , which is located in the %plesk_cli% folder (example: C:\\Program Files (x86)\\Parallels\\Plesk\\bin ).

Resolution

To reconfigure a domain, use the following command:

"%plesk_cli%\\repair.exe" --reconfigure-web-site -web-site-name example.com

To reconfigure FTP settings per domain:

"%plesk_cli%\\repair.exe" --reconfigure-ftp-site -webspace-name example.com

For more keys, use help:

"%plesk_cli%\\repair.exe" --help

Reconfigure all domains

If you need to run this command for all domains, retrieve a list of domains from the Plesk database and execute the command for each one. You can use the following commands:

  1. Retrieve a list of all domains with hosting. Replace the *** symbols with your Plesk admin password:

    "%plesk_dir%"\\MySQL\\bin\\mysql.exe -uadmin -p****** -P8306 psa -Ne"select name from domains where htype='vrt_hst'" > C:\\domains.txt
  2. Change your directory to %plesk_cli%

    cd %plesk_cli%
  3. Execute the repair.exe utility for each domain:

    for /f "tokens=*" %d in ('type C:\\domains.txt') do repair.exe --reconfigure-web-site -web-site-name %d
Have more questions? Submit a request
Please sign in to leave a comment.