This video is to share how to set up NextCloud on Ubuntu and change the data folder to NFS for better flexibility and performance. This step-by-step guide covers everything from downloading NextCloud to configuring Apache and setting up NFS. Perfect for those looking to implement a two-tier architecture for their NextCloud instance.
Commands Used:
mkdir nextcloud
cd nextcloud/
wget https://download.nextcloud.com/server...
apt install unzip
unzip latest.zip
ls
sudo cp -r nextcloud /var/www
sudo chown -R www-data:www-data /var/www/nextcloud
nano /etc/apache2/sites-available/nextcloud.conf
a2ensite nextcloud.conf
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
a2enmod setenvif
Satisfy Any
service apache2 restart
ip a
clear
service apache2 restart
ip a
a2enmod ssl
a2ensite default-ssl
service apache2 reload
chown -R www-data:www-data /var/www/nextcloud/
nano 50-cloud-init.yaml
sudo netplan apply
sudo apt install nfs-common
sudo mkdir -p /mnt/nfs_share
sudo nano /etc/fstab
192.168.255.219:/mnt/TN219/ncstorage/ /mnt/nfs_share nfs defaults 0 0
sudo mount -a
systemctl daemon-reload
sudo mount -a
sudo mkdir -p /mnt/nfs_share
sudo chown -R www-data:www-data /mnt/nfs_share
sudo chmod 750 /mnt/nfs_share
sudo cp -a /var/www/nextcloud/data/. /mnt/nfs_share/
sudo -u www-data php /var/www/nextcloud/occ files:scan --all
sudo systemctl start apache2
Hashtags
#NextCloud
#Ubuntu
#NFSMount
Watch video Master Nextcloud Setup in Minutes 2024 : A Beginner’s Guide online without registration, duration hours minute second in high quality. This video was added by user Francis Techworld 02 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 175 once and liked it 2 people.