When trying to add or remove a domain plesk panel gets hanged. The process monitor tool shows that there are a lot of "cmd" and "domainmng" processes, and all of them have child processes of websrvmng.exe, which hangs.
The cause of this error is websrvmng.exe is either corrupted or hanging due to an error.
Open the %plesk_bin% directory, and locate "websrvmng.exe". Check its size:
- If the size is zero, follow the resolution below.
- If the size is not zero, follow only steps 1 and 4 below.
1. Kill all cmd, domainmng.exe, websrvmng.exe, logrot_mng.exe and plesk_agent_manager.exe tasks:
taskkill /F /IM plesk_agent_manager.exe
taskkill /F /IM websrvmng.exe
taskkill /F /IM logrot_mng
taskkill /F /IM domainmng.exe
taskkill /F /IM cmd.exe
2. Extract Plesk msi to get valid websrvmng file:
msiexec /a "<path_to_plesk_msi>\plesk.msi" /qb TARGETDIR="<folder_to_extract_to>"
where <path_to_plesk_msi> usually located on system folder, in Program Files\Parallels\Install\<some_digits>
and <folder_to_extract_to> is any folder of your choice.
3. When extracted, locate websrvmng.exe in <folder_to_extract_to>\Program Files\Plesk\admin\bin\ and copy it to %plesk_bin% directory.
4. Restart Plesk management service from the tray monitor.