The Repair Kit extension reports the warning: There are files or directories with suspicious permissions in the root directory of the domain

Follow

Comments

8 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
  • Avatar
    Deepak Dhingra

    Hello,

    I have a similar issue. I ran the Plesk Repair all -y and these 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 {} \;

     

    But nothing worked. Some of my websites are showing up and some don't. 

    The warning shows for all my websites still.

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

    What do I do?

    Deepak

     

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hello Deepak, you should create a ticket to support to check the issue.

    0
    Comment actions Permalink
  • Avatar
    Deepak Dhingra (Edited )

    Hi Anton,

     

    I did some stuff manually and corrected this issue. So this is solved.

    0
    Comment actions Permalink
  • Avatar
    James R Getches

    Deepak,

    I am experiencing the same issues across multiple plesk installations. Can you describe the manual stuff you did to correct the issues? Thank you for your help.

    1
    Comment actions Permalink
  • Avatar
    Fouad Ahmed Fouad

    Need some help here please, on a new Plesk server I am migrating Cpanel to Plesk and found this issue happened on all accounts after migration, error like,

    /var/www/vhosts/example.com/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/example.com/public_html/' is executable

    I think this is a bug on Obsedian, how to do this step after migrating 100 accounts for example manually and how much time it will take?

    Please make it easy to contact support to report similar issues, last time I contacted support involved many steps.

    Another issue after migrating, Plesk now force SSL redirect and I can't test web sites on Plesk before I switch DNS, I think SSL redirect on new web sites isn't a good idea before we switch DNS so Plesk can issues SSL certs using for example let's encrypt!

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request