How to install NextCloud server on Rocky Linux 8 – Guide

Nextcloud is an enterprise-ready client-server software suite designed to help users create, host, and share files. Nextcloud is a free and open source file hosting service, making it an excellent choice for home users with scalability for enterprise-grade deployments. NextCloud is free and open source software to enable collaboration and sharing. It allows files to be accessed and stored on various devices such as PCs and phones. NextCloud works similarly to DropBox as it allows seamless collaboration on different projects, manages your calendar, sends and receives emails and also makes video calls. Once the setup is successfully completed, the login page will appear and enter the username and password you provided earlier to gain access. Nextcloud is free and open source software that you can use to create file hosting services like Dropbox, Google Drive or Mega.NZ. It was created by original cloud developer Frank Karlitschek himself. In 2016 he forks his own cloud project and creates a new project called “Nextcloud”. At this point, the Nextcloud project quickly grew to become more than file hosting software. With the support of many plugins, Nextcloud becomes a collaboration software. Once the setup is successfully completed, the login page will appear and enter the username and password you provided earlier to gain access.

Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Rocky Linux 8 as the operating system with at least 2GB of RAM. Connect to your Cloud Server via SSH and login using the credentials highlighted at the top of the page. Once you are connected to your server, run the following command to update your base system with the latest packages available.

Install LAMP Stack

Before starting, a LAMP stack must be installed on your server. You can install it using the following command: After successful installation, start Apache and MariaDB services and enable them to start after system reboot:

Create a database and user for NextCloud

First, secure the MariaDB installation and set the MariaDB root password using the following command:

Then log in to MariaDB using the following command:

Nextcloud uses MariaDB or MySQL as a database backend. First, log in to MariaDB with the following command: Once logged in, create a database and a user with the following command: Then grant all privileges to the Nextcloud database using the following command: Then release the privileges and exit the MariaDB shell using the command below:

Install NextCloud

At the time of writing this tutorial, the latest version of Nextcloud is 21. You can download it using the following command: When the download is complete, extract it to the Apache web root directory with the following command: Then create a data directory for Nextcloud with the following command: Then change the ownership of the Nextcloud directory to Apache:

Create an Apache virtual host configuration file

Next, you will need to create an Apache virtual host configuration file to host Nextcloud using the Apache web server. Save the file when finished and restart the Apache service to apply the changes:

Configure firewall

If the firewall is installed and running on your server, you will need to allow port 80 through the firewall. You can enable this using the following command: Then reload the firewall to apply the changes:

Access NextCloud

To access Nextcloud, open your web browser and visit the URL http://nextcloud.yourdomain.com. You should see the following screen: Provide your admin account name, password, set your data directory, database credentials and click Finish Setup button. You will be redirected to Nextcloud login page: Provide username, password for your admin account and click login button. You should see the Nextcloud dashboard.

Final note

I hope you like the guide How to install NextCloud server on Rocky Linux 8. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.