Cannot create domain with hosting: Unable to get web directory

Created:

2016-11-16 13:00:54 UTC

Modified:

2017-08-08 13:34:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot create domain with hosting: Unable to get web directory

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

  1. Domain example.com created in Plesk but with No hosting . The following error in Plesk web interface:

    Error: Unable to get web directory example.com In IIS7NativeProvider module Exception type: System.Exception at IISWebDirs.getWebChild(IISWebDirs* , unique_ptr >* , basic_string\\,std::allocator >* name) at configHosting(example.com)(WebServerAdapter::configHosting line 511) at configHosting(example.com)(WebServerManager::configHosting line 3558) at execute console command --install-vhost(vconsoleapp::start line 100) at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin64\\websrvmng.exe" --install-vhost "--vhost-config=tmpB240.tmp"(vconsoleapp::run line 117) (Error code 1)
  2. The following error can be found in php_error.log :

    [2016-09-14 08:42:43] ERR [1] "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin64\\websrvmng" --install-vhost "--vhost-config=tmpA03E.tmp" failed with code 1.

    stdout:
    Unable to get web directory example.com
    In IIS7NativeProvider module
    Exception type: System.Exception
    at IISWebDirs.getWebChild(IISWebDirs* , unique_ptr<IWebDir\\,std::default_delete<IWebDir> >* , basic_string<wchar_t\\,std::char_traits<wchar_t>\\,std::allocator<wchar_t> >* name)

    at configHosting(example.com)(WebServerAdapter::configHosting line 511)
    at configHosting(example.com)(WebServerManager::configHosting line 3558)
    at execute console command --install-vhost(vconsoleapp::start line 100)
    at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin64\\websrvmng.exe" --install-vhost "--vhost-config=tmpA03E.tmp"(vconsoleapp::run line 117)

Cause

Incorrect Physical Path in Basic Settings for sitepreview website in IIS.

Resolution

  1. Go to IIS > Sites > sitepreview > Basic Settings and check Physical Path . The value should be %plesk_dir%\\etc\\site-preview (as default C:\\Program Files (x86)\\Parallels\\Plesk\\etc\\site-preview )
  2. If this path is different, repair configuration of sitepreview website executing the following command from command prompt:
    "%plesk_dir%\\bin\\repair.exe" --reconfigure-site-preview
Have more questions? Submit a request
Please sign in to leave a comment.