Change Nextcloud Data Directory

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024
  • In this video we learn how to change nextcloud data directory after installation.
    #nextcloud #geek2gether
    hub.geek2gethe...

ความคิดเห็น • 29

  • @joellindsey9038
    @joellindsey9038 4 หลายเดือนก่อน +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.

  • @ADFEMU
    @ADFEMU 3 หลายเดือนก่อน +1

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

  • @TubeKens
    @TubeKens 8 หลายเดือนก่อน +1

    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  8 หลายเดือนก่อน

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

  • @mrldtj
    @mrldtj 4 หลายเดือนก่อน

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

  • @johnboyboy919
    @johnboyboy919 4 หลายเดือนก่อน +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 😁😁😁😁😁

  • @Watermen
    @Watermen 6 หลายเดือนก่อน +1

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

  • @Nicouschulas
    @Nicouschulas 18 วันที่ผ่านมา +1

    I got at 9:41 the error 1026 (2300): Duplicate entry 'local::/secure/data/' for key 'storages_id_index'
    Does anyone can help me?

  • @sethhibpshman4851
    @sethhibpshman4851 หลายเดือนก่อน

    Works amazingly! Thank you!

  • @genshinimpactjoki5393
    @genshinimpactjoki5393 4 หลายเดือนก่อน

    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  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

      ​@@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  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

      @@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  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน +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 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      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 5 หลายเดือนก่อน

      @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  5 หลายเดือนก่อน

      What Linux OS are you using? Debian, Ubuntu ?

    • @davidst-jacques5901
      @davidst-jacques5901 5 หลายเดือนก่อน

      @@geek2gether469 ubuntu 22.04 server

    • @geek2gether469
      @geek2gether469  5 หลายเดือนก่อน +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.