How to Install Nextcloud on ubuntu server 20.04 LTS | Step by step guide.

preview_player
Показать описание
In this video, I will show you a step by step guide on how to Install Nextcloud on Ubuntu server 20.04 LTS

------ Contents of this video ---------------------------
00:21 - Installing LAMP Server
00:48 - Connect to ubunto server using putty and login as a root user.
01:21 - Install Apache web server
03:00 - Install php modules for nextcloud
04:28 - Install MariaDB Server
05:28 - Securing MariaDB using mysql_secure_installation command
06:12 - Create database for nextcloud
06:48 - Create Database user and password for nextcloud
07:03 - Grant user all the privileges on nextcloud database
07:20 - Flash all privileges
07:44 - Download and install Nextcloud
13:18 - Outro

------ Commands in installing Nextcloud 19 -----------------------
- Install first a LAMP server.

Step 1. Install the Apache webserver.
Command:
sudo apt update
sudo apt install -y apache2 libapache2-mod-php bzip2

Step 2. Install the necessary PHP modules for Nextcloud installation.
Command:
sudo apt install -y php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-sqlite3

- Enable mod_rewrite for NextCloud work properly.
Command:
sudo a2enmod rewrite

- also, you need to enable a few additional Apache modules.
Command:
sudo a2enmod headers
sudo a2enmod dir
sudo a2enmod env
sudo a2enmod mime

- Restart the Apache service.
Command:
sudo systemctl restart apache2

Step 3. Finally, Install the MariaDB server (v10.3) from the Ubuntu repository.
sudo apt install -y mariadb-server mariadb-client

- Securing mariaDB with mysql_secure_installation command
Command:
systemctl start mariadb
mysql_secure_installation

- Let us Create Database

- Log in to the MariaDB server using the root user to create a database.
Command:
sudo mysql -u root -p

- Create a database called nextcloud_db.
Command:
create database nextcloud_db;

- Create a database user nextcloud_user and nextcloud password.
Command:

- Grant this user all privileges on the nextcloud database.
Command:

- Flush privileges and exit.
Command:
flush privileges;
exit;

- We are done installing LAMP Server. Let's download and install Nextcloud 19.

- Go to Nextcloud official website to get the latest Server installer

- Download it in your server using wget command
Command:

Once downloaded, extract the archive with unzip.
- install unzip on your system:
Command:
sudo apt install unzip

- unzip nextcloud on directory var/www/html
Command:

- change the owner of this directory
Command:
sudo chown www-data:www-data /var/www/html/nextcloud/ -R

- Give access permision to the nextcloud files
Command:
sudo chmod 775 -R /var/www/html/nextcloud

Now, open your browser using your server IP address
Command:

- Then create login to your new nextcloud server and connect to database using the credentials you created earlier.
- End -

Please watch our more upcoming videos and don't forget to LIKE, COMMENT, AND SUBSCRIBE.
Thank you!

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

Thank you very much for this video my guy! It actually helped me quite a lot with a test i had today! Everything is working flawlessly from the very beginning!

gansotragico
Автор

So beautifully explained the process and so seemless it is do this and awesome MD. Thanks for the video.

SidharthKaushiksid
Автор

thanks it's a big help for a newbie like me who just discovered how awesome linux is. I subscribed and liked the video

gadooze
Автор

Well, a great tutoral. I ha *ve fo* llowed it and it was flawless save for one section. I was copying and pasting the text from your description to my server. On this line:

sudo apt install -y php-gd php-json php-mysql php-curl php-mbstring php-intl
php-imagick php-xml php-zip php-sqlite3

It installed all the php modules listed on the first line. Noe of the second line was installed and I didn't catch it till later. I would modify the line and add a \ to the end of the first line. Another great addition to this tutorial would be how to resolve the items left in the administrative overview.

Don't get me wrong, it is a GREAT tutorial and you done an awesome job.

Thank you for sharing!
Joe

MyHeap
Автор

Hello, nice content! You have my friendship ✔️ be well

kdcanines
Автор

Could you please help me with Collabora installation? I am not able to use it after disabling Onlyoffice, getting error that collabora online is not setup yet.

manishshekhar
Автор

very good instruction! But where is the continuation? Calabora online does not work, need to configure

Павел-рюе
Автор

Do i need create password on mariadb installation?

MilliMetermod
Автор

Hi, would be nice to see how to redirect to https and install ssl !

Frostainum
Автор

Drop your comments here. Have fun and enjoy it.

MDTechTutorials
Автор

bruh why it says that i need gnu license

muhdadib
Автор

You know you don't need Putty on Windows 10 right? You can use PowerShell and connect to the server just like you do with Terminal on Linux. "username"@"IP-number to the server"

StenIsaksson
Автор

please help.

i found error

Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud_user'@'localhost' (using password: YES)

heruajja
Автор

I had the same problem with the CODE app and can't get it to install.. Any solution?

RicardoWagner
Автор

I want to store that file on my NAS storage what should I do?

khuonsokheang
Автор

result:


Error
PHP module zip not installed.
Please ask your server administrator to install the module.
PHP module dom not installed.
Please ask your server administrator to install the module.
PHP module XMLWriter not installed.
Please ask your server administrator to install the module.
PHP module XMLReader not installed.
Please ask your server administrator to install the module.
PHP module libxml not installed.
Please ask your server administrator to install the module.
PHP module SimpleXML not installed.
Please ask your server administrator to install the module.
PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.

theStoryAdventure
Автор

Gettig this error message while login to Nextcloud for first time "Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud_user'@'localhost' (using password: YES)"

manishshekhar
Автор

why i can't open my ip addres nextcloud ? please help me emergency

muhammadnurmufid
Автор

ERROR 1698 when entering password for mariadb

RicardoWagner
Автор

1/ install 20.04 server
2/ snap install nextcloud
3/ reboot
4/ that's all
...

maximefromspace
join shbcf.ru