How to Install Nextcloud Hub 21 on Ubuntu 20.04 - Apache, MySQL, and PHP Configuration

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • Complete guide on how to install Nextcloud Hub 21 on Ubuntu 20.04. I explain how to configure Apache and how to set up a MySQL user and database for Nextcloud Hub 21. I also walk through common security & setup warning issues that often come up when installing Nextcloud. Finally, I explain how to properly configure PHP, set up a cronjob, ONLYOFFICE, and SMTP.
    This video is part of my ultimate home server tutorial video series!
    Part 0: 10 GIGABIT Ryzen Home Server Build: • Ultimate 10 GIGABIT Ry...
    Part 1: How to Install Ubuntu Server 20.04 LTS from USB: • The Home Server Projec...
    Part 2: How to format and partition hard drives: • How to Partition, Form...
    Part 3: How to secure a Linux Home Server: • How to Secure a Linux ...
    Part 4: How to set up ZFS RAID 10 on Ubuntu 20.04: • How to set up ZFS RAID...
    Part 5: You are here :)
    Part 6: How to Install Bitwarden on Ubuntu 20.04: • How to Install Bitward...
    Timestamps:
    00:00 How to Install Nextcloud Hub on Ubuntu 20.04
    01:38 Install Apache and MySQL
    03:06 Set up MySQL Nextcloud database
    05:45 Download and Install Nextcloud
    07:13 Configure Apache for Nextcloud
    11:05 Set up a static local IP address
    12:04 Finalize Nextcloud installation in browser
    12:59 Troubleshoot Nextcloud installation issues
    13:15 Rise PHP memory limit for Nextcloud
    14:11 Configure ACPu memory cache
    15:18 Fix default phone region set
    15:33 Fix /.well-known/caldav resolve issues
    16:39 Fix php-imagick issues
    17:30 Set up a cronjob for Nextcloud
    18:29 Nextcloud onlyoffice setup
    19:35 How to set up SMTP
    🎵 Music courtesy of Epidemic Sound: www.epidemicsound.com/referra...
    💻 Gaming Setup: amzn.to/2E67AUG
    📷 Production Gear: amzn.to/2VhbShO
    📝 Blog: techguides.yt
    👕 Merchandise: teespring.com/stores/tech-guides
    🐦 Twitter: / techguidesyt
    📺 Twitch: / speedbre4ker
    🎧 Discord: / discord
    #Nextcloud #Ubuntu #TechGuides
  • НаукаНаука

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

  • @TechGuides
    @TechGuides  2 года назад +7

    If you encounter issues with APCu or with the cronjob after updating to Nextcloud 21.0.3 then check out this video on how to setup Redis as memcache for Nextcloud: ruclips.net/video/8JVhRtArovg/видео.html

    • @ShOookYx
      @ShOookYx 2 года назад +1

      ob for apache2.service failed because the control process exited with error code.
      See "systemctl status apache2.service" and "journalctl -xe" for details.

    • @ShOookYx
      @ShOookYx 2 года назад +1

      Job for apache2.service failed because the control process exited with error code.
      See "systemctl status apache2.service" and "journalctl -xe" for details.

    • @shaundcunha7987
      @shaundcunha7987 2 года назад

      @@ShOookYx same

    • @shaundcunha7987
      @shaundcunha7987 2 года назад

      please answer

  • @vandenelsenkoen
    @vandenelsenkoen 3 года назад +7

    There it is! Thanks for making this one man! Going to follow it one to one, like I did with the old tutorial, which worked out great back then! You are a server hero man!

    • @TechGuides
      @TechGuides  3 года назад

      Haha thanks for your patience - this has been brewing for 9 months but now at least its compatible with the latest and greatest version of nextcoud ;)

    • @apexstreaming5659
      @apexstreaming5659 2 года назад

      @@TechGuides my 000-default.conf file is empty what do I do about that ?. do I fill in all the default lines of code and then add in what you put into the .conf file ?.

  • @SimpleGunner
    @SimpleGunner 3 года назад +8

    im saving this. if ever i get this deep into next cloud, this will be a life saver.

  • @janot928
    @janot928 3 года назад

    i struggled to set this up for so long... always got stuck on the admin setup with the truenas plugin. But now it's working. Thanks!

  • @harmannagra7961
    @harmannagra7961 Год назад

    Thank u so much for explaining everything, I saw 100 videos but no one explained like u. Thanks again

  • @stephencrescenti912
    @stephencrescenti912 2 года назад

    Absolutely amazing and concise tutorial! Great job and Thank you!

  • @Project314
    @Project314 3 года назад +3

    Thanks for making the tutorial. I've gone in circles doing a OMV-NCP installs on a PI 4, as well as OMV-NCP on a desktop computer. This Ubuntu installation seems the best of all of them. As for the tutorial, it covered just about everything that I had hoped that it would cover with the exception of some of the External Storage mapping. From a NC post, I found that apt-get install smbclient took care of the default SMB / CIFS problem, and I would guess that you'd want to address this issue considering the need to do samba sharing. It would be nice if you added some content or links to how you do Ubuntu drive networking or mounting in this Ubuntu/Nextcloud build. Also, it would be great if you added some of the DNS setup stuff. These settings are vexing and enigmatic to those of us that are not doing IT for a living. ;) Thanks, -Andrew

  • @GreyWolf_2408
    @GreyWolf_2408 2 года назад

    in germany your name is now "Ehrenmann"... thank you i had many struggle to install Nextcloud to Apache. Your solution worked now

  • @markstanchin1692
    @markstanchin1692 2 года назад

    Thanks for this I like that you explain each command and what it does and why ect. Thats huge!

    • @TechGuides
      @TechGuides  2 года назад

      Thank you! Happy to hear

  • @DBrianAshby
    @DBrianAshby 3 года назад +1

    Really good job you really helped out a lot on those security fixes!

  • @mathematicalninja2756
    @mathematicalninja2756 2 года назад

    I love you. Docker Failed. Snap failed. Your method worked.

  • @tonyl2ca
    @tonyl2ca 2 года назад

    This is the best tutorial in YT, easy to follow and real world setup step by step, right into the potins no waste time. If you don't agree, post the link here. haha

    • @TechGuides
      @TechGuides  2 года назад

      Thank you so much for your nice feedback!!

  • @buycheap50
    @buycheap50 2 года назад +1

    Thank you! You made that so simple.

  • @arvindellangopan143
    @arvindellangopan143 3 года назад

    Best video on Nextcloud . Thx man.

  • @danieldewindt3919
    @danieldewindt3919 Год назад

    Grate tutorial. Finaly a clear and complete explanation 😃
    Thanks

  • @ahmadaisabry
    @ahmadaisabry 3 года назад

    Thank you very much. I have learned a lot from your video and your blog.

  • @CapsLock33
    @CapsLock33 2 года назад

    wow thank you for this video!

  • @laszloperesztegi
    @laszloperesztegi 2 года назад

    Thank you. Well done. Professional video.

  • @GaryTruesdale
    @GaryTruesdale 2 года назад

    Really good.

  • @geoffreyhuang3494
    @geoffreyhuang3494 2 года назад

    Thank you for this guide, it's awesome!!!

  • @elcaballopapi
    @elcaballopapi Год назад

    Great tutorial

  • @SMLP
    @SMLP 3 года назад +2

    The timing on this video could not have been better (was just about to get my head around nextcloud) 👍🏻

  • @kote315
    @kote315 2 года назад

    Thank you. I've set up nextcloud several times in different ways (mostly using nextcloudpi), but your video was still very helpful. I have now set up nextcloud (on debian), subdomains, reverse proxy and ssl. I think a lot of users have noticed that the performance out of the box is not very high. Maybe you can make a video on how to fix this? I installed php-fpm and tweaked the settings for myself; looks like it got better. Also, many users may have problems with large files, it would be great to talk about this topic as well.

    • @TechGuides
      @TechGuides  2 года назад

      Awesome!
      Do you mean Nextcloud is not very performant? In terms of what?

    • @kote315
      @kote315 2 года назад

      @@TechGuides 1. Generation of web pages on the server side. Perhaps on powerful hardware this happens almost instantly, but on weaker hardware it can be accelerated a little by changing php settings. I think it's also worth touching on the topic of php 8.
      2. Working with files. For example, when uploading large files, they are first split into parts (chunks), then merged back. This means copying (not moving) large amounts of data. When both folders are on the same physical disk, the process is very slow. The solution is to distribute these folders on different drives. But at the same time, it is desirable that trashbin is located on the same disk as other user's files files. At first I tried to use symbolic links but it didn't work. So I had to use some mounting tricks. In general, it works more-less fine now, but there are some errors when emptying the trash, so far I can not figure out why. It also works well when there is only one user, but if there are several users, it is more difficult to do.
      3. Generating previews for images. First, the creation of previews must be configured separately. Secondly, the built-in generator, as far as I can see, uses only one thread. Perhaps there are some alternative solutions.

  • @donwhite4374
    @donwhite4374 3 года назад

    EXCELLENT Work !!! Thank You...

  • @ingenieriayencofradossas
    @ingenieriayencofradossas 3 года назад

    ¡Excelente, gracias!

  • @magisterclassicus3473
    @magisterclassicus3473 3 года назад

    Thanks man!!

  • @aloricmusicforkids
    @aloricmusicforkids 10 месяцев назад

    God bless you bro!

  • @fbnews2049
    @fbnews2049 3 года назад

    Very Good 👍

  • @indigo2061
    @indigo2061 2 года назад +2

    OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

  • @Broly_1
    @Broly_1 3 года назад

    I'm using it based on your previous video, using Ubuntu snap, everything works good, but I feel like it could be a bit faster to load ,will try to enable cache and see if it helps, thank you.

  • @sowkalidou9329
    @sowkalidou9329 3 года назад

    Exellent Thanks you.

  • @chrissaji6988
    @chrissaji6988 3 года назад

    Thank you so much

  • @francoisdomergue6566
    @francoisdomergue6566 3 года назад

    thanks for this awesome guide,
    Do you think this could be done via WSL ? Or a VM with linux is far better?

  • @srtsteele7636
    @srtsteele7636 2 года назад

    Hi I have a question regarding granting access to the nextcloud instance to folders on my Ubuntu server i.e pictures folder. So I can auto backup files on nextcloud to existing ubuntu folders

  • @johanwences1382
    @johanwences1382 Год назад

    Muchas gracias!, funciono todo perfecto y de gran ayuda su blog.

  • @tutorialesJJ
    @tutorialesJJ 3 года назад

    I love you
    thanks

  • @erix321
    @erix321 2 года назад

    haha me ghört mega nid das du schwizer bisch, btw super video !!

  • @Yofud
    @Yofud 2 года назад +1

    I think you could've elaborated on the "setting up a static local IP address" section more. Is the server machine on my router/network the current ubuntu build we are configuring used in the video? Or is that something configured in another video? I set the DNS to static on my router and machines that I'm using for Cloudfare. But I don't see the GUI that you have on that section. Please advise.

    • @TechGuides
      @TechGuides  2 года назад

      You need to set up the static IP address in your router's configuration. That will look differently with each router.

  • @cristobalortizortiz
    @cristobalortizortiz 2 года назад

    great best tutorial i had found now the question is for redundancy to use zfs or btfs o r what ever before we do the server install :p

  • @mirafu3481
    @mirafu3481 3 года назад +5

    Thank you for your great tutorial! What I am missing: how do I embed my own domain so that it works? What do I have to consider? (Port shares, certbot etc.) In addition: how do I set up that it redirects directly to https?

    • @seaofcuriosity
      @seaofcuriosity 2 года назад +1

      Thats what is not found on youtube right now !

    • @snowysysadmin59
      @snowysysadmin59 2 года назад

      So my best answer i can give you, is watch other tutorials on NGINX (such as how to reverse proxy proxmox) and incorporate that into next cloud, its all the same setup really.

    • @xssmoke7343
      @xssmoke7343 Год назад

      Have you found a solution?

    • @mirafu3481
      @mirafu3481 Год назад

      @XS Smoke i dont remember anymore. I used a new tutorial and it works.

  • @neilbaldwin7701
    @neilbaldwin7701 2 года назад

    Hi. Thanks for one of the best and clearest tutorials to get NC working on an Ubuntu server. I've got everything working great now after many failed attemps before I watched your video.
    However I'm still unable to setup my OSX Calendar via CalDAV to use my NC calendar. I've tried every combination of the server path I can think of and it still says 'Unable to verify account name or passowrd'. My NC installation passes the self-tests for .well-known setup so I can't figure out where it's failing. It doesn't help that Apple have very poor error reporting in these apps!

  • @krishnillal2286
    @krishnillal2286 Год назад

    after sometime i get an issue where client nextcloud app will get disconnected and will not connect back. i researched but but couldnt find anything. so i formatted the machine and then setup everything again. after doing this it worked for 2 days and samething happens. please advice what could be the issue.
    thanks
    Krishnil

  • @yourpcmd
    @yourpcmd 2 года назад

    Followed up until 15:55 then get this.
    An unhandled exception has been thrown:
    OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

  • @henrobhd
    @henrobhd 3 года назад +2

    idk what this is but I like it

    • @henrobhd
      @henrobhd 3 года назад +1

      also please updated warzone and Cold War settings

    • @TechGuides
      @TechGuides  3 года назад +1

      This is part of my home server tutorial series - I don't only do gaming videos ;) Yup I'm trying to get an updated cold war FPS guide out soon!

  • @michaelstrauss7723
    @michaelstrauss7723 Год назад

    I installed NC and my NC cleints on my windows computers pauses for 3 seconds before scanning again. This is way too fast. Is there any way I can slow this down? I know its supposed to scan whenever there is a file change but nothing is being changed or accessed that I am aware of. Do you know of a way I can find out if something is being accessed wtihout my knowledge? maybe that will help. Thanks

  • @yuizen
    @yuizen 2 года назад

    Hi, I'm getting an error "cURL error 60: SSL certificate problem: unable to get local issuer certificate" installing onlyoffice. I have search everywhere and I can't still figure out how to fix it. I hope you can help me.

  • @kashyapshah7999
    @kashyapshah7999 2 года назад

    Do we need to keep the server that will be my personal laptop to be on for 24 x 7?

  • @Arben40
    @Arben40 2 года назад +1

    Thanks for the tutorial! I am getting a "The PHP module "imagick" is not enabled although the theming app is. For favicon generation to work correctly, you need to install and enable this module." warning, I've tried removing imagemagick-6-common and php-imagick and then installing imagemagick and php-imagick again, but that didn't change anything

    • @TechGuides
      @TechGuides  2 года назад

      I get the same error message and unfortunately also haven't been able to fix it yet

  • @BrianThomas
    @BrianThomas 2 года назад

    @Tech Guides I loved this video. Thank you very much for putting this together. I'd like to add some redundancy and self-healing. I'm thinking about installing Docker Swarm with Nextcloud. Do you think you'd be willing to do a video on that?

    • @TechGuides
      @TechGuides  2 года назад +1

      Appreciate it! I haven't deployed nextcloud on docker so I don't have any experience to share I'm afraid

    • @BrianThomas
      @BrianThomas 2 года назад

      @@TechGuides I think installing Nextcloud ☁️ in a docker container might be a little quicker because everything you need is in the container. You just need to run it and setup your volume

    • @TechGuides
      @TechGuides  2 года назад

      Sure I'm familiar with Docker but haven't used it for Nextcloud

    • @BrianThomas
      @BrianThomas 2 года назад

      @@TechGuides IMO I thought this was a very straightforward way of explaining what docker is, and we one should give it a go. ruclips.net/video/wyhBKlcVUW8/видео.html

  • @kavithak1138
    @kavithak1138 2 года назад

    Hi can you help me setup nextcloud using docker-compose file step by step.

  • @sheriff9616
    @sheriff9616 3 года назад

    Apache2 status says my server is active but there is no connection in browser, should I just start from scratch?

  • @ebiscaia
    @ebiscaia 2 года назад

    Hi mate,
    Can you make a tutorial of how to upgrade Ubuntu preserving the Nextcloud installation? Or how to fix some php issues after moving from one version to another. After upgrading Ubuntu I started having some 503 problems and decided to reinstall Nextcloud but better if there is a safe way to do that or knowing how to correct the issues.
    Thanks

  • @iolsen94
    @iolsen94 2 года назад

    Are you going to release a guide to add SSL, Reverse Proxy, and remote access?

  • @revoltpoa
    @revoltpoa 2 года назад

    hi very good video, will you be able to make one by installing libresign. in the same it is requested to install java, cfssl, and jsignpdf. please

  • @snipegod5157
    @snipegod5157 4 дня назад

    Thank you that really helpful but do you not need to change any database configurations aswell

  • @mauwiks
    @mauwiks Год назад

    Hey mate. I am getting "access forbidden by server" using cpanel hosting with installing nextcloud.

  • @FernandoParmezaniOficial
    @FernandoParmezaniOficial 2 года назад

    HI, how to confgure Https?

  • @amarnathjaiswal7907
    @amarnathjaiswal7907 2 года назад

    Thank you for this tutorial. How to enable HTTPS?

  • @Snowbow97
    @Snowbow97 2 года назад

    Doing everything as described and can not log in NextCloud!
    setting everything as described and I eventually reach first nextcloud page, where I need to type my mysql username, database and I type as well my initial nextclout username and password. All good - waiting about 10 min to initialize everything and then it promts me to login in nextcloud and this is where I am stucked. The username I just enteres and the password just don't work and I can not log in. What shoul I do? Tried twice the installation and the result is the same.

  • @jacksonrussell6277
    @jacksonrussell6277 2 года назад

    Good day. Doing installation by this tutorial in march of 2022 and having trouble with cron job. it doe's not seem to be updating every 5 min. I did it exactly like in video. Running it on ubuntu20.04. Can you help please ? Thank you.

    • @jacksonrussell6277
      @jacksonrussell6277 2 года назад

      find solution. "For some configurations, it might be neccessary to append --define apc.enable_cli=1 to the cron command. Please refer to Memory caching (section APCu)."

  • @kthfriend
    @kthfriend 3 года назад

    Hi Roman,
    Thanks for the tutorial. I will complete my installation tonight.
    I have a running nextcloud instance version 15.04 and I would like to migrate the users and data across to this version.
    Is there an "easy" way to do this that you know of?
    Unfortunately I can't use the upgrade path.

    • @TechGuides
      @TechGuides  3 года назад +1

      I'm afraid I don't know how to upgrade between different versions of NC. Maybe one can simply export the mysql database and re-import it - but I have not tested this. I could actually do this, since now I have a test server to play around with. If it turns out to be easy I will update my reply :)

    • @kthfriend
      @kthfriend 3 года назад +1

      @@TechGuides thanks. It is appreciated.

  • @evankirschenmann4653
    @evankirschenmann4653 2 года назад

    What are the specs of your home server? Do you have a video about it?
    Edit: I read the description. I'll check it out at some point! Super cool.

  • @sibu7
    @sibu7 3 года назад

    Is there a difference between Nextcloud Hub and Nextcloud (Files)? I installed Nextcloud using the web installer and now I don't have any calendar, contacts, chat, etc. I only have Files and Photos. Can I just install those apps manually? Or should I have installed Nextcloud differently?

    • @waffleMccoy
      @waffleMccoy 3 года назад

      You should be able to install those apps manually from nextcloud.

  • @heavenly_emperor
    @heavenly_emperor Год назад

    excuse me sir I want to ask how to configure setup from
    You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly. cause i not understand

    • @TechGuides
      @TechGuides  Год назад

      I'm sorry I don't understand quite your problem. The Apache Reverse Proxy setup is explained at 7:13 in this video

  • @handase7540
    @handase7540 2 года назад

    Dear, thank you for every thing but i have question in min 9 when you say yourdomain what can i write

    • @TechGuides
      @TechGuides  2 года назад

      You can skip this part if you don't already own a domain name. Or use dynu to set up a free one like I showed in this video: ruclips.net/video/wCJjiHp0d0w/видео.html

  • @srtsteele7636
    @srtsteele7636 2 года назад

    Hi have an error here during setup:OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?) I have nextcloud installed on Ubuntu server 20.04 LTS.

    • @TechGuides
      @TechGuides  2 года назад

      I've got an entire video dedicated on how to fix this: ruclips.net/video/8JVhRtArovg/видео.html

  • @sisco22
    @sisco22 2 года назад

    Awesome tutorial! Thanks for posting it! I got my server setup and am trying to find the tutorial of what you need to enable or set in Nextcloud to make it accessible from the internet? Do you have a tutorial for that? I did set my custom domain name in the 000-default.conf and config.php, have my domain forwarded and firewall rules setup in my router and the A record in my domain hosting DNS. What else do I need to do? Thanks again!!

    • @TechGuides
      @TechGuides  2 года назад +1

      I just released a video on exactly that: ruclips.net/video/wCJjiHp0d0w/видео.html you should be able to adapt the content to any domain hosting service

    • @sisco22
      @sisco22 2 года назад

      @@TechGuides Thanks! I'll check it out!

  • @asonzeasonze4873
    @asonzeasonze4873 2 года назад

    Hey Hello, love your work, is it possible to make a video to install Nextcloud with aaPanel? or can i use this metod?

  • @robesk938
    @robesk938 2 года назад

    thanks for your tutorial. All were brilliant!
    Have you had a chance to think about backup and restoring the data of nextcloud in case of OS crashing?

    • @TechGuides
      @TechGuides  2 года назад +1

      Appreciate it! I'm currently running a simple backup shell script that extracts the NC database to another drive and sends it via rsync to another server. Nothing fancy really ;)

    • @robesk938
      @robesk938 2 года назад

      @@TechGuides MySQL doesn't contain all the information about nextcloud server. We have configurations. which also needed to backup. I think it could be more complicated than it looks like

    • @TechGuides
      @TechGuides  2 года назад +1

      Yes I also backup the nextcloud folder (including all apps and configs) but without the data dir, naturally ;)

    • @robesk938
      @robesk938 2 года назад

      @@TechGuides Please, do not stop sharing your experience.
      By the way, I'm Roman, too))

  • @luizdanin
    @luizdanin 3 года назад

    Great my friend, i will install nextcloud on FreeBSD 12, PostgreSQL 12 and Apache 2.4.46. Do you think this is good?

    • @SirHackaL0t.
      @SirHackaL0t. 3 года назад

      @Dio Titus Perhaps Luiz is using FreeBSD as his OS. 🤷‍♂️

  • @ukgimenes
    @ukgimenes 3 года назад

    Having trouble to nextcloud recognize my externa hd, I alredy activated the external storage app but still not working

    • @TechGuides
      @TechGuides  3 года назад

      Whats not quite working, i.e. what error messages do you get? Did you copy all files, including the hidden files, to your external HD?

  • @technicaladmin6848
    @technicaladmin6848 2 года назад +1

    "Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters.`"
    Help?

    • @RyanPursifull
      @RyanPursifull Год назад

      found solutions but my comments were deleted

  • @jwells6904
    @jwells6904 3 года назад +6

    I would appreciate a guide on setting up Ubuntu and nextcloud on an SSD and then have my data stored on a two Raid hard drives.

  • @francescogiuseppemorabito4276
    @francescogiuseppemorabito4276 3 года назад

    Hi, wonderful guide as always, but I am getting some troubles when setting up apps as COLLABORA and ONLYOFFICE. Once installed, I went checking the "Document Editing Service address" and there is the correct address, but nextcloud says: Error when trying to connect (Host violates local access rules)... And I receive the same error when attempting to open the welcome doc file. Do you have any suggestion?? Cheers,

    • @TechGuides
      @TechGuides  3 года назад +1

      I don't use collabora because it was always a bit pain to set up. With onlyoffice, you can simply install the app "Community Document Server" and "ONLYOFFICE" and it should work

    • @yuizen
      @yuizen 2 года назад

      @@TechGuides I tried installing document server then onlyoffice and I'm getting an error "cURL error 60: SSL certificate problem: unable to get local issuer certificate". Sorry for double comment. Just desperate of a help to fix it. Can't seem to find a fix on it. Tried every suggestions I can find.

  • @goddrago
    @goddrago 2 года назад

    ¡Gracias!

    • @TechGuides
      @TechGuides  2 года назад

      Wow thank you so much :)

    • @goddrago
      @goddrago 2 года назад

      @@TechGuides You earned it! This tutorial is clear and you solve all the rare issues you get from the beginning!

  • @SirHackaL0t.
    @SirHackaL0t. 3 года назад +1

    Would you ever use docker (or something similar) to install nextcloud?

    • @TechGuides
      @TechGuides  3 года назад +1

      Im not a big fan of docker especially for nextcloud but I will need to use it for an upcoming project

    • @SirHackaL0t.
      @SirHackaL0t. 3 года назад

      @@TechGuides any particular reason for not liking docker?

  • @KennyWebster
    @KennyWebster 3 года назад

    I got this error how can I fix it? Header always set Strict-Transport-Security “max-age=15552000; includeSubDomains”. Your videos are awesome by the way.

  • @paulpanikowski4710
    @paulpanikowski4710 3 года назад

    Great video until I received this error "Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES)". Any ideas?

    • @TechGuides
      @TechGuides  3 года назад

      Did you try to re-do the MySQL setup? Sounds like the database is not set up properly or you can't connect to it (maybe a firewall issue too? make sure to open the mysql port 3306 in ufw)

  • @manishshekhar4139
    @manishshekhar4139 3 года назад

    Getting this error while setting up Onlyoffice "Error when trying to connect (Host violates local access rules)"

  • @srtsteele7636
    @srtsteele7636 2 года назад

    Anyway of changing nextcloud instance login credentials or resetting?

    • @TechGuides
      @TechGuides  2 года назад

      Probably if you change them in your database. Did you google?

  • @epicgaming5116
    @epicgaming5116 2 года назад

    After
    *sudo -u www-data php occ maintenance:update:htaccess
    I get this message : An unhandled exception has been thrown:
    OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?) what did I do O.o

    • @epicgaming5116
      @epicgaming5116 2 года назад

      And after watchin and doing the comment u pinnend I now get this message:
      An unhandled exception has been thrown:
      ParseError: syntax error, unexpected ';', expecting ')' in /var/www/nextcloud/config/config.php:32
      Stack trace:
      #0 /var/www/nextcloud/lib/private/Config.php(69): OC\Config->readData()
      #1 /var/www/nextcloud/lib/base.php(150): OC\Config->__construct()
      #2 /var/www/nextcloud/lib/base.php(575): OC::initPaths()
      #3 /var/www/nextcloud/lib/base.php(1087): OC::init()
      #4 /var/www/nextcloud/console.php(48): require_once('/var/www/nextcl...')
      #5 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

    • @epicgaming5116
      @epicgaming5116 2 года назад

      and on that video there was an update again that we had to troubleshoot it with ur blog... I did the re-install of the image and now nextcloud is still down with error message and I still can't put it the command...

  • @georgepitaru
    @georgepitaru 2 года назад

    can this tutorial be successfully folwed and implemented on Ubuntu Desktop instead of Server? Not sure what the benefits of the server version of Ubuntu are

    • @TechGuides
      @TechGuides  2 года назад

      Yes absolutely! The only difference between server and desktop is the GUI as far as I know. I don't have a monitor connected to my server so it doesn't make sense to run all the desktop related software

  • @morphiusphobia
    @morphiusphobia 3 года назад

    Great vid.
    Followed your guide and it works great.
    But when i put it behind my nginx reverse proxy server login breaks using Chrome.
    The login button keeps on spinning and doesn't redirect to the dashboard.
    When i refresh the page (F5) the dashboard will load and i'm logged in. It work fine using Firefox.
    It looks like a common problem, but i'm not able to fix it.
    Could you help/make a vid how to fix this problem?
    Many thnx

    • @TechGuides
      @TechGuides  3 года назад

      Thanks! Im afraid I have absolutely zero experience with using nginx. Id guess that this sound like a proxy setup issue - did you try the official nextcloud proxy settings?

  • @iancampbell4582
    @iancampbell4582 3 года назад

    Have any of the steps or command lines changed for Nextcloud 22 and PHP 8.0?

    • @TechGuides
      @TechGuides  2 года назад

      I haven't tried Nextcloud with PHP8 yet but I'd guess not much changed

  • @WifiJedi
    @WifiJedi 3 года назад

    I tried installing nextcloud via the snap a few months back with no luck getting it to work. I haven't touched it since, do I need to try and uninstall/clear the old installation before attempting this method? If so is there a clean way to uninstall something that was installed via a snap?

    • @TechGuides
      @TechGuides  3 года назад +1

      You dont need to do anything special with regard to your snap nc install. Just do "sudo snap remove nextcloud" and it and all requirements will all be gone. You can then start installing NC using this tutorial

    • @WifiJedi
      @WifiJedi 3 года назад

      @@TechGuides Awesome, thank you!

  • @dumbledoreawesome
    @dumbledoreawesome 3 года назад

    Hi. Thanks for sharing this great setup. If you don't mind, how to avoid ransomware from syncing to nextcloud? As we know, nextcloud has its own application that can automatically syncing files between client and server. What if client has been infected by ransomware files and it accidentally syncing all files to nextcloud. Any ideas?

    • @TechGuides
      @TechGuides  3 года назад +1

      You're welcome! Thats a good question and honestly I haven't really given this much thought but I don't think that there are any measures in place to make sure that no maliciously encrypted files will get synced to Nexcloud... I will have to investigate for a bit :)

    • @waffleMccoy
      @waffleMccoy 3 года назад

      There's an antiransomware app you can install on nextcloud, never tried it.

  • @geistreichtube
    @geistreichtube Год назад

    Well, to be fair... you seem to know your shit!
    Thanks for passing on the knowledge! 👌🏻

  • @daan2051
    @daan2051 2 года назад

    Thanks for your gread tutorial! But how can I change ownership of a file to someone else? I tried in the settings, but it doesn't show other users there.

    • @TechGuides
      @TechGuides  2 года назад

      Did you already create other users? I'm not sure you can simply change ownership to someone else though, you can share files with other users such that they can fully edit them

    • @namename8986
      @namename8986 2 года назад +1

      chown

  • @spetauskas
    @spetauskas 2 года назад

    I would like to get this hole procces explained for total begginers :D because from 1:38 I have no idea what's going on :D what kind of window is that :D

  • @apreturns
    @apreturns 2 года назад

    It keeps complaining that it does not satisfy the current policy requirements on the password part

  • @waylon2002my
    @waylon2002my 2 года назад

    possible to have guideline for nextcloud located in zfs pool with raidz, cache and slog ?

    • @TechGuides
      @TechGuides  2 года назад

      Hey man! I'm afraid I dont' have a use case for this at the moment and thus won't be able to do an educated video about it

    • @waylon2002my
      @waylon2002my 2 года назад

      @@TechGuides thanks for the feedback

  • @DBrianAshby
    @DBrianAshby 3 года назад

    The only security issue I see is nextcloud does not auto sign out after a certain amount of activity. Is there any way to make it do so after 10 minutes or so if no activity occurs? Since users can be lazy about signing out. If I could make it happen automatically that would be great. Any help would be appreciated!

    • @TechGuides
      @TechGuides  3 года назад

      I'm not aware of a simple way to do this - would require some serious modding which I don't feel comfortable to do nor suggest

    • @waffleMccoy
      @waffleMccoy 3 года назад +1

      I found this, I'll give it a try first thing on Monday.
      In your config/config.php (EDITTING THIS FILE THE WRONG WAY WILL RENDER YOUR NEXTCLOUD INSTALLATION INACCESIBLE UNTIL YOU REVERT THE CHANGES, MAKE SURE YOU BACK IT UP BEFORE MAKING CHANGES IF YOU DON'T KNOW WHAT YOU'RE DOING)
      'session_lifetime' => 60 * 60 * 24,
      The lifetime of a session after inactivity.
      The maximum possible time is limited by the session.gc_maxlifetime php.ini setting which would overwrite this option if it is less than the value in the config.php
      Defaults to 60*60*24 seconds (24 hours)
      docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html

  • @kokunaijin
    @kokunaijin 2 года назад

    What happened about the nextcloud data folder? You said not to worry about it and then never explained how to move it.
    Thank you for the video.

  • @jayachandrareddy3400
    @jayachandrareddy3400 9 месяцев назад

    It’s showing please update your php version when I try to open it from my ip address. I upgraded my php to 8.1 still it’s showing the same.

    • @TechGuides
      @TechGuides  9 месяцев назад

      You will still need to tell Apache to use the new version 8.1 I'm thinking about making a video about the process because its actually quite complicated and I also struggled to get it working right away

  • @waffleMccoy
    @waffleMccoy 3 года назад

    do a tutorial on how to host several nextcloud instances on the same machine, PLEASE

    • @TechGuides
      @TechGuides  3 года назад

      You could just install them to different directories and point the different instances to different mysql databases. Then all you need are some subdomains pointing to the different directories and that should be it. I think thats fairly straightforward?

    • @waffleMccoy
      @waffleMccoy 3 года назад

      ​@@TechGuides Interesting, I'll give that a try next week. THanks.

  • @blacktipmedia2519
    @blacktipmedia2519 3 года назад

    7:52 when i type this command it tells me there is no such directory or folder? has anyone else had this issue?

  • @strangegriffin
    @strangegriffin 3 года назад

    I am using ubuntu 18.04.5 and I was thinking about updating to 20.04. I have nextcloud on my server now. How hard would it be to transfer all the data and user's? I ask because I am not using MySQL right now. I used your video on nextcloud for 18.04 ubuntu server using snap. If you could make a video on how to update the system and move the dir to use with MySQL database. I went and installed the desktop on the server so I have a gui to use not just terminal.

    • @TechGuides
      @TechGuides  3 года назад

      I would look up a tutorial that explicitly goes over how this is done. I personally don't have any experience doing this but I assume it should be quite simple

    • @strangegriffin
      @strangegriffin 3 года назад

      @@TechGuides ok thank you

  • @vedantbhoyarxd
    @vedantbhoyarxd 3 года назад +1

    Simply tell me how to remvoe index.php from URL as it makes my URL ugly

  • @tomaskner9537
    @tomaskner9537 2 года назад

    Hi, will it work if I have an Ubuntu server set up in Virtual Box ?

    • @TechGuides
      @TechGuides  2 года назад

      Not sure about how to access applications running inside a virtual box, but the install should be exactly the same

    • @tomaskner9537
      @tomaskner9537 2 года назад

      @@TechGuides I'm not finished yet (because of my IBM Lenovo T500 with Core2duo 😅) but so far it works when VB is switched to Bridged networking.
      Thank you for your great tutorial and fast response, before I found this video I lost cca. 2 days with another video, only to start from scrap with yours 😀.

  • @rowey85
    @rowey85 3 года назад

    Hello I have followed and everything so far has worked until the 'sudo -u www-data php occ maintenance:update:htaccess' point and am given the message 'n unhandled exception has been thrown:
    OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)'
    I cant seem to find a solution as everything I try seems to say that occ is not enabled.
    Thanks for the video but any help would be good.

    • @TechGuides
      @TechGuides  3 года назад +2

      Yes this is because of a new version of nextcloud that seems to break apcu compatibility. I will try to release a video this weekend on how to fix it (still havent found a good solution yet)

    • @ryanwales9399
      @ryanwales9399 3 года назад

      @@TechGuides Same issue here :)

    • @rowey85
      @rowey85 2 года назад

      @@TechGuides sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair
      This is a work around. I found it on chat on github regarding the upgrade to the new Nextcloud.
      Below is the link for you to read.
      github.com/nextcloud/server/issues/27781

    • @TechGuides
      @TechGuides  2 года назад

      Yes you can enable CLI for APC as a workaround. I will switch directly to redis for caching though, think that's a more elegant solution

    • @velvetcoding
      @velvetcoding 2 года назад

      Same problem :(