Cloud Software

How to install the latest version of Nextcloud on Ubuntu Server 22.04

Jack Wallen takes a barely simpler route for the set up of the latest version of the Nextcloud cloud platform.

cloud computing technology concept transfer database to cloud. There is a prominent large cloud icon in the center and a small white icon on the connected polygons with a dark blue background.
Image: Ar_TH/Adobe Stock

For those who aren’t in the know, Nextcloud is a cloud-based suite of instruments that features issues like doc and file administration, calendar, chat (video and audio), electronic mail, varieties and contacts. In reality, for these , Nextcloud might simply turn into a drop-in substitute for the likes of both Google Workspace or Microsoft 365. I’ve been utilizing Nextcloud since its early days and I’m assured that virtually anybody can profit from this platform.

I need to present you the way to install the latest version of Nextcloud (v24) on Ubuntu Server 22.04. This time round, nevertheless, I’m going to make use of their installer script. Although this script doesn’t strip away some of the guide set up steps, it does make it barely simpler.

With that stated, let’s get to the set up.

SEE: Hiring Kit: Cloud Engineer (TechRepublic Premium)

What you’ll want

You’ll solely want two issues to make this work: A operating occasion of Ubuntu Server 22.04 and a person with sudo privileges. That’s it – let’s make like Kate Bush and do some cloudbusting.

How to install the needed dependencies

The installer script doesn’t deal with the set up of the dependencies, so now we have to take care of that first. To start, let’s install the full LAMP stack. Log into your Ubuntu Server and problem the command:

sudo apt-get install lamp-server^ -y

When that set up completes, take care of the PHP necessities with:

sudo apt-get install 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

Restart Apache with:

sudo systemctl restart apache2

Next, we’ll safe the database set up with:

sudo mysql_secure_installation

Make positive the doc root is owned by the Apache group with:

sudo chown -R www-data.www-data /var/www/html

How to create the database

Next, we should create a database. Log in to the MySQL console with:

sudo mysql -u root -p

Create the database with:


Next, create the Nextcloud database person with the command:

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

Where PASSWORD is a novel/robust password.

We now want to give the nextcloud person the needed permissions with the command:

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

Flush the privileges and exit the console with the two instructions:



How to obtain the installer script

Change into the doc root with:

cd /var/www/html

Download the installer with the command:


How to run the installer

Open an internet browser and level it to http://SERVER/setup-nextcloud.php, the place SERVER is the IP deal with or area of the internet hosting server. You shall be greeted by the first window in the installer wizard. Click Next and you must see a window indicating all dependency checks have handed (Figure A), which permits you to set the doc root for the set up.

Figure A

The Nextcloud 24 dependency verify window permits you to set the doc root for the set up.

You can both create a brand new listing home Nextcloud (by typing the identify subject) or kind a . to install it in the internet server doc root. Do one or the different, then click on Next and the script will obtain and unpack every thing needed. This will take anyplace from two to 10 minutes relying on the pace of your community connection and the energy of your server.

Once Nextcloud has been put in, you may be prompted to click on Next once more, the place you’ll be delivered to the database setup window (Figure B).

Figure B

Configuring the database for Nextcloud.

First, create an admin person and ensure to choose MySQL/MariaDB as the database. You will then fill out the database info as such:

  • Database person: nextcloud
  • Database password: the password you created throughout the creation of the database person in the MySQL console.
  • Database identify: nextcloud

Leave localhost as is after which click on Install. Once the database is taken care of, you’ll be requested if you’d like to install the really useful apps (Figure C).

Figure C

Installing the really useful apps for Nextcloud 24.

Click Install Recommended Apps, and when that finishes, you’ll be offered with the Nextcloud foremost window (Figure D).

Figure D

The Nextcloud foremost window is prepared for you to customise your set up.

You can now additional customise your set up by putting in extra apps or just begin working together with your new Nextcloud cloud platform. Congratulations on taking your productiveness to the subsequent degree.

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


Leave a Reply

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