Applicable to:
- Plesk for Windows
Symptoms
-
There are several subdomains in the subscription example.com hosted on a Plesk for Windows server.
-
Renaming main domain of the subscription in Domains > example.com > Hosting Settings > Domain name fails:
PLESK_ERROR: Error: Filename: \?\D:\vhosts\example.net\one.example.net\web.config Error: Cannot read configuration file In module Exception type: System.IO.DirectoryNotFoundException
.........
at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng" --reconfigure-vhost "--vhost-config=blE014.tmp" "--config=<update><rootPath/><vDirs old-prefix="D:\vhosts\example.com" new-prefix="D:\vhosts\example.net"/><errDocs old-prefix="D:\vhosts\example.com" new-prefix="D:\vhosts\example.net"/><appPool/><logs/><traceFailedRequests/></update>"(vconsoleapp::run line 139) (Error code 1) -
The directory set as Document root in Domains > one.example.com > Hosting Settings (where one.example.com is the subdomain from the error message) is missing in Subscriptions > example.com > Files.
Cause
The directory set as the document root of the subdomain does not exist.
Resolution
-
Go to Subscriptions > example.com > Files > Home directory.
-
Click New > Create Directory, enter
one.example.com
and click OK.Note: The actual name of the missing document root directory can be found in the error message - the part between
example.net
andweb.config
. -
Go to Subscriptions > example.com > Websites & Domains.
-
Check the document root of all other subdomains except one.example.com in the field Website at under the subdomain's name:
-
Go to Subscriptions > example.com > Files and check if the document root directories found in the previous step exist.
If some of them do not exist - re-create them by clicking New > Create Directory.
-
Connect to the server using RDP.
-
Reconfigure one.example.com and other subdomains whose document root directories were re-created:
C:\> plesk bin repair.exe --reconfigure-web-site -web-site-name one.example.com
-
In Plesk, go to Domains > example.com > Hosting Settings.
-
Put the new name of the domain into the field Domain name and click OK or Apply in the bottom of the page.
Comments
0 comments
Please sign in to leave a comment.