Cannot download files uploaded by PHP scripts: Unable to get the object security info: (5) Access is denied.

Created:

2016-11-16 12:44:49 UTC

Modified:

2017-08-08 13:13:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot download files uploaded by PHP scripts: Unable to get the object security info: (5) Access is denied.

Applicable to:

  • Plesk 12.5 for Windows
  • Plesk Onyx 17.0 for Windows

Symptoms

Files uploaded through PHP scripts do not inherit user permissions. As a result, that files cannot be edited in Plesk File Manager or downloaded by FTP under the user account. The following error appears: 

Internal error: filemng failed: Unable to get the object (C:\Inetpub\vhosts\example.com\httpdocs\test.html) security info: (5) Access is denied. at execute "C:\Program Files (x86)\Plesk\admin\bin\filemng.exe" user --permissions --list-common "--file=C:\Inetpub\vhosts\example.com\httpdocs\test.html" "--accounts=tmp54B2.tmp"(RunTime::RunAsUser::run line 221) (Error code 1)

Cause

This is Plesk bug with ID PPPM-4539 which is planned to be fixed in future Plesk updates.

Resolution

As a workaround, fix the file permissions:

  • For a single domain:

    C:\> plesk bin repair --repair-webspace-security -webspace-name example.com -all-filesystem-objects

Or:

  • For the whole server:

    C:\> plesk bin repair --repair-all-webspace-security

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