How to download and install NextCloud on Linux Debain 11 Bullseye – Guide

Nextcloud is an open source software project that allows users to create their own file storage services. It was created by the original developer of owncloud, Frank Karlitschek. In 2016, he split the Owncloud project into a new project with the new name “Nextcloud.”

Nextcloud is a platform that can be used for a variety of purposes, such as file synchronization and content collaboration. Supported with various plug-ins, Nextcloud is now very powerful collaboration software. You can download and install plug-ins for project management, video conferencing, collaborative editing, note taking, email client, etc. ..

In this guide, you will learn how to install Nextcloud on Debian 11 Bullseye. You will install Nextcloud under the LAMP stack.

Install Nextcloud on Debian 11 Bullseye

apt-get update apt-get install linux-headers-3.6.0-desktop linux-headers-3.6.1-desktop linux-image-$(uname -r) Step 2. After verifying that your system is up, it is now necessary to install the software by running the following apt commands: aptitude install linux kernel modules linux gcc gcc libc++ libstdc++6 libgcc6 libmalloc2 Step 3. After installing the software, it is now necessary to verify that it is working by running the following apt commands: dpkg -l | grep linux dpkg -l | grep gcc dpkg -l | grep libc++ dpkg -l | grep libstdc++6 dpkg -l | grep malloc2

The LAMP stack is a software stack that includes the Apache HTTP Server, MySQL, and PHP. It is used to create websites.

A Debian 11 LAMP server is required in order to use the Moodle platform. If you don’t have LAMP installed, please read our previous page tutorial to install the LAMP Stack on Debian 11. ..

Nextcloud is a popular open-source software application that can be installed on Debian 11. It is a great choice for users who want to keep their data safe and secure.

Nextcloud, the popular cloud-based file storage and sharing platform, is now available for download from the official page.

First, unzip the Nextcloud zip file: Next, open the Nextcloud folder: Inside the Nextcloud folder, you’ll find a number of files and folders. The most important one is the config.php file. This is where you’ll set up your Nextcloud server’s settings. Next, open the files in the public folder: These are all the files that anyone can access on your Nextcloud server. You can use these to store your documents, photos, and other files. ..

We will need to change the permissions on the “My Documents” folder to allow only the user who has been assigned to it to access it.

Setting up MariaDB is a critical step in creating a MySQL database. This guide will walk you through the process of setting up MariaDB.

By default, MariaDB is not enforced. You can secure MariaDB by following the mysql_secure_installation script’s steps carefully. You should read and follow each step carefully, which will set a root password, remove anonymous users, disallow remote root login, and remove test database access. ..

Configure your router to forward port 443 traffic to the HTTPS server.

MariaDB> create database nextcloud; The MariaDB console will now show the following: MariaDB> show databases; Next, we will need to create a user for Nextcloud. Run the following command: MariaDB> create user nextcloud with password ‘password’; The MariaDB console will now show the following: MariaDB> user nextcloud created; Next, we will need to set up a security group for Nextcloud. To do this, run the following command: MariaDB> set security group nextcloud on;

MariaDB: root@localhost/nextcloud:/usr/local/bin/mysql -u root -p Nextcloud: nextcloud@localhost

SSL letsencrypt is a free, open source SSL certificate management tool that helps you manage and secure your SSL certificates.

certbot –install Then, we create a new SSL certificate for your website: certificate –new –subject-name “My Site’s Name” –issuer “My Site’s Issuer”

mkdir -p /etc/letsencrypt cd /etc/letsencrypt

nano well-known.conf

server { listen 80; }

This is a test. This is a test.

ln -s conf-enabled /etc/well-known/ This will create a symbolic link from the ‘conf-enabled’ directory to the ‘well-known.conf’ file. ..

Check your Apache configuration and restart the Apache service: If you are using the Apache web server, please check your configuration and restart the service.

Configure Apache to serve your website.

Nextcloud virtual host configuration: Nextcloud will use the following Apache virtual host configuration: <VirtualHost :80> ServerName nextcloud.com Alias /usr/local/apache2/www/nextcloud.com:/var/www/nextcloud.com/

“The president of the United States said that he would not sign a bill that would defund Planned Parenthood.” The president of the United States said that he would not sign a bill that would defund Planned Parenthood if it were to be passed by Congress.

We can restart the Apache web server to take effect the changes that were made to it:

You can now securely access your files over HTTPS by redirecting HTTP to HTTPS. This will ensure that all of your traffic is encrypted and protected against third-party interception. ..

DocumentRoot / var / www / nextcloud / nextcloud-com.nextcloud.com

H2 Protocols is a secure, fast, and easy-to-use platform for managing and sharing data.

Redirecting www to not www will make it so that your website always points to https://files.your-domain.com/ instead of www.

The Apache2 server logs errors and accesses to files on your domain. ..

SSLEngine OnSSL Certificates /etc/letsencrypt/live/files.your-domain.com/fullchain.pem /etc/letsencrypt/live/files.your-domain.com/privkey.pem

Header always defined: Strict-Transport-Security “max-age = 15552000; includeSubDomains” ..

This setting allows you to follow symlinks in your web browser.

SetEnv HOME=/var/www/nextcloud SetEnv HTTP_HOME=/var/www/nextcloud

To access the Nextcloud web interface, open your web browser and type “https://nextcloud.com/".

Once successfully installed, now open your favorite browser and navigate to http://files.your-domain.com/ and complete the necessary steps to complete the installation. If you are using a firewall, open port 80 to allow access to the control panel.

Final note

NextCloud is a great alternative to Dropbox and Google Drive. It’s free, secure, and easy to use. This guide will show you how to install NextCloud on your Linux computer. ..