How to Set Up Nextcloud on Ubuntu 24.04 LTS

38,475
0
Published 2024-05-31
Nextcloud is a powerful server application that enables you to take full control over your data, and roll out your very own cloud solution! In this video, Jay will go over the entire process of setting up Nextcloud.

Brand New Ansible Course Available
Check out the new course on Udemy! It covers everything you need to get started with Automation.
learnlinux.link/ansible

5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
learnlinux.link/lpi-voucher

Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
merch.learnlinux.tv/

Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
learnlinux.link/patron

Become a Channel Member
Show your support for Learn Linux TV here on YouTube and get access to exclusive perks!
learnlinux.link/member

Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
ubuntuserverbook.com/

Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
learnlinux.link/amazon

Grab an awesome Pi-powered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
learnlinux.link/tinypilot

Note: Royalties and/or commission is earned from each of the above links

Time Codes
00:00 - Intro
01:56 - What You'll Need to Get started
04:49 - Downloading Nextcloud via wget
05:28 - Creating a non-root user
06:38 - Configuring the host name
07:37 - Installing updates via apt
08:49 - Downloading the Nextcloud zip file
09:36 - Setting up our MariaDB Database
15:08 - Installing Apache and PHP
18:26 - Installing Nextcloud's files
21:29 - Setting up Apache
23:49 - Setting Up PHP
27:09 - Enabling required Apache modules
28:12 - Setting up a Let's Encrypt certificate via certbot
30:50 - Navigating the Nextcloud Setup Wizard
32:05 - Resolving Nextcloud Warnings & Errors

Official Blog Post
Check out the following article for all the commands and configuration that were used in this video. ➜ learnlinux.link/nextcloud

Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible

Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv/
• Community ➜ community.learnlinux.tv/
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show/
• The Homelab Show Podcast ➜ thehomelab.show/
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-assistance

Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.

#Nextcloud #DevOps #Linux

All Comments (21)
  • @roadkill11000
    Great tutorial. I used CasaOS and installed NextCloud as a container from their "app store" then access it from outside the network via Tailscale. It was a lot easier and within my scope plus no domain name needed. Without a guide like yours I would be completely lost trying to install NC as a standalone. I always learn something new from your videos, thanks!
  • @spcenc1102
    Great channel, bought merchandise too. Setup is manageable. It's keeping all the updates correctly, and backups and restoring that is the challenge
  • @xenobis81
    I cannot thank you enough for this fantastic tutorial. I now have NextCloud running on my own hardware at home and it's sensational.
  • @replicant9611
    This is great tutorial, Jay. If you don't mind, I would like to request another chapter. Can you make a tutorial on how to automate this process with Ansible and/or Terraform? So that you can build immutable artefact and deploy it to the cloud provider?
  • @orodimusprime
    I always use your tutorials when installing nextcloud! also always wondered why nextcloud comes installed with errors out of the box
  • Thank you for your great work. I learned so much about Linux.
  • I’d love to use Nextcloud but every time I try to use this software it’s always a mess. It’s too difficult to install and very difficult to maintain for a home user. Not to talk about keeping it updated. And if something stop working there is no way to fix it unless you are a NASA software engineer
  • @weholmes5315
    Perfect timing! Setting up Nextcloud is my fun project for this weekend (after backing up my NAS). Let's gooooo😅
  • An excellent tutorial, as usual! I rarely find tutorials on YT as detailed and well explained. Curious what you recommend for background jobs. I changed the owner of config.php to root like you did, but learned that the cron jobs must be executed by the same user that owns config.php. Is it safe to run cron.php as root if you need cron jobs for a larger instance, or is it better to keep config.php owned by www-data in that case? Thanks for everything!!
  • @bruno-zl9qn
    Excellent video. It's not so often that I can follow a tutorial to install a piece of software, and exactly replicate on my machine. NOTE: ignore from 33:21 to 33:45 ('chown' command missing, but fixed right after). NOTE2: at 41:20, the occ command will fail (it does not show in the video). But the fix is right after.
  • @d3stinYwOw
    When we're on Ubuntu spree, refreshed MAAS setup would be awesome! Plus, would be great to show alternative to manual setup - using snap package. I use it personally at home and works great. It automatically sets up Nextcloud, MySQL, Redis etc.
  • Hello, Could you please make a system installation video integrated with cloudflare zero tunnel on Ubuntu for a machine in our home?
  • Hey, it would be great if you could do another tour of your office and show us what you use on a daily basis.
  • @devsiwon
    Thank you so much for this, nextcloud install through truenas scale is such a pain to setup dns/vpn...
  • @lambscaped
    Thankyou so much for your content, and as everybody is saying nice thumbnail, just to add it would be great if you can show how to riddle out of the cronjob error, is something that has keep me away of my nextcloud installation.
  • @fbifido2
    at the end did you undo the: 1. occ executable 2. unmod the apcu.ini file
  • @ts.432
    What would be the advantages of using NextCloud or CasaOS over a NAS server. I have OMV running, and I am pretty satisfied with that. However, when i was looking for an open source NAS, I stumbled upon these Cloud systems and became rather curious.
  • @sg96951
    Nice tutorial. Why not using nginx instead of apache?