How to Install NextCloud on a CentOS 7 VPS or Dedicated Server

How to Install NextCloud on a CentOS 7 VPS or Dedicated Server

Introduction

In today’s world, many organizations are worried about their data being handled by third parties, especially with the emerging data privacy leaks.

With this emerging need, NextCloud serves to solve the issue by allowing you to have on-premise cloud storage for your data. Just as Google Drive and Dropbox but in this case, you have 100% control over your data.

NextCloud is a cool client-server file synchronization software solution with many features and advantages including:

  • Allow for management of user and group using OpenID or LDAP
  • Allow you to access, synchronize and share your existing data on Dropbox, FTP, and NAS
  • List connected browsers/devices in the personal settings page. Allows the user to disconnect browsers/devices
  • Supports Two Factor authentication systems.
  • Allow sharing of files with other users, create and send password protected public links.
  • Notifying users via phone and desktop when someone on server shares files directly with them
  • Monitoring capabilities, Kerberos authentication and audio/video conferencing
  • Synchronize files with the Nextcloud server from Desktop clients and Mobile clients
  • Security which is enforced by use of security technologies to help prevent brute force attacks and also data privacy through end to end and client-end encryption
  • Its open source nature of course provides a free alternative to paid equivalents. The open software architecture also allows one to modify the software however they want hence more user focus

Prerequisites

Steps

Update system packages

$ sudo yum update -y && sudo yum upgrade -y

Install required dependencies

Alongside other required dependencies, install the required PHP packages necessary for the software to run.

$ sudo yum install php-xml php-cgi php-cli php-mysql php-mbstring php-gd php-curl php-zip wget zip

Download and install NextCloud

Get the software from the NextCloud official website. The current stable version as per the time this tutorial is being written is version 14.0.3.

$ wget https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip

Extract the downloaded file and move it into your webroot directory i.e. /var/www/

$ unzip nextcloud-14.0.3.zip
$ mv -r nextcloud-14.0.3 /var/www

 

Now recursively change the ownership of the moved folder so as to enable access.

$ sudo chown -R apache:apache /var/www/nextcloud
$ sudo chmod -R 755 /var/www/nextcloud

To install NextCloud,  we need to open it on the browser at http://IP_ADDR:8090 while replacing IP_ADDR with your appropriate IP address. You should see a similar screen as below.

How to Install NextCloud on CentOS 7

Configure as desired when following the prompts. Depending on the database you want to connect to,  you should use the admin credentials to the database. The server should be left as localhost.

Conclusion

After you successfully install the software, you can log into the dashboard now using your created credentials. It is vital that you protect your NextCloud installation.

A recommended best practice is use of an SSL certificate to connect to the management dashboard. To learn more about the product you can take a look comprehensively at the documentation here.

Check out these top 3 VPS services:

Kamatera
AU$5.97 /mo
Starting price
Visit Kamatera
Rating based on expert review
  • User Friendly
    3.5
  • Support
    3.0
  • Features
    3.9
  • Reliability
    4.0
  • Pricing
    4.3
Hostinger
AU$4.46 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7
Webdock
AU$1.57 /mo
Starting price
Visit Webdock
Rating based on expert review
  • User Friendly
    3.8
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.3
  • Pricing
    4.3

Part One: How to Monitor Nginx using Elastic Stack on a CentOS 7 VPS or Dedicated Server

This is Part I of a two-part tutorial explaining how to use the different compon
less than a minute
Idan Cohen
Idan Cohen
Marketing Expert

Part Two: How to Monitor Nginx using Elastic Stack on a CentOS 7 VPS or Dedicated Server

This tutorial will explain how to use the different components of the Elastic St
less than a minute
Idan Cohen
Idan Cohen
Marketing Expert

How to Install cPanel on a CentOS 7 VPS or Dedicated Server

This article provides step by step instructions on how to install cPanel on a Vi
less than a minute
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Install and Configure Linux Malware Detect on CentOS 7

This tutorial will help you install and configure Linux Malware Detect (LMD) on
less than a minute
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top