Make Nextcloud fast! Full tutorial and server setup!

Sdílet
Vložit
  • čas přidán 31. 10. 2023
  • Nextcloud is a great system for setting up your personal cloud and sharing with friends. It can be frustrating when it is slow. Let's get nextcloud entirely setup and optimized for performance on your server!
    * PHP 8.3 is out. Nextcloud currently will NOT run on php8.3. Many required php packages for php8.3 are not out yet, such as intl, mysql, curl, and others*
    * This guide has been updated to specify installing php 8.2 packages, be sure you are running php8.2!*
    *Nextcloud 28 is out, it also wants you to install bz2 php extension*
    *sudo apt-get install php8.2-bz2*
    Server setup
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get install apache2 php8.2-fpm
    sudo nano /etc/apache2/sites-available/nextcloud.conf
    paste in the code from here:
    github.com/jhodak/linux-confi...
    sudo a2enconf php8.2-fpm
    sudo a2ensite nextcloud.conf
    sudo apt-get install imagemagick php8.2-imagick memcached libmemcached-tools php8.2-memcached php8.2-apcu mariadb-server php8.2-gd php8.2-mysql php8.2-curl php8.2-mbstring php8.2-intl php8.2-gmp php8.2-bcmath php8.2-xml php8.2-zip unzip smbclient
    sudo a2enmod headers rewrite mpm_event http2 mime proxy proxy_fcgi setenvif alias dir env ssl proxy_http proxy_wstunnel
    sudo a2dismod mpm_prefork
    sudo nano /etc/memcached.conf
    change 64 to 1024
    save and exit
    sudo nano /etc/php/8.2/fpm/pool.d/www.conf
    max_children = 80
    start_servers = 20
    min_spare_servers = 20
    max_spare_servers = 60
    uncomment these lines:
    env[HOSTNAME] = $HOSTNAME
    env[PATH] = /usr/local/bin:/usr/bin:/bin
    env[TMP] = /tmp
    env[TMPDIR] = /tmp
    env[TEMP] = /tmp
    save and exit
    sudo nano /etc/php/8.2/fpm/php.ini
    memory_limit = 1024M
    post_max_size = 512M
    upload_max_filesize = 1024M
    down in opcache settings:
    opcache.enable=1
    opcache.memory_consumption=1024
    opcache.interned_strings_buffer=64
    opcache.max_accelerated_files=150000
    opcache.max_wasted_percentage=15
    opcache.revalidate_freq=60
    opcache.save_comments=1
    opcache.jit=1255
    opcache.jit_buffer_size=256M
    save and exit
    setup MariaDB
    sudo mysql
    CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
    CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
    GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost';
    FLUSH PRIVILEGES;
    quit;
    cd /var/www
    sudo wget download.nextcloud.com/server...
    sudo unzip nextcloud-27.1.4.zip
    sudo chown -R www-data:www-data /var/www/nextcloud
    sudo systemctl restart apache2
    sudo systemctl restart memcached
    sudo systemctl restart php8.2-fpm
    open website and continue nextcloud isntallation on new website
    sudo nano /var/www/nextcloud/config/config.php
    grab the code to add from here:
    github.com/jhodak/linux-confi...
    save and exit
    sudo systemctl restart apache2 just in case.
    Your nextcloud should now be running optimally!
    *Optional but highly recommended*
    Enable OCC -- nextcloud command line function
    sudo nano /etc/php/8.2/mods-available/apcu.ini
    add the following line at the bottom:
    apc.enable_cli=1
    save and exit
    in nextcloud go to
    administration settings -- basic settings -- change from Ajax to Cron (recommended)
    if you want to test if cron is working
    sudo -u www-data php -f /var/www/nextcloud/cron.php
    if you see nothing it is working, if you get an error it is not working
  • Věda a technologie

Komentáře • 116

  • @FE-Engineer
    @FE-Engineer  Před 6 měsíci +1

    PHP 8.3 is out, but it currently will not work. I updated video description. Ensure you are getting and using php8.2 as well as only using php8.2 extensions (php8.2-curl, etc).

  • @Beversky
    @Beversky Před 7 měsíci +3

    Best video i found about Nextcloud server setup!

  • @toddselby443
    @toddselby443 Před 5 měsíci +1

    Just wanted to say thanks for your very helpful video. I kept trying to do this in docker and never got it to run right. Your videos and the show notes you provide are great. Look forward to more of your content. Ill be plugging your channel on Reddit.

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci +1

      Yea. My experience with docker is that it almost universally works. It just usually is not that great performance wise. :-/

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci +1

      I’m glad this helped :) thank you so much for watching!

  • @teenhype90210
    @teenhype90210 Před 4 měsíci

    Very good video. Keep producing content like this. Helped me a ton, and was the first time I've been able to get Nextcloud performing solid and fast, so THANK YOU.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      You are welcome! And yea, I understand. Nextcloud is not too bad but if you don’t do the optimizations it can be irritatingly slow. Thank you for watching! I’m glad it helped!

  • @ericprivett6430
    @ericprivett6430 Před 7 měsíci

    Excellent work!

  • @masoncnc
    @masoncnc Před 7 měsíci

    Fantastic accuracy and especially concise instruction!!! So many other vids secretly advertising for online services which we'd just keep using google if we were interested.
    got through everything except having a little admin rights issue logging in....can't seem to configure external storage.
    kudos!!!
    Edit: LoL had to scroll down on the left side to the admin section

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      What are you using for external storage?
      I have a separate physical device that is a NAS and I run a samba server on it. Then I connect it to Nextcloud so Nextcloud does server stuff and just connects to the NAS for its storage and I’ve liked that setup.
      But what are you wanting to use? I might be able to make a video about it depending on what it is.

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      Thank you so much for the kind words. I recorded this video like 4 times and wanted to make sure it was as clear and concise as possible but would just work.

    • @masoncnc
      @masoncnc Před 7 měsíci

      @@FE-Engineerthank, I've got an Ubuntu server with butchered smb.conf. so many recipes and getting smooth operation on home network is a challenge. Not working with nextcloud yet. Good video idea, getting them to work.

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      I did a video on setting up a samba server. :)

    • @masoncnc
      @masoncnc Před 7 měsíci +1

      @@FE-Engineer I'm a subscriber for sure. Got a vacation next week. I'll be in deep!!!
      Thanks

  • @andresvidoza
    @andresvidoza Před 7 měsíci

    Really good video. Im currently plotting on using MergerFS and Snapraid for both my 20tb drives. Instead of using a NAS, I have these drives intalled on my local Ubuntu Server. Do you know if I can use this setup as an external storage alternative for Nextcloud?
    Thank you!

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      You should be able to use anything that is mounted as storage and that Nextcloud has access to use.
      Alternatively if that storage space is made available as a network storage of some type (samba for instance) then again all you need to do is connect Nextcloud to it.
      I don’t see any reason why what you want to do will not work.

  • @PixelSheep
    @PixelSheep Před 3 dny

    thank you so much for your brilliant video! I have one small problem however - even when activating chron just like mentioned in the description it just does not seem to runn properly - I'm getting the error that no jobs have been run for x amount of hours - do you have any ideas on how to fix this? :)

  • @PixelSheep
    @PixelSheep Před 11 dny

    Thank you so much for this tutorial! Really easy to follow and worked like a charm!
    However I do have one quite big problem - when uploading files my nextcloud-install keeps going into maintenance mode - do you have any idea on what to do about this?
    Here are my arguably pretty low-end specs:
    Intel(R) Celeron(R) CPU N3010 @ 1.04GHz (2 cores)
    4GB Ram
    16GB SSD
    any help would be really really appreciated!

  • @royitoroy
    @royitoroy Před 7 měsíci +2

    wow thanks! it was the best tuto of install nextcloud... i made it in a proxmox lxc ct with turnkey core on it, with 3gb ram and 2 cores (i3-3225), to published to internet over my CGNAT i use a vps with wireguard and nginx and my domain in cloudflare with cdn, and my latency its 50~58ms and averithing opens "fast"... i will try with transfers later. i hope everithing will just be ok

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      Should be entirely fine. Just make sure you did not take all of your ram for things like memcached, opcache, etc. 512mb or so will still do great!
      Glad you got it all up and running. :)

    • @royitoroy
      @royitoroy Před 7 měsíci

      @@FE-Engineer thanks but you know? I have followed your video step by step and yes... Id saw that I had a lot of problems with the memory thats why i had to increase it to 3GB but I keep seeing some problems so I will take your the your advice and lower the memcache and opcache to 512, and if you could tell me what others changes I should apply to improve my nextcloud with my configuration I would appreciate it very much bro thanks

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      If you set memcached and opcache to use 512mb each. That’s 1G of your ram taken.
      Which still leaves 2G for system, php, etc. which should be plenty.
      Just remember with memcached and opcache. When you set that memory aside for those, they are not available for anything else.
      After you change settings just make sure to run
      Sudo systemctl restart memcached
      Sudo systemctl restart php-fpm
      So that the new changes take effect.

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      Also check your php.ini settings, I think 512 is also reserved for php. Again leaving 1.5G for system which should be good as well.
      But you can always tinker with the memory settings to suit your needs and fit your system appropriately.
      Restart appropriate services after you make changes to ensure they take effect.

    • @royitoroy
      @royitoroy Před 7 měsíci

      @@FE-Engineer thanks i will do everithing

  • @shaun7611
    @shaun7611 Před měsícem

    How about a Truenas Scale Nextcloud APP version setup? I have run into issues with larger than 10GB file uploads having to mess with chunk sizes etc etc would love to see a video on that. Thanks

  • @russhuang
    @russhuang Před 3 měsíci

    Wow great video! If I'm running nextcloud via truenas scale app any chance you know how I could apply any of these tweaks?

    • @FE-Engineer
      @FE-Engineer  Před 3 měsíci

      I have never used truenas scale. So it’s hard for me to be sure.
      If you have some sort of shell access you can do it exactly the same, but if there is no type of shell access then I’m not sure how you would be able to. A lot of things run Nextcloud from a docker container. And while it is likely possible, I am not a big fan of docker containers and don’t know how you could alter it to do these optimizations.

  • @DevilDriver665
    @DevilDriver665 Před 6 měsíci +1

    the first thing I do when installing nextcloud is looking at the security & setup warnings as there are often showing missing configs or false settings. also setting up occ is necessary to configure nextcloud down the road. in addition, setting up background job/cron job is another issue that needs to get fixed right at the beginning.

    • @FE-Engineer
      @FE-Engineer  Před 6 měsíci

      Setting up OCC is not strictly necessary. You can use things like the web updater without needing OCC. cron rather than Ajax is definitely a good call and something I do as well.

    • @FE-Engineer
      @FE-Engineer  Před 6 měsíci

      Ahh I’m silly. I forgot that to run cron you do have to install OCC

    • @FE-Engineer
      @FE-Engineer  Před 6 měsíci

      Updated description for occ and running cron.

  • @kingjamesalex
    @kingjamesalex Před 21 dnem

    Well you said I could ask so I will, how do I get to access it remotely With certificates?

  • @milan_2k45
    @milan_2k45 Před 2 měsíci

    can you help with LDAP user and group backend? this is currently grayed out

  • @pczeczora
    @pczeczora Před 26 dny

    hi can U also show how to enable https and ssl cert

  • @alexandregbarros
    @alexandregbarros Před 19 dny

    Hi. I Followed yous instructions and everithing work very well, but after 2 days i was no longer able to access my files. I found the following alert in the configurations warnings. Some indexes are missing from the database due to the fact that aded on large tables, it take some time they were not added automatically. Running "occ db:add-missing-indices", missing indexes can be added manualy while nextcloud is still running. When i try to execute the command, the following error message apears: 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?). Could you please help me. Thank you very much.

  • @EmilioAyala
    @EmilioAyala Před 7 měsíci +1

    is opcache equivalent to redis? I've been looking for comprehensive installs to get the most performance and everything points to pairing NC with Redis and a PostgreSQL database. thanks for the step by step.

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Not really. Generally for a php application you will pair something like opcache with either redis or memcached. I’ve used both redis and memcached. And I always found that overall, memcached was a bit simpler to get high performance and redis was a bit more enterprise focused.
      I find ootb memcached in my opinions seems better and easier. Redis can get complicated but has a bit better performance potential if configured correctly for your specific setup.
      And about postgres, I’ve just used sql so long and mariadb is very performant overall. I would bet that you are correct and postgres would likely be more performant, I just have never really used it much and again, enterprise yes postgres. Homelab….mariaDB should be plenty sufficient I would imagine.

    • @EmilioAyala
      @EmilioAyala Před 7 měsíci

      Thank you @@FE-Engineer Very insightful. I really dunno how ppl get so good at this backend stuff but I got it up and running locally thanks to your video. The only think I can't figure out now is trying to make it available through a Cloudflare tunnel and I'm getting a 502 Bad Gateway Error (HTTPS with a subdomain and "No TLS Verify turned on as well as "HTTP2 connection". I added the URL as a second "Trusted Domain" in the config as well.
      Guessing it has something to do with securing the site with certificates but I'm relatively new at this.

    • @EmilioAyala
      @EmilioAyala Před 7 měsíci

      ​@@FE-Engineer All sorted, thank you!

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Awesome, sorry I missed your post about the TLS. Glad it is working now!

  • @TazioBaker
    @TazioBaker Před 7 měsíci

    I followed every step to the T, but once I am suppose to continue on the browser my nextcloud instance is not loading. I restarted apache2 and all those steps you mentioned. I'm trying to host this instance on a VPS. For some reason, NextCloud's security scan says my instance is A+

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Wait. So you have this on a VPS in the cloud? Sounds like firewall issues.
      If you are unable to connect with a browser what security scan are you talking about exactly?

  • @TomasHedlund16
    @TomasHedlund16 Před 5 měsíci

    Great tutorial. One that actually works 👍
    After deployment there is som errors in nextcloud and and one is about secure connection to nextcloud. I use Cloudflare tunnel to connect to nextcloud from outside. Do you know what i can do to make it connect via https?

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      You would need to have a SSL cert running. This can be achieved several ways. But if you are going to run other things potentially you will probably want to setup a reverse proxy and let your reverse proxy handle the ssl certs.

    • @TomasHedlund16
      @TomasHedlund16 Před 5 měsíci

      @@FE-Engineer if i setup lets say a nginx proxy server, what do i need to change in your apache setup?

  • @theitzone01
    @theitzone01 Před 4 měsíci

    Thank you for making a rosetta stone video that translates for a newbie like me the Egyptian hieroglyphs the official Nextcloud installation documentation is written in. How will your installation instructions change if my goal is to keep my Nextcloud/Unbuntu Server v22.04.3 home server fenced in within my home network? I don't really have a need to access my Nextcloud using my cellphone when I find myself at a McDonalds. But while at home I do need my cellphone to interface with my Nextcloud to sync data via wifi. For this scenario does the text require it be changed to (xxxx = whatever port number)? Or do I leave the text as is? I hope this is less complicated to configure compared to having the capability to access my Nextcloud while I am at a McDonalds.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci +1

      You are very welcome, and yes...whenever dealing with documentation for any of these software things, it is difficult to write and setup in a way that is easy for anyone to really follow. I am glad it worked out for you and you found my guide easy to use and straight forward!
      On to your question. If you wanted to lock your nextcloud to ONLY be available while on a local network (LAN), the easiest way in apache to do this is to setup your virtual host, and make sure these lines are in it.
      # Only allow from internal Ip's
      Require ip 192.168.0.0/24
      Basically in apache this says, anything trying to access anything in the base directory, which is everything.
      only allow it from ip's that start with 192.168...
      So this will effectively limit it to only IP's on your local area network.
      It will work for ANY ip that starts with 192.168.xxx.xxx
      Does that help?
      Also, if you are not actually broadcasting your apache server to be accessible outside of your network, you could technically do nothing and it should not be accessible anyway.
      If you hooked it up to a domain name at all, and that domain name is allowing it to be served OUTSIDE of your LAN, then you would definitely want to put in that location block I showed up above.
      Anyone NOT in the IP range allowed will just get a very generic apache error saying access is forbidden.

    • @theitzone01
      @theitzone01 Před 4 měsíci

      ​@@FE-Engineer Have subscribed with thumbs up to make the CZcams algorithm promote your awesome channel. Thanks for the help it gave me new insights to Nextcloud. I look forward to your future videos. May I suggest one on how configure a personal Nextcloud Ubuntu Server so it can be accessed from anywhere in the world. It's a task I have been avoiding due to how I have Pi-Hole running on a RasPi 4 which is separate from my Ubuntu server hardware where Nextcloud runs on. So this separation of hardware makes it too complicated for a newbie like me to setup.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      Oh. Yes. I can do that. I have Nextcloud on its own VM but accessible from the internet through a reverse proxy. So I can go through a guide for that.

  • @alemansrao
    @alemansrao Před 7 měsíci

    Can i follow the same video to install it on raspberry pi 5(8gb) with Ubuntu server?

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      I have not played with any raspberry pi’s in a while but yes. It should work without any issues, and I would think it would be quite fast and snappy as well.

  • @nyupyu
    @nyupyu Před 5 měsíci

    Hey, my nextcloud talk conversation loading is bit slow on android, maybe you know something about it. I tried to unforce http/2, without apache http2_mod is bit faster but still, conversation loading is about 2 to 5 seconds after I open app. Now I'm handling http2 only if it's necessary, but it's small difference. I'm thinking about redis instead memcached.

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci +1

      Interesting. I have never used nextcloud talk, so it is hard for me to formulate an educated opinion on what could be slowing it down but in a nutshell.
      HTTP2 allows 4 concurrent downloads compared to http1.1, meaning in very simple terms it should be universally faster, and you can always allow http1.1 as a fallback.
      I find memcached to be slightly easier to setup, while I think redis is more powerful overall but more aimed at enterprise level rather than small scale homelab or small ish business environments. I would be fairly surprised if memcached ended up being the problem.
      What kind of hard drives are you running, hdd, ssd, nvme? Is this on a real server, or a PC converted to run as a server, or cloud? How much Ram? is it ECC ram? How many cpu cores/threads?
      Does talk use websockets? Are you proxying or reverse proxying?

    • @nyupyu
      @nyupyu Před 5 měsíci

      I'm using vps from contabo it's 8gb ram 4 v core some Ryzen with 50gb nvme. Pages loading is good pretty good (about 3s) and also conversations works fine on pc but android app suck. I'm using turn server on same vps. I'm newbie in linux and php, I started 2 weeks ago. Maybe I'll figure out something in config files. Also I'm thinking about standalone signaling server on additional IP or different vps.

    • @nyupyu
      @nyupyu Před 5 měsíci

      Update: everything works much better after fresh install with newest nextcloud 28 and redis. I also installed coturn for turnserver and node server for imaginery on same vps. Pages loading is about 1s (files app 3s). Idk where was the problem but now it's soo fast.

  • @TomasHedlund16
    @TomasHedlund16 Před 5 měsíci

    I followed your guide but cron doesnt run automatic, it works when i run the command you listed.
    And there are missconfigured /.well-known/caldav and .well-known/carddav.
    Any tips on how to solve these?

    • @TomasHedlund16
      @TomasHedlund16 Před 5 měsíci

      Nevermind, i managed to solve them :D

    • @TomasHedlund16
      @TomasHedlund16 Před 5 měsíci

      Sorry, i managed to solve all but the cron, now it hasn´t runned for 36 minutes

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      For cron to work properly I think you need to enable apcu.cli.

    • @TomasHedlund16
      @TomasHedlund16 Před 5 měsíci

      @@FE-Engineer to make it work you need to add www-data to /etc/cron.allow. Then do crontab -u www-data -e and put add */5 * * * * php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1 in that file.
      I managed too sort all the errors out even the /.well-known/caldav and .well-known/carddav, it needed a little tweeking in the .htaccess file.
      For the https i just added 'overwriteprotocol' => 'https' to the config.php.
      The only thing now is some errors in the log that returns all the time:
      jsresourceloader Could not find resource files_external/js/public_key.js to load
      jsresourceloader Could not find resource files_external/js/oauth2.js to load and
      jsresourceloader Could not find resource files_external/js/oauth1.js to load
      For thooose i have no clue what to do

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      I believe Nextcloud will run its own cron agent. Not that manually setting it to run is a bad thing. But technically I don’t think it is necessary. I also never had to change www data to be in the cron allow list.
      Although I used Ubuntu and by default it might be different if you used a different Linux distribution.
      The other errors you are seeing might just be that you have things like oauth enabled and I do not. To get cron to work all I had to do I believe was add that enable cli command and I set that so it would be saved by setting it in a config where it belongs.

  • @russelrainey3569
    @russelrainey3569 Před 7 měsíci

    Hey I went through this hole thing and when I go to bring up nextcloud all I get is the Apache page

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Your virtual host file is not correct.
      Settings in virtual host to check
      Server name
      Server Alias
      Document root

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Or you did not run
      Sudo a2enconf Nextcloud.conf or whatever your virtual host file name is.

    • @masoncnc
      @masoncnc Před 7 měsíci

      mine was like that for most of the duration of the install. Once i completed everything Nextcloud came up

  • @teenhype90210
    @teenhype90210 Před 4 měsíci

    How well does this run in VM on proxmox?

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      It works great for me.
      I have a vm that is my “web server” and is using Apache as a server and reverse proxy.
      For my sites living on individual VM’s Apache is a reverse proxy. In my one or two sites living on the vm with Apache it is just acting as a normal server and is using mod pagespeed for big performance increases.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      Is there some reason you are concerned about it being either a VM or on proxmox?

  • @PixelSheep
    @PixelSheep Před měsícem

    will 16GB of SSD space be enough to do this? :)

    • @FE-Engineer
      @FE-Engineer  Před měsícem

      I would imagine if you are just running Ubuntu server and Nextcloud and having your files live somewhere else like on a NAS then yes. But 16gb will not be enough if you want to use that also as your file space for storage.

    • @PixelSheep
      @PixelSheep Před měsícem

      @@FE-Engineer thank you so much for your fast response and sorry for the confusion :D I'm planning on just running Nextcloud and Ubuntu on there and than adding HDDs for file storage :)
      That should work, right?

  • @fbifido2
    @fbifido2 Před 7 měsíci

    is there a video on how to do Nextcloud using Nginx ?
    or using containers with very tight security?

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci +1

      Sorry. In general I don’t do containers. I find them…nice for simplicity. Annoying for basically everything else.
      Regarding Nginx. I have used it. It’s great. Out of the box it is really good overall. I just personally like and use Apache more. So I don’t honestly have the Nginx performance optimization knowledge to know how to get it as fast as I can get Apache.
      With all of that. The vast majority of this still really applies that. You want to setup memcached, opcache, apcu, php-fpm, etc. and with basically the settings I suggested or likely something very similar to get really good performance. There should be a similar easy to find setting for Nginx to use php-fpm.
      Does that help a bit?

    • @scotmaciver
      @scotmaciver Před 6 měsíci

      @@FE-Engineer I was looking for similar info after watching your video. I've just installed the NC AIO on Docker. But I just looked at the config file and it has two thirds of what you pasted in. Missing the distributed statement. I wonder if they added this in for these packages.
      'memcache.local' => '\\OC\\Memcache\\APCu',
      'filelocking.enabled' => true,
      'memcache.locking' => '\\OC\\Memcache\\APCu',

  • @macawboy6522
    @macawboy6522 Před 3 měsíci

    thank you, by following your tutorial the login form of nextcloud is disappearing.

    • @FE-Engineer
      @FE-Engineer  Před 3 měsíci

      What login form exactly?

    • @FE-Engineer
      @FE-Engineer  Před 3 měsíci

      I don’t have this issue…but I’ll take a look. I don’t see how this could break the login form exactly…but I’ll look into it.

    • @macawboy6522
      @macawboy6522 Před 3 měsíci

      fixed it already. im using cloudflare as my CDN. just need some rules to allowing it. thanks for the tutorial actually.

    • @FE-Engineer
      @FE-Engineer  Před 3 měsíci

      Ah ok. Then yes. That could affect things. 😂 I was actually worried for a minute that something was broken. Glad you got it fixed. You are welcome as well. Nextcloud is great but it is definitely a bit tricky to get it to be performant and their documentation is…hard to navigate.

  • @lovinu5833
    @lovinu5833 Před 4 měsíci

    i can't install nextcloud ddns. Please help

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci +1

      What is Nextcloud ddns? Usually I hear ddns as dynamic dns…but that has nothing to do with Nextcloud? So I’m confused what you are unable to install exactly?

  • @user-xv1tr4zw4i
    @user-xv1tr4zw4i Před 4 měsíci

    I didn't get nextcloud local ip. :( I run ip a and didn't see local ip.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      I mean. Locally things are generally either localhost or 127.0.0.1.
      But if you are connecting to another machine you need to find its ip. This can be done looking at your router and clients in the router and figure out which one it is.

    • @FE-Engineer
      @FE-Engineer  Před 4 měsíci

      And of course. Ip a is another way to find it on a machine. I think you can use ifconfig too.

  • @olivermark9625
    @olivermark9625 Před 6 měsíci

    php 8.3 is out, when you make apt update you are screwed and this whole tutorial doesnt work..
    I done it with 8.2 and then done update and upgrade and was fu***
    Going to do it again...

    • @FE-Engineer
      @FE-Engineer  Před 6 měsíci

      Thanks for letting me know. I’ll make some updates and either fix it to work with php 8.3 or update the instructions specific to 8.2. Sorry that happened. I was doing something the other day and saw php 8.3 coming through.

    • @FE-Engineer
      @FE-Engineer  Před 6 měsíci

      lies and blasphemy! lol. I just went and tried it out, it is working fine for me. With updating php versions you might have done something wonky, if you want I can make a hopefully quick video about updating it so that it works. But I will say I tested at several points, and mine seemed to work without issue from upgrading. Let me know if you want me to make a video about it.
      I assume you did apt-get update and apt-get upgrade?

    • @olivermark9625
      @olivermark9625 Před 6 měsíci

      @@FE-Engineer yeah, my idiocy..., but it doesnt work for php 8.3-fpm , also maybe set bad parameters somewhere.., but when install finished and i wanted to put my url of nextcloud - got error that latest version of nextcloud doesnt support 8.3
      Thats ok :) i will wait for the new relase of nextcloud to support php 8.3...was running mad.., but now (removed 8.3 )
      Redone it at 8.2 and works flawlessly, same as at my ripi4 :), now two 3TB drives arrived and i can play with it..but facing another bug when selecting +apps the apps does not appear.., but thats another topic and i will get around it somehow...i am not mad, i actually enjoy it :D...
      Now i made via LVM copy of disk, soo im fine and can resotere in a few mins when will do such "idiotic" mistake...
      Now i feel more experienced and have to be more careful what am i doing :)

    • @olivermark9625
      @olivermark9625 Před 6 měsíci

      @@FE-Engineer BTW: Tutorial is great!

    • @olivermark9625
      @olivermark9625 Před 6 měsíci

      @@FE-Engineer one more thingie, got troubles with memcached a bit..APCu got a bit weird and when changed config in config.php in nextcloud directory, whole nextcloud went to hell :D.., searched and searched and there is some conflict.., i think my php is somehow messed up.., without enabling memcached it works (i am only one user of the cloud, so i think i dont need it.., but trying hours to ge tit working or maybe will be faster to reinstall again :D...)...
      Iiii think that i will reinstall it whole.., also i got it at subdomain so the apache2 config and enabling sites is a bit different, also using https (certbot tutor for others would be awesome!) I really enjoyed your tutorial first time i was installing it on my rpi (now i moved to full server with ubuntu server and massive storage..)
      Video about setting reverse proxy would be awesome too! :)
      Thank you anway! I really appreciate anyone who invest his time into videos like that! Hat off sir!

  • @TazioBaker
    @TazioBaker Před 7 měsíci

    This didn't work for me. And my previous comment disappeared.

    • @FE-Engineer
      @FE-Engineer  Před 7 měsíci

      Ok. Sorry to hear that.

    • @TazioBaker
      @TazioBaker Před 7 měsíci

      I'm trying to install on a VPS, could this be the reason?@@FE-Engineer

  • @propeto13
    @propeto13 Před 5 měsíci

    thank you for the guide
    for me adding to the config.php file
    'memcache.local' => '\OC\Memcache\APCu',
    'memcache.distributed' => '\OC\Memcache\Memcached',
    'memcache.locking' => '\OC\Memcache\Memcached',
    results in internal error.

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      You must be missing something being installed. Possibly php-apcu

  • @retrow999
    @retrow999 Před 5 měsíci

    hey im not able to get the occ command to run, i need it for scanning the files uploaded through scp on my windows machine, any idea what might be wrong ? rest everything is working fine thanks! I tried the commands in the description it didnt work too, im getting a sudo: nextcloud.occ: command not found

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      Getting the OCC command to work is sneaky.
      For one, you might need to add:
      `apc.enable_cli=1` to your php.ini file

    • @retrow999
      @retrow999 Před 5 měsíci

      i found a workaround and i think ill use it only now, i wanted to use the occ to scan the changed files in the db i tried "sudo -u www-data php /var/www/html/nextcloud/occ files:scan --all" and it worked alright. Thanks for your suggestions though@@FE-Engineer

    • @FE-Engineer
      @FE-Engineer  Před 5 měsíci

      Fantastic!
      If you change it to run cron jobs rather than Ajax in settings, you might need to enable the apc.cli.
      This one thing took me like 45 minutes to figure out. It was annoying that it was not somewhere better documented.

    • @wrkindrk
      @wrkindrk Před 5 měsíci

      @@retrow999 to avoid the path-to-occ in every command you need to omits changing the owner (www-data) for all hidden files (that starts with .). Apache thus was not able to access .htaccess when occ should be run.
      chown -R www-data:www-data .* /path-to-nextcloud/ fixed the occ problem for me. Cheers for the video btw

  • @richaiegantvbox5927
    @richaiegantvbox5927 Před 23 dny

    the line for the php8.2 gets the following errors.
    E: Unable to locate package php8.2-imagick
    E: Couldn't find any package by glob 'php8.2-imagick'
    E: Couldn't find any package by regex 'php8.2-imagick'
    E: Unable to locate package php8.2-memcached
    E: Couldn't find any package by glob 'php8.2-memcached'
    E: Couldn't find any package by regex 'php8.2-memcached'
    Any ideas?.