How to install Nextcloud 14 on Ubuntu 18.04 LTS and derivatives?

Nextcloud logo

Recientemente the new version of Nextcloud 14 was released to the general public with which it is renewed adding some new features and bug fixes in what was around its previous version.

In this new Nextcloud 14 release brings, once again, a wide range of improvements of which we can highlight that video verification was added and two-stage authentication can be used.

With this program, it is possible to run cloud storage internally. Nextcloud came about after a large number of developers at ownCloud dropped out of it and started over.

Nextcloud is the fork of ownCloud, which is a Cloud Infrastructure as a Service (IaaS) fully open source with some Platform as a Service (PaaS) services.

You can install it on your own Linux server or on a server at many hosting companies.

System administrators for systems large and small will appreciate the many enhancements to system configuration, application management, and the updater.

Changes in Nextcloud 14

Nextcloud 14 merged almost 1000 pull requests with improvements and changes, almost 150 more than Nextcloud 13. This only covers the core server, hundreds more changes were officially our biggest releases ever.

While these are the highlights of the main features that can be highlighted in this release of this new version of Nextcloud 14:

  • Video-Verification: Use a video call with Talk to verify someone's identity before granting them access to a share.
  • Two-factor authentication now with Signal and Telegram, as well as NFC and SMS
  • Accessibility improvements and dark theme
  • Added a note to shares, share files in a chat chat, new Kanban app app and much more

Nextcloud installation on Ubuntu 18.04 and derivatives

The first step to install NextCloud 14 is install a web server and PHP. PHP7 brings many improvements over previous versions and will increase NextCloud as well, in fact PHP7 is required from NextCloud 11.

For this we will have to open a terminal and execute the following commands in it:

sudo apt-get install apache2 libapache2-mod-php7.0 bzip2

sudo apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring

sudo apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip

Now that you have configured the environment, all that remains is to choose a database that supports the installation for this we are going to execute the following:

sudo apt-get install mariadb-server php-mysql

During the installation, you will be asked to choose a root password, they should place a fort. If you are not asked to choose a password, the default will be blank.

Nextcloud

Now need to enter the database (they will be asked for the password you just set):

$ mysql -u root -p

Now that you must create a database:

CREATE DATABASE nextcloud;

Now they need to create the user to be used to connect to the database:

CREATE USER 'usuario'@'localhost' IDENTIFIED BY 'tucontraseña';

The last step is grant the privileges to the new user:

GRANT ALL PRIVILEGES ON nextcloud. * TO 'usuario'@'localhost';

FLUSH PRIVILEGES;

When you're done, type Ctrl-D to exit.

The last step is to install Nextcloud with:

cd /var/www

wget https://download.nextcloud.com/server/releases/latest-14.tar.bz2 -OR nextcloud-14-latest.tar.bz2

tar -xvjf nextcloud-14-latest.tar.bz2

sudo chown -R www-data: www-data nextcloud

sudo rm nextcloud-14-latest.tar.bz2 [/ sourcecode]

Now we have to create a new file in /etc/apache2/sites-available/nextcloud.conf . Feel free to use whatever editor you are comfortable with and add the following lines:

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>

Options +FollowSymlinks

AllowOverride All

<IfModule mod_dav.c>

Dav off

</IfModule>

SetEnv HOME /var/www/nextcloud

SetEnv HTTP_HOME /var/www/nextcloud

</Directory>

Once done, its time to enable the new site and enable apache mods What NextCloud needs:

a2ensite nextcloud

a2enmod rewrite headers env dir mime

systemctl restart apache2

ufw allow http

ufw allow https

Once you have finished selecting the database, time to install everything. Go to http: // your_address / nextcloud /

Or as such localhost / nextcloud

Select an administrator username and password, then you can select the data folder.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   guido said

    Hello I have a problem. I get this:

    «You don´t have permission to access / nextcloud on this Server.¨

    Apache / 2.4.29 (ubuntu) Server at localhost Port 80

  2.   Miguel said

    Running this command: sudo apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring throws the error of needing libgd3 and libjpeg62-turbo dependencies
    When you want to install these dependencies, it indicates that they are discontinued or do not exist