Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: websrvmng reconfigure vhost in Plesk 11.5  (Read 5861 times)

0 Members and 1 Guest are viewing this topic.

anju

  • Guest
websrvmng reconfigure vhost in Plesk 11.5
« on: October 26, 2013, 10:55:50 pm »
We can run websrvmn.exe executable from "%plesk_bin% directory in order to reconfigure the virtual host
entries for specific sites in IIS.

We have the options --remove-vhost and --install-vhost for re-adding the site settings in IIS.
When we need to reconfigure, we do have option --reconfigure-vhost too for reconfiguring the
site settings.

If you are using Plesk version 11.5 or later, the option --reconfigure-vhost won't work just like
as you do in Plesk version 9,10 and 11.0

Most probably, you will be getting following message when doing it.

"%plesk_bin%\websrvmng.exe --reconfigure-vhost --vhost-name=domain.com

"Missing required parameter --vhost-config."

This is because a new parameter "--config" is introduced in Plesk version 11.5 where we need
to mention site settings from a configuration file ( .xml file )

From websrvmng.exe --help, available option is

--reconfigure-vhost --vhost-name=<domain> [--config=<xml>]

As per Parallels, %plesk_cli%\repair.exe. websrvmng.exe --reconfigure-vhost was replaced by this
utility.

So in order to reconfigure the vhost entry of a domain, we need to run the following command

%plesk_cli%\repair.exe --reconfigure-web-site -web-site-name domain.com ( replace domain.com
with your exact domain name )