How to deploy Nextcloud 25 on Ubuntu Server 22.04

0
103
How to deploy Nextcloud 25 on Ubuntu Server 22.04


Close up of an unrecognizable young businessman holding a laptop in a server room
Image: Myvisuals/Adobe Stock

Nextcloud is at all times pushing the envelope of what on-premises cloud servers may be and do. With their newest launch, Nextcloud shifts among the focus to digital well-being with the assistance of a whole redesign of the UI. There’s extra personalization, extra common entry, much-improved purposes, a built-in picture uploader and editor, AI-powered facial and object recognition for uploaded photographs, improved Talk, a extra performant e-mail shopper, higher contact group and extra.

SEE: Hiring Kit: Cloud Engineer (TechRepublic Premium)

What’s most placing about Nextcloud 25 is the UI. The designers and builders have actually gone out of their approach to make the platform way more user-friendly and fashionable. As regular, there are additionally a number of routes for getting Nextcloud put in. However, I need to go the normal route and set up it on Ubuntu Server 22.04.

What you’ll want to put in Nextcloud 25

To set up Nextcloud 25, you’ll want a working occasion of Ubuntu Server 22.04 and a consumer with sudo privileges. That’s it.

How to put in the mandatory necessities

The very first thing you will need to do is set up the online and database servers with the command:

sudo apt-get set up apache2 mysql-server -y

Start and allow them each with:

sudo systemctl allow --now apache2
sudo systemctl allow --now mysql

Next, set up the php dependencies with:

sudo apt-get set up 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 set the MySQL root password

For some purpose, the mysql_secure_installation failed me. Instead, I needed to set the MySQL admin password manually. First log into the MySQL console with:

sudo mysql

Once there, set the admin password with:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'PASSWORD';

Where PASSWORD is a robust/distinctive password.

Exit from the console with exit.

How to create the database and consumer

Next, we are able to create the database. To do this, log again into the MySQL console with:

mysql -u root -p

Create the database with:

CREATE DATABASE nextcloud;

Create the brand new consumer with:

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

Where PASSWORD is a singular and powerful password.

Give the brand new consumer the mandatory permissions with the command:

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

Flush the privileges and exit the console with the instructions:

FLUSH PRIVILEGES;
exit

How to obtain and unpack the Nextcloud file

Download the Nextcloud supply with the command:

wget https://download.nextcloud.com/server/releases/latest.zip

Install unzip with:

sudo apt-get set up unzip -y

Unpack the downloaded file with:

unzip newest.zip

Move the brand new listing into the Apache doc root with:

sudo mv nextcloud /var/www/html/

Grant the correct permissions with:

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

How to configure Apache for Nextcloud

We now need to create an Apache configuration file with the command:

sudo nano /and many others/apache2/sites-available/nextcloud.conf

In that file, paste the next:

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

<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews

<IfModule mod_dav.c>

Dav off
</IfModule>
</Directory>

Enable the brand new website with:

sudo a2ensite nextcloud

Enable the mandatory Apache modules:

sudo a2enmod rewrite headers env dir mime

Increase the PHP reminiscence restrict with the command:

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

Restart Apache:

sudo systemctl restart apache2

How to finish the set up

Finally, open an internet browser and level it to http://SERVER/nextcloud, the place SERVER is the IP deal with or area of the internet hosting server. You needs to be greeted by the web-based installer, the place you will need to create an admin consumer and fill within the particulars for the database (Figure A).

Figure A

The Nextcloud 25 web-based installer.

Click Install and permit the magic to occur beneath the hood. When it finishes, you’ll end up on the brand new Nextcloud Hub, logged in because the admin consumer (Figure B).

Figure B

The new Nextcloud interface is a refined, however essential improve from the earlier iterations.

And there you could have it, you’ve simply put in the most recent and best launch from the nice builders of Nextcloud. Enjoy that refreshed interface and all the brand new options.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the most recent tech recommendation for enterprise execs from Jack Wallen.

LEAVE A REPLY

Please enter your comment!
Please enter your name here