• 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

Resolved Error Creating Domains

Aokiji

New Pleskian
good day im getting this error when trying to create domains on my server

Error: ProtDir_IIS::update() failed: Add Protected Directory failed: Filename: \\?\C:\Inetpub\vhosts\clanzt.com\httpdocs\web.config Error: The configuration section 'system.webServer/pleskProtectedUrls' cannot be read because it is missing a section declaration In module Exception type: System.Runtime.InteropServices.COMException at Microsoft.Web.Administration.Interop.IAppHostAdminManager.GetAdminSection(String bstrSectionName, String bstrPath) at Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath) at ServerManagerFactory.getSectionInternal(String sectionPath, Type sectionType, String location) at ServerManagerFactory.getProtectedUrlsSection(String location) at ProtectedUrls.getUrls(ProtectedUrls* ) at ProtectedUrls.add(ProtectedUrls* , shared_ptr<IProtectedUrl>* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* path) at addProtectedUrl(clanzt.com, /plesk-stat, Welcome to Domain statistics)(WebServerManager::addProtectedUrl line 576) at execute console command --add-protected-url(vconsoleapp::start line 93) at execute "C:\Program Files (x86)\Plesk\admin\bin64\websrvmng" --add-protected-url "--vhost-name=clanzt.com" "--path=/plesk-stat" "--realm=Welcome to Domain statistics"(vconsoleapp::run line 110) (Error code 1)
 
There are missing registries In applicationHost.config file due to incorrect plesk-urlprotection package installation.
Open the C:\Windows\System32\inetsrv\Config\applicationHost.config file and add the missing lines (in bold) into respective sections:

CONFIG_TEXT:
<system.webServer>
...
<globalModules>
...
<add name="PleskUrlProtectionModule" image="%windir%\System32\inetsrv\pleskurlprotection.dll" />
...
</globalModules>
...
</system.webServer>
...
<configuration>
<configSections>
...
<sectionGroup name="system.webServer">
...
<section name="pleskProtectedUrls" overrideModeDefault="Deny" />
...
</sectionGroup>
...
</configSections>
...
</configuration>

Then re-install microupdates - How to reinstall Plesk micro-updates (MU)
 
good day got the same error again ..

with the repatch i get this

WARNING: Command line option '--repatch' is deprecated and will be ignored.
 
Back
Top