• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question websrvmng.exe is not working in plesk onyx

Amar

New Pleskian
Hi,

I have to remove a vhost and then repair it, earlier it used to work on plesk 11.5, recently we shifted to plesk onyx but it seems onyx doesn't have websrvmng executable.

"%plesk_bin%\websrvmng.exe" --remove-vhost --vhost-name=domain.com
"%plesk_cli%\repair.exe" --reconfigure-web-site -web-site-name domain.com

Below is the output :

C:\Users\administrator>"%plesk_bin%\websrvmng.exe" --remove-vhost --vhost-name=mytestwebsite.com
'"C:\Program Files (x86)\Parallels\Plesk\admin\bin\websrvmng.exe"' is not recognized as an internal or external command

Can anyone suggest any alternative of websrvmng to remove vhost in plesk onyx?
 
Hi Amar,

pls. note, that Plesk versions may differ, when it comes to CLI - commands. The full list of possible commands for Plesk Onyx on Windows servers can be viewed here:

=> Command Line Utilities Overview ( Reference for Command-Line Utilities, Plesk for Microsoft Windows )

Can anyone suggest any alternative of websrvmng to remove vhost in plesk onyx?
There are several options. Here are some examples:
  • To remove a subscription, you would use "plesk bin subscription.exe --remove example.com"
  • To remove a domain alias, you would use "plesk bin domalias.exe --delete example.com"
  • To remove a subdomain, you would use "plesk bin subdomain.exe --remove -subdomains forum -domain example.com"
More options and example commands can be found at the above mentioned Plesk Onyx documentation.​
 
Back
Top