Accessing to the domain’s page or domain deleting produces the error: “webstatmng is failed –unset-config –domain-name=domain.tld –stat-prog=”.Posted by Vinsane in Linux, Plesk
- Parallels Plesk Panel for Linux/Unix
The following error occurs during domain deleting in Plesk CP:
ERROR: PleskUtilExceptionÂ webstatmng is failed –unset-config –domain-name=domain.tld –stat-prog=
or during domain page accessing:
Error: Unable to update hosting preferences: hosting update is failed: webstatmng is failed –unset-config –domain-name=guide2care.com –stat-prog=
This error means that incorrect value was specified in the ‘webstat’ field of the ‘hosting’ table in ‘psa’ database.
The ‘webstat’ field can be set to ‘none’,'webalizer’ or ‘awstats’ values. To solve this problem, update ‘webstat’ field in ‘psa.hosting’ table for the problem ‘DOMAIN’ with the query like:
mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` psa -e 'update domains d, hosting h set h.webstat="none" where h.dom_id=d.id and d.name="DOMAIN"'
Note, “DOMAIN” should be replaced with the real domain name.
Note, if you use MySQL 3.x, the query should be spilt in two:
select id from domains where name="DOMAIN";
update hosting set webstat="none" where dom_id="DOMAIN_ID";
Where DOMAIN_ID is the number that you get after the first query.
Backup domains statistics directory (HTTPD_VHOSTS_D/DOMAIN/statistics/).
After that you will be able to delete domain or access it through Plesk CP and manage webstat on the domain’s hosting setup page.