does a restore of a website backup restore file permissions

Discussion in 'General' started by muekno, Mar 16, 2026.

  1. muekno

    muekno Active Member HowtoForge Supporter

    reason. I added a client to a site (nextcloud) where client field was empty before. mynextcloud can not accessed in case of permissions.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you change the owner of a site by updating that site's client setting, its group changes. If your nextcloud does not work afterwards, then you must fix the group ownership of your nextcloud files. This has nothing to do with backups, if permissions are wrong after you changed the owner of your site, you fix the permissions and not restore a backup.
     
    muekno likes this.
  3. muekno

    muekno Active Member HowtoForge Supporter

    after the change nextcloud instance is /var/www/clients/client5/web2
    but the website itself is under/var/www/clients/client5/web2/web/ as of /etc/apache2/sites-available/nextcloud.muekno.de.vhost
    I do not understand the correlation to the default apache www-data:www-data.
    all the solutions in the web asume default /var/www/nextcloud/ path
    if I replace this path with /var/www/clients/client5/web2/web/ the fix does not work
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    On websites, PHP does not run as www-data; it runs as the web user and the website's client group. So in your case, PHP runs as user web2 and group client5. Also, the nextcloud path is the one you have chosen at the time you installed it, its not /var/www/nextcloud as that's not a valid website path on an ISPConfig system.
     
    muekno likes this.
  5. muekno

    muekno Active Member HowtoForge Supporter

    Solved the issue, the config.php of nextcloud still hat the old clientx in hid datapath.
    thanks for any help
     

Share This Page