Article ID: 118346, created on Nov 1, 2013, last review on Feb 23, 2016

  • Applies to:
  • Plesk 12.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows
  • Plesk 10.4 for Windows


When trying to add a subdomain to a website in Plesk, the following error message is displayed:

ProtDirUser_IIS::update() failed: Add Protected Directory user failed: Url 'plesk-stat' is not protected.

The following SQL query returns a non-empty result:

"%plesk_bin%\dbclient.exe" --direct-sql --sql="select * from protected_dirs where dom_id not in (select id from domains) limit 1;"


Database inconsistency.


  1. Create 'psa' database backup according to article KB881

  2. Remove orphaned records in psa.protected_dirs which belong to non-existent domains:

    mysql> begin;
    Query OK, 0 rows affected (0.00 sec)
    mysql> delete from protected_dirs where dom_id not in (select id from domains);
    Query OK, 24 rows affected (0.00 sec)
    mysql> commit;
    Query OK, 0 rows affected (0.01 sec)
  3. Reconfigure website using the following commands:

    "%plesk_cli%\repair.exe" --reconfigure-web-site  -web-site-name
    "%plesk_cli%\websrvmng.exe" --remove-sites-cache
    "%plesk_cli%\repair.exe" --repair-webspace-security -webspace-name
  4. Try to disable/enable plesk-stat password protection.

Search Words

add protected directory to web server failed


protDir_iis:: Failed to add protected directory

Table 'psa.protected_dirs' doesn't exist

PHP website doesn't work after upgrade to plesk 12

Add Protected Directory user failed

Error: ProtDirUser_IIS::update(

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 46a8e394d6fa13134808921036a34da8 85a92ca67f2200d36506862eaa6ed6b8 bd7fc88cf1b01f097749ae6f87272128 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 514af229ae32522202a910a2649c80fb 8b661cab116c79dbe6c4ac5bbdf1c8cb ff5a00b8ead2e480367b019417a04207 c796c01d6951fa24ed54c7f1111667c6

Email subscription for changes to this article
Save as PDF