Install nextcloud on Ubuntu 22.04 Natively (Without snap Package) Part 1b

preview_player
Показать описание
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

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

Install Nextcloud’s files and setting up their permissions.

• Rename the Nextcloud folder

• Set file and group ownership

• Move file to proper directory /var/www

• Disable Apache DEFAULT SITE

Creating host configuration for Nextcloud.

• Setup Nextcloud CONFIG file for Apache

Enable the site.

Configuring PHP

memory_limit = 512M

upload_max_filesize = 200M

max_execution_time = 360

post_max_size = 200M

• 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:

For questions and discussions about errors or if you need further assistance, please join our discussion community at:

Рекомендации по теме
Комментарии
Автор

I am so happy I found your channel brother. Thank you so much for these videos! You have saved so much pain for me

kavyakinjalk
Автор

You are amazing! Thank you so much for your very helpful tutorials. Very informative.

resitd.
Автор

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.

Lepelot
Автор

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?

MrMako
Автор

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?

rkbest
Автор

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.

Guavaya
Автор

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?

MrMako
Автор

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?

MrMako
Автор

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'.

uquoh
Автор

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.

lightHARRY
Автор

Can you make video in integration of guacamole and windows active directory authentication?

IT_Evolvers
Автор

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?

eliseovazquezm
Автор

When will the continuation of this video be available as you mentioned at the end of this one?

Guavaya
Автор

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! :)

josiehuss
Автор

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?

Guavaya
Автор

the file doesn't exist on mine, what should i do?

lukemasteri
Автор

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?

Guavaya
Автор

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.

MrMako
Автор

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

TomMolczynski