Thu. Jan 20th, 2022


Nextcloud Hub II is right here, and it is a massive enchancment over earlier iterations. Jack Wallen walks you thru the method of putting in this new launch on Ubuntu Server.

nextcloudhero.jpg

Picture: Jack Wallen

Nextcloud 23 brings a serious overhaul to the platform and introduces Nextcloud Workplace and loads of different options and fixes to make it an impressive alternative for anybody seeking to host a full-fledged cloud service in-house (in your knowledge heart, your cloud-hosted supplier and even on a server in your house).

The brand new options embody:

  • Profile web page and automated consumer settings
  • Administration process delegation
  • Nextcloud Groupware
  • Nextcloud Workplace
  • Nextcloud Backup

This is likely to be one of many extra vital updates to come back from the Nextcloud builders.

I am going to stroll you thru the method of putting in Nextcloud 23 (aka Nextcloud Hub II) on Ubuntu Server 21.10. 

SEE: Guidelines: Easy methods to handle your backups (TechRepublic Premium)

What you will want

To efficiently set up Nextcloud 23, you will want a working occasion of Ubuntu Server (ideally both 20.04 or newer) and a consumer with sudo privileges. That is it; let’s make some magic.

Easy methods to set up Apache, MySQL and dependencies

The very first thing we’ll do is set up our net and database servers. Log into Ubuntu and run the set up of every little thing mandatory with the command:

sudo apt-get set up lamp-server^ -y

As soon as the above command completes, begin and allow the companies with the instructions:

sudo systemctl begin apache2
sudo systemctl allow apache2
sudo systemctl begin mysql
sudo systemctl allow mysql

Subsequent, we’ll set up the remaining dependencies with the command:

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

Easy methods to create the MySQL database

Earlier than we create the database, let’s safe the MySQL set up with the command:

sudo mysql_secure_installation

Make certain to provide the MySQL admin customers a powerful/distinctive password and reply y to the remaining questions.

Log in to the MySQL console with the command:

sudo mysql -u root -p

Create a brand new database with:

CREATE DATABASE nextcloud;

Create the Nextcloud database consumer with the command:

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

The place PASSWORD is a novel/robust password.

Give the nextcloud consumer the mandatory permissions with the command:

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

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

FLUSH PRIVILEGES;
exit

Easy methods to obtain, unpack and transfer the Nextcloud file

Obtain Nextcloud 23 with the command:

wget https://obtain.nextcloud.com/server/releases/nextcloud-23.0.0.zip

Unzip the downloaded bundle with:

unzip nextcloud-23.0.0.zip

Transfer the newly created file to the Apache doc root with:

sudo mv nextcloud /var/www/html/

Give the newly relocated folder the right possession with:

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

Easy methods to create the Apache configuration file

Create a brand new Apache .conf 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/>
    Choices +FollowSymlinks
    AllowOverride All
      <IfModule mod_dav.c>
        Dav off
      </IfModule>     
     SetEnv HOME /var/www/html/nextcloud
    SetEnv HTTP_HOME /var/www/html/nextcloud
</Listing>

Allow the mandatory Apache modules:

sudo a2enmod rewrite headers env dir mime

Allow the brand new Nextcloud web site with:

sudo a2ensite nextcloud

Change the PHP reminiscence restrict:

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

Restart Apache with:

sudo systemctl restart apache2

Easy methods to entry the online installer and end up

Open an online browser that has entry to the identical community that hosts the brand new Nextcloud server and level it to http://SERVER/nextcloud (The place SERVER is the IP tackle or area title of the internet hosting server). Within the ensuing web page (Determine A), be sure to create a brand new admin consumer and the, within the database part, fill it out as such:

  • Database consumer: nextcloud
  • Database password: the password you created in MySQL console
  • Database title: nextcloud

Determine A

nc23.jpg

The Nextcloud 23 net set up is able to full the setup.

For the reason that database is being hosted on the identical server, go away the situation set to localhost. Go away the field checked for Put in really useful apps and click on End setup. When the set up completes, you will be routinely logged into the location because the admin consumer.

A shocking caveat

Upon ending up the set up, I used to be shocked to search out no signal of the Nextcloud Workplace characteristic. Creating a brand new file within the Recordsdata utility solely offers you the choice to create a textual content file. I’ve reached out to the builders to search out out if there is a matter or another step that should be taken to allow the Nextcloud Workplace characteristic (as a result of it’s not apparent in both the Apps or the Settings home windows). 

My contact with Nextcloud knowledgeable me the set up ought to have put in Collabora and the Nextcloud connector by default. It didn’t try this. Happily, these items may be added from the Nextcloud App Market, so be sure to put in Collabora On-line and Collabora On-line Constructed-in CODE Server from the App retailer. As soon as you’ve got put in each of these apps, you must have the ability to create paperwork, spreadsheets and shows in Nextcloud.

And that is all there’s to putting in the newest iteration of Nextcloud. I am going to revisit Nextcloud Hub II quickly to speak in regards to the new backup answer.

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

Additionally see



Source link

By admin

Leave a Reply

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