Install nextcloud on Ubuntu 22.04 Natively (Without snap Package) Part 1b
HTML-код
- Опубликовано: 11 окт 2024
- how to install nextcloud on ubuntu without using the snap package.
Commands include:
Packages Needed - Apache and Mariadb or mysql and some PHP modules.
Creating a local user
adduser ncadmin
usermod -aG sudo ncadmin
Installing updates
sudo apt update
sudo apt dist-upgrade
Cleanup updates
sudo apt autoremove
Setting the Hostname
sudo nano /etc/hostname
Disabling root login via SSH
sudo nano /etc/ssh/sshd_config
sudo systemctl restart ssh
Download Nextcloud
wget download.nextc...
Database Installation and Setup Mariadb
sudo apt install mariadb-server
systemctl status mariadb
sudo mysql_secure_installation
Create Nextcloud Database
sudo mariadb
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'mysecurepassword';
FLUSH PRIVILEGES;
Setup Apache Web Server
sudo apt install php php-apcu php-bcmath php-cli php-common php-curl php-gd php-gmp php-imagick php-intl php-mbstring php-mysql php-zip php-xml
systemctl status apache2
Satisfy Nextcloud requirement and enable recommended PHP extensions.
sudo phpenmod bcmath gmp imagick intl
sudo apt install unzip
unzip latest.zip
Install Nextcloud’s files and setting up their permissions.
• Rename the Nextcloud folder
mv nextcloud cloud.geek2gether.com
• Set file and group ownership
sudo chown -R www-data:www-data cloud.geek2gether.com
• Move file to proper directory /var/www
sudo mv cloud.geek2gether.com /var/www
• Disable Apache DEFAULT SITE
sudo a2dissite 000-default.conf
Creating host configuration for Nextcloud.
• Setup Nextcloud CONFIG file for Apache
sudo nano /etc/apache2/sites-available/cloud.geek2gether.com.conf
Enable the site.
sudo a2ensite cloud.geek2gether.com.conf
Configuring PHP
sudo nano /etc/php/8.1/apache2/php.ini
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M
date.timezone = America/Detroit
opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
• Ensure required PHP modules are enabled.
sudo a2enmod dir env headers mime rewrite ssl
• Restart Apache to make sure PHP settings take effect:
sudo systemctl restart apache2
Nextcloud PHP recommendations:
geek2gether.co...
For questions and discussions about errors or if you need further assistance, please join our discussion community at:
geek2gether.co...
I am so happy I found your channel brother. Thank you so much for these videos! You have saved so much pain for me
I am glad to help. Thank you for watching. Please like share and subscribe.
You are amazing! Thank you so much for your very helpful tutorials. Very informative.
Thank you for the feedback. Please like share and subscribe.
Thank you very much for this video and the other Nextcloud videos you recently posted. I have been running Nextcloud on a Truenas installation for a couple of years and it all worked fine until recently when my last update failed, breaking my setup, and I am not able install the Nextcloud plugin which apparently is no longer supported. I notice you mentioned the possibility to make a video about installing Nextcloud on Truenas ... I am very much looking forward to it. Thank you in advance.
Thank you for watching Sir. Here is a video to install nextcloud in the latest version of TrueNAS :
ruclips.net/video/SSF9xiPZ6Yo/видео.html
I will recommend removing the nextcloud installation and the jail and reinstalling the plugin.
@@geek2gether469 Gee whiz!! that was quick. Thank you so much. I was concerned about removing the existing installation, so I simply turned it off .... and that worked fine, I now have a new installation at the latest standard (Hub 5 (27.0.0). Interestingly enough, if I now restart the first one, it works as well.
@@Lepelot Thank you for watching. I am glad i could help. Please like the video and subscribe
Very detailed and what I have been wanting to do for moving away from nextcloud jail. Can you make a tutorial with nextcloud aio on a vm with truenas (external) mount for data directory?
Thank you for watching. If your talking about external shares with Truenas Nextcloud plug-in for smb support check out this video:
ruclips.net/video/C4QsRxX4nz0/видео.html&si=ffiSEhnjpNlSRMy9
Great video, really helped me however there's a mistake on 2:00. The command on screen is wrong it should start with 'usermod', but it starts with 'usermode'.
Oh yes, you are absolutely correct, thats a typo. Thank you for letting me know, i have it removed. But i have correct one on the cli. Thank you for watching
Would be nice if you can also make a video on setting up TURN server. Found steps online but would be nice if you make the video as you have been the one guiding us from beginning to the end.
Thank you for watching. Check out the video.
ruclips.net/video/7n_6GJkw0x0/видео.html
@@geek2gether469 You're the real deal. I have seen it. I've been waiting on it. I'm glad you did it. Thanks so so much🙏
Really liked all your videos. Can you please make a video on how to establish cloudflare zero trust tunnel with nextcloud non snap version. I had snap version earlier but due to limitations in php editing. I recently moved to native nextcloud. I am struggling with establishing tunnel.
Thanks for watching. My apologies for the delayed response. I can assist you with your setup. Please open a new topic or ask a question on my forum at hub.geek2gether.com and provide information about your setup and I should be able to assist .
Thank you very much, everything is shown in great detail and with high quality. I did everything as in the video, there were no errors, but when I try to log in, the web says that the site is not accessible, I did everything on a virtual machine, I connect inside the local network, tell me how to find out which port to write by IP address?
Thank you for watching. No special port but port 80/tcp which is http. Open the browser and type and that should work. If not make sure your Ubuntu system is not blocking http inbound. If you run ufw or iptables make sure you open port 80 inbound
Excelent video, I really help me, no problem during the video. But, just finally, when I run the command sudo systemctl restart apache2 and see my browser, I see the message "Forbidden
You don't have permission to access this resource." You know about that?
Thank you for watching. Please can you provide nextcloud and apache2 logs? There should be an error in the logs.
Thank you very much.
You are welcome. Please like and subscribe.
Good afternoon, after the latest NextCloud update a bug appeared: it is impossible to upload the entire folder to the server, it is only possible to upload each file separately. Please tell me how to roll back to previous versions of NextCloud?
When will the continuation of this video be available as you mentioned at the end of this one?
Thank you for watching. There are other videos for this series being made, please subscribe to get notifications on new videos as they become available.
Part 2 and 3 added. More coming.
ruclips.net/p/PLdLEwxhkZV-n7HHASxGldVrY3zD4lCxAs
There is a working version of nextcloud 6 27.1.5, please tell me how to make a backup of it to restore it on another machine after the update?
Can you make video in integration of guacamole and windows active directory authentication?
Thank you for watching. I have a video for LDAP /LDAPS authentication for Guacamole using Active Directory.
Apache Guacamole LDAP/LDAPS Configuration
ruclips.net/video/SPFkJNjoupo/видео.html
Everything worked great except at the end I get this. Any ideas why?
Forbidden
You don't have permission to access this resource.
Apache/2.4.58 (Ubuntu) Server at 192.168.x.x Port 80
It can be a handful of things. Can you check your Apache error log file and show me the error message you get there?
Hello boss. I have issue with my Nextcloud installation going offline every now and then. It's Currently running on the AWS EC2 Ubuntu 22.04. I have to reboot the server almost every minute to put it back online. What do you suggest I do to end this issue?
Hey, can you provide Nextcloud and apache logs or screenshot of error message? please create a question/topic and post the screenshots/logs on our new hub geek2gether.com/forums/nextcloud/ so we can assist you since youtube doesn't allow attachments.
@@geek2gether469 I have registered on your website but I'm yet to receive verification email
did you check spam?
@@geek2gether469 Yes. I have also resend verification email but same thing
Oh I just saw it in spam folder now
After watching this video. I was able to set it up correctly and successfully but my website is only accessible through VPN. Once the VPN is off, it is always saying website not reachable. What do I do?
Thank you for watching. I will need to know what your setup is like to be able to help. Can you provide more information via email ?
@@geek2gether469 Oh, thanks. This was when I started watching your videos. The subsequent videos you released solved the problems for me. I appreciate.
Hi, i followed the entire prosess, but i cant access the website through my browser. The IP address i get when i run ip addr, doesnt work. How can i fix this or make sure i am using the right address? Thanks! :)
Thank you for watching. This can be a number of issues. Do you have logs or error messages? Sharing those on the geek2gether hub or on here will provide more information for me to be able assist.
Please tell me the path to the config.php file
Nextcloud writes an error when logging in:
Access through untrusted domain
Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php.
Further information how to configure this can be found in the documentation.
Thank you for watching. The path of nextcloud config.pnp is in the /var/www/yournextcloudinstallpath/config
For example as path of the tutorial my config.php is in /var/www/cloud.geek2gether.com/config
Open the config.php and under trusted domains add the domain or ip you are using for nextcloud.
@@geek2gether469 Thank you
You are welcome
the file doesn't exist on mine, what should i do?
the /etc/apache2/sites-available/cloud.....conf
Error apache2
Thank you for watching. What Apache error are you getting ?
@@geek2gether469 thank sir, problem solved😍
Great. I’m glad you found a solution.