Unable to set open_basedir setting/install wildcard SSL certificate for domain. ProtDirUser_IIS::update() failed: Add Protected Directory user failed: Url 'plesk-stat' is not protected.

Refers to:

  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Created:

2016-11-16 12:40:11 UTC

Modified:

2016-12-21 18:55:52 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to set open_basedir setting/install wildcard SSL certificate for domain. ProtDirUser_IIS::update() failed: Add Protected Directory user failed: Url 'plesk-stat' is not protected.

Symptoms

When trying to set the open_basedir setting for domain, 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 an empty result:

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

Plesk "%plesk_bin%"\\admin\\logs\\php_error.log log contains the following error:

[2015-05-15 06:36:17] DEBUG [util_exec] [8f2a614da19e8e66c191ec128b218c3c][0] Starting: websrvmng --add-protected-url-user --vhost-name=example.com --path=plesk-stat --login=john --password=password
[2015-05-15 06:36:18] ERR [util_exec] plesk_proc_close() failed
[2015-05-15 06:36:18] DEBUG [util_exec] [8f2a614da19e8e66c191ec128b218c3c][0] Finished in 0.9375s, Error code: 1
[2015-05-15 06:36:18] PleskUtilException: "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin64\\websrvmng" --add-protected-url-user "--vhost-name=example.com" "--path=plesk-stat" "--login=john" "--password=password" failed with code 1.
stdout:
Url 'plesk-stat' is not protected.

Cause

The folder /plesk-stat was improperly configured/created.

Resolution

To resolve the issue recreate the directory via Plesk GUI at:

Subscriptions - example.com - Manage hosting - Password protected directory

Have more questions? Submit a request
Please sign in to leave a comment.