Website folder and files permisions - Debian 8 and ISPConfig 3.1.11

Discussion in 'Installation/Configuration' started by MSIU, Mar 1, 2018.

  1. MSIU

    MSIU Member

    Hello,
    I Have folowed Perfect setup Debian 8.4 howto with Apache ... Configure ISPConfig with ISPConfig Manual. When I test and change different PHP Modes, permisions of sites folder problem occur when I use suexec with Mod Fast-CGI and siet are unavailible. Can anybody tell me, what are the right permisions for sites with suexec and Mod-fcgi for:

    /var/www/clients directory and /var/www/clients/client(x) and web(x) directory and subdirecoties:
    backup
    cgi-bin
    log
    private
    .ssh
    ssl
    tmp
    web
    webdav

    Thanks a lot.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Code:
    root@server1:/home/administrator# ls -la /var/www/clients
    total 16
    drwxr-xr-x 4 root root 4096 Feb 28 00:37 .
    drwxr-xr-x 6 root root 4096 Feb 28 00:37 ..
    drwxr-xr-x 3 root root 4096 Feb 28 00:37 client0
    drwxr-xr-x 4 root root 4096 Feb 28 00:37 client1
    root@server1:/home/administrator#
    root@server1:/home/administrator# ls -la /var/www/clients/client0
    total 12
    drwxr-xr-x 3 root root 4096 Feb 28 00:37 .
    drwxr-xr-x 4 root root 4096 Feb 28 00:37 ..
    lrwxrwxrwx 1 root root   30 Feb 27 08:57 test100.int -> /var/www/clients/client0/web1/
    drwxr-xr-x 9 root root 4096 Feb 27 08:57 web1
    root@server1:/home/administrator# ls -la /var/www/clients/client0/web1
    total 36
    drwxr-xr-x  9 root root    4096 Feb 27 08:57 .
    drwxr-xr-x  3 root root    4096 Feb 28 00:37 ..
    drwxr-xr-x  2 web1 client0 4096 Feb 27 08:57 cgi-bin
    drwxr-xr-x  2 root root    4096 Feb 28 00:00 log
    drwx--x---  2 web1 client0 4096 Feb 27 08:57 private
    drwx------  2 web1 client0 4096 Feb 27 08:57 .ssh
    drwxr-xr-x  2 root root    4096 Feb 27 08:57 ssl
    drwxrwx---  2 web1 client0 4096 Feb 28 02:18 tmp
    drwxr-x--x 14 web1 client0 4096 Feb 27 09:00 web
     
    MSIU likes this.
  3. MSIU

    MSIU Member

    Thanks, webdav directory pls?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Code:
    drwx--x---  2 web1 client0 4096 Feb 27 08:57 webdav
     
    MSIU likes this.
  5. MSIU

    MSIU Member

    Thank you very much. I will correct permisions and hope, that PHP Fast-CGI with suexec will work.
     
  6. MSIU

    MSIU Member

    Apache dav module needs ownership of /webdav directory www-data www-data (in Debian), with ISPConfig site owner do not work - with error 500 or 403. Is this ISPConfig bug?
     
  7. MSIU

    MSIU Member

    And backup directory please? That will be all. Thanks
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you enabled Suexec on website settings? It must be on to website permissions to work.
     
  9. MSIU

    MSIU Member

    I'm sorry, apparently I was wrong commented. I need to know the default ownersip and permissions of /backup directory in ISPConfig site directory.
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  11. MSIU

    MSIU Member

Share This Page