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 Наука
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
ob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
@@ShOookYx same
please answer
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!
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 ;)
@@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 ?.
im saving this. if ever i get this deep into next cloud, this will be a life saver.
Cheers man
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!
Thank u so much for explaining everything, I saw 100 videos but no one explained like u. Thanks again
Absolutely amazing and concise tutorial! Great job and Thank you!
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
in germany your name is now "Ehrenmann"... thank you i had many struggle to install Nextcloud to Apache. Your solution worked now
Dankeschön :)
Thanks for this I like that you explain each command and what it does and why ect. Thats huge!
Thank you! Happy to hear
Really good job you really helped out a lot on those security fixes!
Great!
I love you. Docker Failed. Snap failed. Your method worked.
Happy to hear!
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
Thank you so much for your nice feedback!!
Thank you! You made that so simple.
Thanks for watching!
Best video on Nextcloud . Thx man.
Appreciate it!
Grate tutorial. Finaly a clear and complete explanation 😃
Thanks
Glad it was helpful
Thank you very much. I have learned a lot from your video and your blog.
Appreciate it a ton!
wow thank you for this video!
Thank you. Well done. Professional video.
Really good.
Thank you for this guide, it's awesome!!!
Great tutorial
Thank you!
The timing on this video could not have been better (was just about to get my head around nextcloud) 👍🏻
Great to hear!
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.
Awesome!
Do you mean Nextcloud is not very performant? In terms of what?
@@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.
EXCELLENT Work !!! Thank You...
Cheers!
¡Excelente, gracias!
Thanks man!!
Thanks for watching :)
God bless you bro!
Very Good 👍
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
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.
Exellent Thanks you.
Thank you so much
thanks for this awesome guide,
Do you think this could be done via WSL ? Or a VM with linux is far better?
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
Muchas gracias!, funciono todo perfecto y de gran ayuda su blog.
I love you
thanks
haha me ghört mega nid das du schwizer bisch, btw super video !!
merci vill mal :)
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.
You need to set up the static IP address in your router's configuration. That will look differently with each router.
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
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?
Thats what is not found on youtube right now !
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.
Have you found a solution?
@XS Smoke i dont remember anymore. I used a new tutorial and it works.
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!
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
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?)
idk what this is but I like it
also please updated warzone and Cold War settings
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!
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
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.
Do we need to keep the server that will be my personal laptop to be on for 24 x 7?
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
I get the same error message and unfortunately also haven't been able to fix it yet
@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?
Appreciate it! I haven't deployed nextcloud on docker so I don't have any experience to share I'm afraid
@@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
Sure I'm familiar with Docker but haven't used it for Nextcloud
@@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
Hi can you help me setup nextcloud using docker-compose file step by step.
Apache2 status says my server is active but there is no connection in browser, should I just start from scratch?
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
Are you going to release a guide to add SSL, Reverse Proxy, and remote access?
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
Thank you that really helpful but do you not need to change any database configurations aswell
Hey mate. I am getting "access forbidden by server" using cpanel hosting with installing nextcloud.
HI, how to confgure Https?
Thank you for this tutorial. How to enable HTTPS?
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.
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.
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)."
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.
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 :)
@@TechGuides thanks. It is appreciated.
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.
Cheers :)
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?
You should be able to install those apps manually from nextcloud.
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
I'm sorry I don't understand quite your problem. The Apache Reverse Proxy setup is explained at 7:13 in this video
Dear, thank you for every thing but i have question in min 9 when you say yourdomain what can i write
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
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.
I've got an entire video dedicated on how to fix this: ruclips.net/video/8JVhRtArovg/видео.html
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!!
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
@@TechGuides Thanks! I'll check it out!
Hey Hello, love your work, is it possible to make a video to install Nextcloud with aaPanel? or can i use this metod?
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?
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 ;)
@@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
Yes I also backup the nextcloud folder (including all apps and configs) but without the data dir, naturally ;)
@@TechGuides Please, do not stop sharing your experience.
By the way, I'm Roman, too))
Great my friend, i will install nextcloud on FreeBSD 12, PostgreSQL 12 and Apache 2.4.46. Do you think this is good?
@Dio Titus Perhaps Luiz is using FreeBSD as his OS. 🤷♂️
Having trouble to nextcloud recognize my externa hd, I alredy activated the external storage app but still not working
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?
"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?
found solutions but my comments were deleted
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.
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,
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
@@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.
¡Gracias!
Wow thank you so much :)
@@TechGuides You earned it! This tutorial is clear and you solve all the rare issues you get from the beginning!
Would you ever use docker (or something similar) to install nextcloud?
Im not a big fan of docker especially for nextcloud but I will need to use it for an upcoming project
@@TechGuides any particular reason for not liking docker?
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.
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?
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)
Getting this error while setting up Onlyoffice "Error when trying to connect (Host violates local access rules)"
Anyway of changing nextcloud instance login credentials or resetting?
Probably if you change them in your database. Did you google?
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
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...')
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...
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
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
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
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?
Have any of the steps or command lines changed for Nextcloud 22 and PHP 8.0?
I haven't tried Nextcloud with PHP8 yet but I'd guess not much changed
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?
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
@@TechGuides Awesome, thank you!
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?
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 :)
There's an antiransomware app you can install on nextcloud, never tried it.
Well, to be fair... you seem to know your shit!
Thanks for passing on the knowledge! 👌🏻
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.
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
chown
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
It keeps complaining that it does not satisfy the current policy requirements on the password part
possible to have guideline for nextcloud located in zfs pool with raidz, cache and slog ?
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
@@TechGuides thanks for the feedback
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!
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
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
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.
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.
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
do a tutorial on how to host several nextcloud instances on the same machine, PLEASE
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?
@@TechGuides Interesting, I'll give that a try next week. THanks.
7:52 when i type this command it tells me there is no such directory or folder? has anyone else had this issue?
nevermind i totally typed it in wrong... whoops
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.
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
@@TechGuides ok thank you
Simply tell me how to remvoe index.php from URL as it makes my URL ugly
Hi, will it work if I have an Ubuntu server set up in Virtual Box ?
Not sure about how to access applications running inside a virtual box, but the install should be exactly the same
@@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 😀.
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.
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)
@@TechGuides Same issue here :)
@@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
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
Same problem :(