Change Nextcloud Data Directory

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • In this video we learn how to change nextcloud data directory after installation.
    #nextcloud #geek2gether
    hub.geek2gethe...

Комментарии • 27

  • @ADFEMU
    @ADFEMU 3 дня назад

    Thank you so much. This tutorial is straight to the point and worked perfectly for me.

  • @joellindsey9038
    @joellindsey9038 Месяц назад +2

    Thank you for making this video, using it I was able to move my data directory to an SMB share. Getting the SMB setup took a bit of troubleshooting such as updating the FSTAB entry to use the uid=www-data and gid=www-data so that the folder permissions are correct. I know your tutorial didn't cover that aspect but I figure I would drop that hint in there for the next person that wants to do this.

  • @johnboyboy919
    @johnboyboy919 2 месяца назад +1

    Thank you so much
    Very simple, very easy to follow, learned a bit more linux and mySQL
    Everything has been painful until I found this video 😁😁😁😁😁

  • @mrldtj
    @mrldtj Месяц назад

    Just performed this step by step to move data from default to newly installed raid array. Worked perfectly(to much relief)!

  • @TubeKens
    @TubeKens 5 месяцев назад

    Wasn't to sure of how to get this done then this popped-up in my search.
    **NOTE**
    I added the command "service cron stop" at the beginning just to be safe.
    Thank you! Everything worked perfect and your narrating was excellent.
    👍

    • @geek2gether469
      @geek2gether469  5 месяцев назад

      Thank you for watching. Maintenance mode should do it but I can understand wanting to be safe. Please like, share and subscribe.

  • @Watermen
    @Watermen 3 месяца назад +1

    Another fantastic video! Have you thought of doing one on making a high availability next cloud install?

  • @genshinimpactjoki5393
    @genshinimpactjoki5393 Месяц назад

    this works!. thanks man. at first i tried using SMB, but it fail. and i see many comment on several forums said that there's error on SMB permission. Well, then i change it using NFS. But, im worried about the security.

    • @geek2gether469
      @geek2gether469  Месяц назад

      What exactly are you worried about in regards to security ? if your comfortable telling me about your setup i can advice you on best practices. Also you can open a topic on geek2gether.com and post your concerns.

    • @genshinimpactjoki5393
      @genshinimpactjoki5393 Месяц назад

      ​@@geek2gether469 thanks a lot. before that, sorry, im noob at this kind of stuff. so please be patient. as far as i know, NFS dont have any authentication so i think someone could use and event remove files there. So i choose SMB rather than NFS

    • @geek2gether469
      @geek2gether469  Месяц назад

      So your nextcloud instance is exposed to the internet? SMB should work , but again you need to mount it permanently with credentials. If you are willing to open a new topic with more info about your setup I can help you more. However, make sure if your nextcloud is exposed externally, your keeping it up to date, using a strong user password and MFA as well.

    • @genshinimpactjoki5393
      @genshinimpactjoki5393 Месяц назад

      @@geek2gether469 yes, its exposed to the internet. i have tried SMB. it got error permission when i try turn off the maintenance mode. i surely have add the credential when i mount it.

    • @geek2gether469
      @geek2gether469  Месяц назад

      Well you need to assign appropriate permission to the user such as rw then the nextcloud www-data will need to have permission to access and rw on the share as well.

  • @joevaughan5570
    @joevaughan5570 Месяц назад +1

    I am having a nightmare trying to change the location where my files etc are saving. Everything at the moment is saving to the SD card and not the M.2 SSD. I've been trying to get help via the community, but so far nothing. I might have to give up soon. Can anyone help?

    • @geek2gether469
      @geek2gether469  Месяц назад +1

      Sure thing! Open a new topic on my forums at geek2gether.com so I can help you resolve your issues. Please provide information about your setup as well and how your virtual machine or physical nextcloud server is setup. Do not provide personal information such as public ip addresses etc.

  • @davidst-jacques5901
    @davidst-jacques5901 2 месяца назад

    I performed this procedure to move the data directory to try and fix this error after upgrading to 29.01...
    There are some errors regarding your setup.
    Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root.
    Do you get same error after upgrading to 29.01 ?
    Everything looks good when i test my installation using the test link...."Check the security of your Nextcloud over our security scan ↗."

    • @geek2gether469
      @geek2gether469  2 месяца назад

      No I do not have the error. Did you get the error before the upgrade? Did you change anything in your .htaccess file?

    • @davidst-jacques5901
      @davidst-jacques5901 2 месяца назад

      @geek2gether469 I reverted my vm back to 28.0.6
      I only get this error when I upgrade to 29.01.
      I don't know linux very well.
      So not sure what to check.
      I haven't messed with .htaccess file

    • @geek2gether469
      @geek2gether469  2 месяца назад

      What Linux OS are you using? Debian, Ubuntu ?

    • @davidst-jacques5901
      @davidst-jacques5901 2 месяца назад

      @@geek2gether469 ubuntu 22.04 server

    • @geek2gether469
      @geek2gether469  2 месяца назад +1

      @davidst-jacques5901 After doing some research, that error is a bug with the new nextcloud 29 as show here: github.com/nextcloud/server/issues/45087.
      A solution is allow nextcloud php to do redirects from 80 to 443 and not use apache2 or nginx. To do this you need to modify the config.php first; Run the commands below:
      sudo -u www-data php /var/www//occ config:system:set overwritehost --value=""
      sudo -u www-data php /var/www//occ config:system:set overwriteprotocol --value="https"
      sudo -u www-data php /var/www//occ config:system:set overwrite.cli.url --value=""
      Once those changes have been made you need to edit your apache2 config for nextcloud not to redirect 80 to 443 and use this documentation to setup virtual host per nextcloud recommendation: docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html
      Note: If you are using my installation script, it has been modified to fix this issue.