Articles in this section

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

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

Backup task completes with warning:

PLESK_WARN: 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 {} \;

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.