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.
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. 👍
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.
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.
@@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
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.
@@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.
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.
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?
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.
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 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
@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.
Thank you so much. This tutorial is straight to the point and worked perfectly for me.
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.
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 😁😁😁😁😁
Just performed this step by step to move data from default to newly installed raid array. Worked perfectly(to much relief)!
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.
👍
Thank you for watching. Maintenance mode should do it but I can understand wanting to be safe. Please like, share and subscribe.
Another fantastic video! Have you thought of doing one on making a high availability next cloud install?
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.
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.
@@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
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.
@@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.
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.
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?
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.
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 ↗."
No I do not have the error. Did you get the error before the upgrade? Did you change anything in your .htaccess file?
@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
What Linux OS are you using? Debian, Ubuntu ?
@@geek2gether469 ubuntu 22.04 server
@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.