How to install Nextcloud Hub II with Nextcloud Office

2 years ago 443

Nextcloud Hub II is here, and it's a large betterment implicit erstwhile iterations. Jack Wallen walks you done the process of installing this caller merchandise connected Ubuntu Server.


Image: Jack Wallen

Nextcloud 23 brings a large overhaul to the level and introduces Nextcloud Office and plentifulness of different features and fixes to marque it an outstanding prime for anyone looking to big a full-fledged unreality work in-house (in your information center, your cloud-hosted supplier oregon adjacent connected a server successful your home).

The caller features include:

  • Profile leafage and automatic idiosyncratic settings
  • Administration task delegation
  • Nextcloud Groupware
  • Nextcloud Office
  • Nextcloud Backup

This mightiness beryllium 1 of the much important updates to travel from the Nextcloud developers.

I'll locomotion you done the process of installing Nextcloud 23 (aka Nextcloud Hub II) connected Ubuntu Server 21.10. 

SEE: Checklist: How to negociate your backups (TechRepublic Premium)

What you'll request

To successfully instal Nextcloud 23, you'll request a moving lawsuit of Ubuntu Server (preferably either 20.04 oregon newer) and a idiosyncratic with sudo privileges. That's it; let's marque immoderate magic.

How to instal Apache, MySQL and dependencies

The archetypal happening we'll bash is instal our web and database servers. Log into Ubuntu and tally the installation of everything indispensable with the command:

sudo apt-get instal lamp-server^ -y

Once the supra bid completes, commencement and alteration the services with the commands:

sudo systemctl commencement apache2 sudo systemctl alteration apache2 sudo systemctl commencement mysql sudo systemctl alteration mysql

Next, we'll instal the remaining dependencies with the command:

sudo apt-get instal 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 make the MySQL database

Before we make the database, let's unafraid the MySQL installation with the command:

sudo mysql_secure_installation

Make definite to springiness the MySQL admin users a strong/unique password and reply y to the remaining questions.

Log successful to the MySQL console with the command:

sudo mysql -u basal -p

Create a caller database with:


Create the Nextcloud database idiosyncratic with the command:

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

Where PASSWORD is simply a unique/strong password.

Give the nextcloud idiosyncratic the indispensable permissions with the command:

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

Flush the privileges and exit the console with the 2 commands:


How to download, unpack and determination the Nextcloud record

Download Nextcloud 23 with the command:


Unzip the downloaded bundle with:


Move the recently created record to the Apache papers basal with:

sudo mv nextcloud /var/www/html/

Give the recently relocated folder the due ownership with:

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

How to make the Apache configuration record

Create a caller Apache .conf record with the command:

sudo nano /etc/apache2/sites-available/nextcloud.conf

In that file, paste the following:

Alias /nextcloud "/var/www/html/nextcloud/" <Directory /var/www/html/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud </Directory>

Enable the indispensable Apache modules:

sudo a2enmod rewrite headers env dir mime

Enable the caller Nextcloud tract with:

sudo a2ensite nextcloud

Change the PHP representation limit:

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

Restart Apache with:

sudo systemctl restart apache2

How to entree the web installer and decorativeness up

Open a web browser that has entree to the aforesaid web that hosts the caller Nextcloud server and constituent it to http://SERVER/nextcloud (Where SERVER is the IP code oregon domain sanction of the hosting server). In the resulting leafage (Figure A), marque definite to make a caller admin idiosyncratic and the, successful the database section, capable it retired arsenic such:

  • Database user: nextcloud
  • Database password: the password you created successful MySQL console
  • Database name: nextcloud

Figure A


The Nextcloud 23 web installation is acceptable to implicit the setup.

Since the database is being hosted connected the aforesaid server, permission the determination acceptable to localhost. Leave the container checked for Installed recommended apps and click Finish setup. When the installation completes, you'll beryllium automatically logged into the tract arsenic the admin user.

A astonishing caveat

Upon finishing up the installation, I was amazed to find nary motion of the Nextcloud Office feature. Creating a caller record successful the Files exertion lone gives you the enactment to make a substance file. I've reached retired to the developers to find retired if determination is an contented oregon immoderate different measurement that indispensable beryllium taken to alteration the Nextcloud Office diagnostic (because it is not evident successful either the Apps oregon the Settings windows). 

My interaction with Nextcloud informed maine the installation should person installed Collabora and the Nextcloud connector by default. It did not bash that. Fortunately, those pieces tin beryllium added from the Nextcloud App Market, truthful marque definite to instal Collabora Online and Collabora Online Built-in CODE Server from the App store. Once you've installed some of those apps, you should beryllium capable to make documents, spreadsheets and presentations successful Nextcloud.

And that's each determination is to installing the latest iteration of Nextcloud. I'll revisit Nextcloud Hub II soon to speech astir the caller backup solution.

Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.

Open Source Weekly Newsletter

You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays

Sign up today

Also see

Read Entire Article