Plesk

Plesk backup task completes with warning: This system user has no read access to: /var/www/vhosts/example.com/httpdocs

Symptoms

Backup task completes with warning:

Warning: hosting "example.com"
Not all the data was backed up into /var/lib/psa/dumps/domains/example.com successfully. This system user has no read access to: /var/www/vhosts/example.com/httpdocs So it was not backed up. All other data was backed up successfully. To fix this issue you may run the command 'plesk repair fs' or grant access read/write manually to the file or directory for system user "john_doe" or "apache".

Cause

The files/directories inside the domain's document root directory have Incorrect ownership or permissions.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Fix ownership:

    # plesk repair fs example.com

  3. Fix permissions on directories and files inside the virtual host document root directory:

    # find /var/www/vhosts/example.com/httpdocs/* -type d -exec chmod 0755 {} ;
    # find /var/www/vhosts/example.com/httpdocs/* -type f -exec chmod 0644 {} ;

    • If this is a subdomain, change the path to the appropriate:

      # find /var/www/vhosts/example.com/subdomain_name/* -type d -exec chmod 0755 {} ;
      # find /var/www/vhosts/example.com/subdomain_name/* -type f -exec chmod 0644 {} ;