Plesk

Unable to manage, create ZIP or back up files uploaded by PHP scripts in Plesk: Unable to get the object security info: (5) Access is denied

Symptoms

Cause

Product issues:

  • #PPP-49179 "The outdated PHP handlers (versions 5.6 and 7.0) no longer contain custom upload_tmp_dir as their values."
    Fixed in:
  • #PPPM-4539 "Files uploaded via WordPress are now assigned the correct file system permissions."
    Fixed in:

Resolution

Upgrade the Plesk server to the next release, make sure that FastCGI Settings are enabled in the domain PHP Settings:

Note: Check how to enable the FastCGI settings per Service Plan

  1. Log in to Plesk GUI

  2. Go to Domains > example.com > PHP Settings > Select a PHP version handled by FastCGI > Scroll down to FastCGI Settings > Set the option Enable FastCGI Settings to On > Click OK to apply the changes

Workaround

 

Fixing permissions in order to access files via Plesk File Manager / FTP

 

  1. Connect to the server via RDP

  2. Start a command prompt as an Administrator

  3. Run the command:

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

 

Fixing permissions before creating a manual server Plesk backup

 

  1. Connect to the server via RDP

  2. Start a command prompt as an Administrator

  3. Fix file permissions:

    • For one domain

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

    • For all domains

      C:> for /f %i in ('plesk bin subscription -l') do plesk bin repair --repair-webspace-security -webspace-name %i -all-filesystem-objects

  4. Create a full Plesk backup.

 

Fixing permissions before creating scheduled server Plesk backups

 

Warning: The following workaround must be applied every time after applying the changes at Tools & Settings > Backup Manager > Schedule, because the task is overwritten.

  1. Log in to Plesk GUI and schedule a full server backup:

    1.1. Go to at Tools & Settings > Backup Manager > Schedule >

    1.2. Enable Activate this…

Exit mobile version