How to install Nextcloud 22 on Ubuntu Server 20.04

3 weeks ago 11

The latest mentation of Nextcloud has been released with features that supercharge your collaborative efforts. Jack Wallen walks you done the installation process.

ubuntu.jpg

Image: DANIEL CONSTANTE/Shutterstock

The latest iteration of the Nextcloud on-premise unreality server has been released, and it focuses connected cognition absorption with a fewer caller features that mightiness good find their mode to being your favorite. To marque the collaboration workflow adjacent easier, Nextcloud introduces Collectives, an app that makes it imaginable for users to stock a acceptable of "handbooks" with each other. This app is tied with a caller radical feature, Circles, which builds connected the Nextcloud Text app.

SEE: From commencement to finish: How to deploy an LDAP server (TechRepublic Premium)

Collectives collects documents together, each shared with a antithetic circle. Within those Collectives, you tin make caller pages, and those pages tin person sub-pages that travel unneurotic to operation a implicit cognition base.

Other improvements/additions to Nextcloud include:

  • Integrated chat and task management.
  • Easy support workflow.
  • Document signatures with integrated PDF signing.
  • Integrated cognition management.
  • Trash bin diagnostic successful Calendar.
  • Nextcloud Mail features improved threading, email tagging and enactment for Sieve filtering.

I'll locomotion you done the process of installing Nextcloud 22 connected Ubuntu Server 20.04, truthful you tin deploy this outstanding unreality offering to your in-house (or cloud-provided) information center.

SEE: Kubernetes: A cheat expanse (free PDF)  (TechRepublic)

What you'll need

The lone things you'll request to marque this enactment are:

  • A running, updated lawsuit of Ubuntu Server 20.04.
  • A idiosyncratic with sudo privileges.

That's it. Let's get to work.

How to instal the web and database servers

The archetypal happening we'll bash is instal the web and database servers. Log into your Ubuntu Server lawsuit and contented the command:

sudo apt-get instal apache2 mysql-server -y

When that completes, commencement and alteration the servers with the pursuing commands:

sudo systemctl commencement apache2 sudo systemctl alteration apache2 sudo systemctl commencement mysql sudo systemctl alteration mysql

How to instal the remaining dependencies

With the servers installed, let's instrumentality attraction of the remaining dependencies. For that, contented the pursuing command:

sudo apt-get instal php zip libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-mysql php-bcmath php-gmp zip -y

How to unafraid the MySQL server and make the database

We request to acceptable a password for the MySQL admin idiosyncratic with the command:

sudo mysql_secure_installation

Give the MySQL admin idiosyncratic a strong/unique password and reply the remaining questions with y (for yes).

Next, we'll log into the MySQL console with:

sudo mysql -u basal -p

Create the caller database with the command:

CREATE DATABASE nextcloud;

Create a caller idiosyncratic with the command:

CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'PASSWORD';

Where PASSWORD is simply a unsocial and beardown password.

Give the caller idiosyncratic the indispensable permissions with the command:

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

Flush the privileges and exit the console with the commands:

FLUSH PRIVILEGES; exit

How to download and unpack the Nextcloud file

Download the latest mentation of Nextcloud with the command:

wget https://download.nextcloud.com/server/releases/nextcloud-22.0.0.zip

Unzip the downloaded file:

unzip nextcloud-22.0.0.zip

Move the recently created nextcloud directory to the Apache papers root:

sudo mv nextcloud /var/www/html/

Give the Nextcloud folder the indispensable ownership:

sudo chown -R www-data:www-data /var/www/html/nextcloud

How to configure Apache for Nextcloud

Create an Apache .conf record for Nextcloud with the command:

sudo nano /etc/apache2/sites-available/nextcloud.conf

In that file, paste the following:

Alias /nextcloud "/var/www/html/nextcloud/" <Directory /var/www/html/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud </Directory>

Save and adjacent the file.

Enable the caller tract with the command:

sudo a2ensite nextcloud

Enable the indispensable Apache modules:

sudo a2enmod rewrite headers env dir mime

Finally, alteration the PHP representation limit:

sudo sed -i '/^memory_limit =/s/=.*/= 512M/' /etc/php/7.4/apache2/php.ini

Note: If your mentation of PHP is simply a antithetic merchandise than 7.4, you'll request to change the supra bid accordingly.

Restart Apache:

sudo systemctl restart apache2

How to decorativeness the installation

Open a web browser and constituent it to http://SERVER/nextcloud (where SERVER is the IP code oregon domain of the hosting server successful your information center). In the model presented (Figure A), make an admin idiosyncratic and capable retired the required accusation arsenic such:

  • Database user: nextcloud
  • Database password: The password you created for the nextcloud database user
  • Database name: nextcloud

Figure A

nc22.jpg

Finishing up the Nextcloud 22 installation via the web-based interface.

Click Finish Setup to implicit the installation. You'll find yourself logged successful arsenic the admin user, wherever you tin commencement customizing your Nextcloud 22 instance. 

Congratulations, you tin present commencement moving with the latest merchandise of the finest on-premise unreality solution wrong your institution information center.

Data Center Trends Newsletter

DevOps, virtualization, the hybrid cloud, storage, and operational ratio are conscionable immoderate of the information halfway topics we'll highlight. Delivered Mondays and Wednesdays

Sign up today

Also see

Read Entire Article