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
$4.00 /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
ScalaHosting
$2.95 /mo
Starting price
Visit ScalaHosting
Rating based on expert review
  • User Friendly
    4.8
  • Support
    4.3
  • Features
    4.4
  • Reliability
    4.8
  • Pricing
    4.5
Liquid Web
$5.00 /mo
Starting price
Visit Liquid Web
Rating based on expert review
  • User Friendly
    3.8
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.6
  • Pricing
    3.8

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
5 min read
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
3 min read
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
3 min read
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
4 min read
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