How one can deploy Nextcloud 25 on Ubuntu Server 22.04

[ad_1]

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

Nextcloud is at all times pushing the envelope of what on-premises cloud servers could be and do. With their newest launch, Nextcloud shifts a few of 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 Speak, a extra performant e-mail shopper, higher contact group and extra.

SEE: Hiring Equipment: Cloud Engineer (TechRepublic Premium)

What’s most putting 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 trendy. As normal, there are additionally a number of routes for getting Nextcloud put in. Nevertheless, 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 put in Nextcloud 25, you’ll want a operating occasion of Ubuntu Server 22.04 and a consumer with sudo privileges. That’s it.

How one can set up the mandatory necessities

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

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

Begin and allow them each with:

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

Subsequent, 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 one can set the MySQL root password

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

sudo mysql

As soon as there, set the admin password with:

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

The place PASSWORD is a powerful/distinctive password.

Exit from the console with exit.

How one can create the database and consumer

Subsequent, we will 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';

The place PASSWORD is a singular and robust 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 one can obtain and unpack the Nextcloud file

Obtain the Nextcloud supply with the command:

wget https://obtain.nextcloud.com/server/releases/newest.zip

Set up unzip with:

sudo apt-get set up unzip -y

Unpack the downloaded file with:

unzip newest.zip

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

sudo mv nextcloud /var/www/html/

Grant the right permissions with:

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

How one can configure Apache for Nextcloud

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

sudo nano /and so on/apache2/sites-available/nextcloud.conf

In that file, paste the next:

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

<Listing /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Choices FollowSymLinks MultiViews

<IfModule mod_dav.c>

Dav off
</IfModule>
</Listing>

Allow the brand new web site with:

sudo a2ensite nextcloud

Allow the mandatory Apache modules:

sudo a2enmod rewrite headers env dir mime

Improve the PHP reminiscence restrict with the command:

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

Restart Apache:

sudo systemctl restart apache2

How one can full the set up

Lastly, open an internet browser and level it to http://SERVER/nextcloud, the place SERVER is the IP tackle or area of the internet hosting server. You have 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 (Determine A).

Determine A

The Nextcloud 25 web-based installer.

Click on Set up 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 (Determine B).

Determine B

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

And there you’ve it, you’ve simply put in the most recent and biggest launch from the tremendous builders of Nextcloud. Take pleasure in 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 professionals from Jack Wallen.

[ad_2]

Leave a Reply