Article ID: 124522, created on Feb 21, 2015, last review on Feb 21, 2015

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Windows
  • Plesk 10.4 for Windows


While configuring webmail or enabling it for domain, the following error appears:

Error: Set default component failed: defpackagemng failed: Execute websrvmng --add-webmail-site --webmail=horde failed with error code 1: Cannot find hosting by domain ID 404
at (PSADatabase::getDomainHosting line 455)
at updateWebMailLink(domain.tld)(WebServerManager::reconfigureWebMail line 2780)


Error message 'Cannot find hosting by domain ID' means that Plesk database has broken link between 'domains' and 'hosting' tables.


  1. Check if domain with mentioned ID has hosting or not:

    mysql> select id, name, htype from domains where id=404;
    | id  | name               | htype   |
    | 404 | domain.tld         | vrt_hst |
    mysql> select * from hosting where dom_id=404;
    Empty set (0.27 sec)
  2. As there is no hosting for domain in hosting table, update domains table, set hosting to none for this domain:

    mysql> update domains set htype='none' where id=404;
    Query OK, 1 row affected (0.01 sec)
    Rows matched: 1  Changed: 1  Warnings: 0

Search Words

Issue in changing webmail client

Cannot find hosting by domain ID

Unable to create the subscriptions and getting the error

php is missing mysql

erreur 404

already did this.


defpackagemng failed

85a92ca67f2200d36506862eaa6ed6b8 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 514af229ae32522202a910a2649c80fb bd7fc88cf1b01f097749ae6f87272128 29d1e90fd304f01e6420fbe60f66f838 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 ff5a00b8ead2e480367b019417a04207 c796c01d6951fa24ed54c7f1111667c6

Email subscription for changes to this article
Save as PDF