Learn how to deploy Nextcloud 25 on Ubuntu Server 22.04


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 will be and do. With their newest launch, Nextcloud shifts a number 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 photograph uploader and editor, AI-powered facial and object recognition for uploaded photographs, improved Discuss, a extra performant electronic mail consumer, higher contact group and extra.

SEE: Hiring Package: Cloud Engineer (TechRepublic Premium)

What’s most placing about Nextcloud 25 is the UI. The designers and builders have actually gone out of their option to make the platform way more user-friendly and trendy. As standard, there are additionally a number of routes for getting Nextcloud put in. Nonetheless, I wish to go the standard 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 person with sudo privileges. That’s it.

Learn how to 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

Learn how to set the MySQL root password

For some motive, the mysql_secure_installation failed me. As an alternative, 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.

Learn how to create the database and person

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 the brand new person with:

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

The place PASSWORD is a singular and robust password.

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

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

Flush the privileges and exit the console with the instructions:


Learn how to 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

Learn how to 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

Allow the brand new web site with:

sudo a2ensite nextcloud

Allow the mandatory Apache modules:

sudo a2enmod rewrite headers env dir mime

Enhance 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

Learn how to 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 person 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 person (Determine B).

Determine B

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

And there you might have it, you’ve simply put in the most recent and best launch from the advantageous builders of Nextcloud. Get pleasure from 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.


Leave a Reply

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