• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Can't delete domain

I

iandunn

Guest
When I try to delete a domain I get this error:

Error: Unable to remove domains: Problems occured while removing domains: Unable to remove hosting: Unable to delete virtual host: websrvmng failed: Unexpected error

I tried the steps in this thread but they didn't help
 
An error occured during domain removal: Unable to remove domains: Unable to remove ho

Error :
******************************
An error occured during domain removal: Unable to remove domains: Unable to remove hosting: Unable to delete virtual host
: websrvmng failed: Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config
Error: Cannot commit configuration changes because the file has changed on disk
In module
Exception type: System.IO.FileLoadException
at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.CommitChanges()
at Microsoft.Web.Administration.ConfigurationManager.CommitChanges()
at Microsoft.Web.Administration.ServerManager.CommitChanges()
at ServerManagerFactory.commit()
at IIS7ServerManager.commit(IIS7ServerManager* )
at remove(shahrezamelk.ir)(WebServerMap::remove line 81)
at deleteHosting(shahrezamelk.ir)(WebServerAdapter::deleteHosting line 417)
at deleteHosting(shahrezamelk.ir)(WebServerManager::deleteHosting line 2855)
at execute console command --remove-vhost(vconsoleapp::start line 129)
at execute "C:\Program Files (x86)\Parallels\Plesk\/admin/bin/websrvmng" --remove-vhost "--vhost-name=shahrezamelk.ir"
(vconsoleapp::run line 140)

******************************

OR This Error When Change Configuration or Status :

Table::select() failed: no such row in the table


Solution :

1. Open Database of Plesk , It may be one of the formats : ( MsAcess , MySQL or MsSQL )

Example path for Plesk by MsAccess format : C:\Program Files (x86)\Parallels\Plesk\admin\db\psa.MDB



2. Open Query page and use this command :

SELECT * FROM domains d LEFT JOIN dns_zone z ON d.dns_zone_id=z.id WHERE z.id IS NULL;



3. Then Run this command, do not forget to replace YourDomain.com with a real domain name and ADMIN-EMAIL with a correct email:

INSERT INTO dns_zone (name, displayName, email) VALUES ('YourDomain.com', 'YourDomain.com', 'ADMIN-EMAIL');


4. Know new zone ID:

SELECT id, name FROM dns_zone where name='YourDomain.com';

5. Enter correct ID , Don't forget to replace YourDomain.com and DNS-ZONE-ID with correct values:

UPDATE domains SET dns_zone_id='DNS-ZONE-ID' WHERE name='YourDomain.com';

Restart the Plesk and dependent services.

Go to Plesk => YourDomain.com => DNS settings => Restore Defaults => OK


Have a Good Time
Masoud Saeidi
www.EsfahanHost.com
 
Back
Top