Plesk Repair Utility: There are files or directories with suspicious permissions in the root directory of the domain

Follow

Comments

2 comments

  • Avatar
    Lenor

    Not working with Plesk 17.8. 

     

    Still says: 

    Error messages: 2; Warnings: 19; Errors resolved: 2

    NO of the Warnings gets corrected. 

    There are files or directories with suspicious permissions in the
    root directory of the domain

    0
    Comment actions Permalink
  • Avatar
    Alexey Lapshin

    Hello Lenor,

    I would like to inform you that "plesk repair fs" utility fix incorrect ownership and determines incorrect file permissions.
    This behavior is by design because for some web application requires non-default permissions for files(644) and directories(755).

    To set default permissions on directories and files inside the virtual host document root directory execute the following commands:

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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request