Problem 403 forbidden after install backuppc

  • Goodmorning everyone,


    the server on which I installed imscp, must also be a backup for the production server and then installed the backuppc program, following the guide published at this address


    https://github.com/backuppc/ba…n-Ubuntu-Xenial-16.04-LTS


    Unfortunately, backuppc in addition to not working, I created problems with imscp and I was able to access it again only with the update procedure.
    Now at the imscp panel I log in normally, but all sites return
    Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


    and in the error log of the sites /var/log/apache2/site.it/error.log


    [core:error] [pid 21027] (13)Permission denied: [client XXX.XXX.XXX.XXX:56684] AH00035: access to /favicon.ico denied (filesystem path '/var/www/virtual/site.it/htdocs') because search permissions are missing on a component of the path, referer: http://www.site.it/


    What can I check to fix the error? Thank you

  • Hello sprippen!


    Can you please check the permissions of following folder: /var/www/virtual/[b]reseller[/b]/[b]domain.tld[/b]/htdocs/ with following commands:


    Shell-Script
    1. cd /var/www/virtual/reseller/domain.tld/htdocs/
    2. ls -la

    And give us the output please. It should look like attached picture (yellow marked)!


    NOTE: Please change "reseller" and domain.tld to your config / needs!


    Best regards.

    Files

    Support Infos: I-MSCP Version: 1.5.x / Distro: Debian Stretch / PHP: 7.1.27 - FPM / I-MSCP Plugins: Let´s Encrypt + PHPSwitcher (latest Versions)

  • Thank you very much for the answer, a domain for example has this output in relation to index.html file


    -rw-r--r-- 1 vu2132 vu2132 3794 gen 16 12:07 index.html

  • @sprippen


    Show us the permissions and ownership for each directory, starting from / to /var/www/virtual please.


    BTW: If you're playing on your server by closing eyes, you should not ask us once after ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks Nuxwin,


    I promise not to make more disasters


    This is the output


    Shell-Script
    1. root@serverdev:~# cd /root@serverdev:/# ls -altotale 101drwxr-xr-x 23 root root 4096 gen 23 06:29 .drwxr-xr-x 23 root root 4096 gen 23 06:29 ..drwxr-xr-x 2 root root 4096 gen 18 22:57 bindrwxr-xr-x 4 root root 1024 gen 23 18:04 bootdrwxr-xr-x 20 root root 4200 gen 23 20:42 devdrwxr-xr-x 124 root root 12288 gen 23 19:38 etcdrwxr-xr-x 3 root root 4096 gen 12 10:23 homelrwxrwxrwx 1 root root 33 gen 23 06:29 initrd.img -> boot/initrd.img-4.4.0-112-genericlrwxrwxrwx 1 root root 33 gen 12 10:50 initrd.img.old -> boot/initrd.img-4.4.0-109-genericdrwxr-xr-x 25 root root 4096 gen 12 10:58 libdrwxr-xr-x 2 root root 4096 gen 18 22:57 lib64drwx------ 2 root root 16384 gen 12 10:04 lost+founddrwxr-xr-x 3 root root 4096 gen 12 10:05 mediadrwxr-xr-x 2 root root 4096 ago 1 13:16 mntdrwxr-xr-x 3 root root 4096 gen 12 11:23 optdr-xr-xr-x 197 root root 0 gen 23 20:42 procdrwx------ 8 root root 4096 gen 23 20:41 rootdrwxr-xr-x 36 root root 1340 gen 24 15:36 rundrwxr-xr-x 2 root root 12288 gen 23 18:30 sbindrwxr-xr-x 2 root root 4096 apr 29 2017 snapdrwxr-xr-x 4 root root 4096 gen 23 18:36 srvdr-xr-xr-x 13 root root 0 gen 23 20:42 sysdrwxrwxrwt 9 root root 4096 gen 24 15:35 tmpdrwxr-xr-x 10 root root 4096 gen 12 10:05 usrdrwxr-xr-x 14 root root 4096 gen 12 10:20 varlrwxrwxrwx 1 root root 30 gen 23 06:29 vmlinuz -> boot/vmlinuz-4.4.0-112-genericlrwxrwxrwx 1 root root 30 gen 12 10:50 vmlinuz.old -> boot/vmlinuz-4.4.0-109-generic
    Shell-Script
    1. root@serverdev:/# cd varroot@serverdev:/var# ls -altotale 56drwxr-xr-x 14 root root 4096 gen 12 10:20 .drwxr-xr-x 23 root root 4096 gen 23 06:29 ..drwxr-xr-x 2 root root 4096 gen 24 06:25 backupsdrwxr-xr-x 18 root root 4096 gen 23 18:31 cachedrwxrwxrwt 2 root root 4096 gen 24 06:25 crashdrwxr-xr-x 64 root root 4096 gen 23 19:36 libdrwxrwsr-x 3 root staff 4096 gen 12 11:07 locallrwxrwxrwx 1 root root 9 gen 12 10:05 lock -> /run/lockdrwxrwxr-x 23 root syslog 4096 gen 24 06:25 logdrwxrwsrwt 3 root mail 4096 gen 12 11:00 maildrwxr-xr-x 2 root root 4096 ago 1 13:16 optlrwxrwxrwx 1 root root 4 gen 12 10:05 run -> /rundrwxr-xr-x 2 root root 4096 apr 29 2017 snapdrwxr-xr-x 6 root root 4096 gen 23 19:19 spooldrwxrwxrwt 6 root root 4096 gen 24 15:09 tmpdrwxr-xr-x 6 root root 4096 gen 23 18:37 wwwroot@serverdev:/var# cd wwwroot@serverdev:/var/www# ls -altotale 24drwxr-xr-x 6 root root 4096 gen 23 18:37 .drwxr-xr-x 14 root root 4096 gen 12 10:20 ..drwxr-xr-x 3 root root 4096 gen 23 18:37 cgi-bindrwxr-xr-x 3 root root 4096 gen 23 18:37 htmldrwxr-xr-x 6 root root 4096 gen 23 19:20 imscpdrwxr-xr-x 123 root root 4096 gen 19 12:08 virtual