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?
A website with hosting exists in Plesk, but it is absent in IIS. How can it be reconfigured in IIS?
websrvmng.exe was replaced with the utility
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 ).
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:
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:
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
Change your directory to
repair.exeutility for each domain:
for /f "tokens=*" %d in ('type C:\\domains.txt') do repair.exe --reconfigure-web-site -web-site-name %d