Tips on how to 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 might 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 picture 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 hanging about Nextcloud 25 is the UI. The designers and builders have actually gone out of their strategy to make the platform far more user-friendly and trendy. As ordinary, there are additionally a number of routes for getting Nextcloud put in. Nevertheless, I wish 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.

Tips on how to set up the required 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

Tips on how to set the MySQL root password

For some motive, 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 robust/distinctive password.

Exit from the console with exit.

Tips on how to 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 required 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

Tips on 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 correct permissions with:

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

Tips on how to configure Apache for Nextcloud

We now must 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 website with:

sudo a2ensite nextcloud

Allow the required 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

Tips on how to full the set up

Lastly, open an online browser and level it to http://SERVER/nextcloud, the place SERVER is the IP handle or area of the internet hosting server. You need 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 underneath 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 delicate, however necessary improve from the earlier iterations.

And there you will have it, you’ve simply put in the newest and biggest launch from the high-quality 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 newest tech recommendation for enterprise execs from Jack Wallen.

[ad_2]

Leave a Reply