Install Nextcloud (Drop-in replacement for ownCloud) – Next generation file sharing Server on CentOS/RHEL/Fedora

Nextcloud is a Free & open source next generation Enterprise file hosting solution which allows the users to Access & share your files, calendars, contacts, documents, appointments, bookmarks, music, mail, audio call, video call, text chat & more from any device to nextcloud server & keeps your data safe. Nextcloud was started by ownCloud inventor Frank Karlitschek.

Nextcloud is developed in a transparent way with help of the open source community & keeps your files safe, secure and private. Nextcloud is extensible with new functionality to provide all you need to live your digital life & access your own data using an easy to use interface.

Nextcloud Features

  • File access & sharing
  • Security & control
  • Mobile & desktop clients
  • External storage
  • Calendar & Contacts
  • Secure audio & video calls
  • Collabora Online Office
  • Videos of Nextcloud in action

Prerequisites

Make sure you have to install LAMP or LEMP as per your requirements before proceeding Nextcloud installation because its required Web Server, PHP & database server.

How to install LAMP Stack on Linux Distribution

How to install LEMP Server on Linux Distribution

Install Additional PHP modules

By default few PHP modules are installed with LAMP or LEMP but Nextcloud required more PHP modules, so install required additional PHP modules & other prerequisites too.

[Install PHP modules on CentOS 7/RHEL 7/ Fedora]
$ sudo yum install -y httpd php php-mysql sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-mcrypt php-pear wget bizp2

Red Hat Enterprise Linux and CentOS 6 still ship with PHP 5.3 but Nextcloud requires PHP 5.4 or better. There are several third-party repositories that supply PHP 5.4, but you must use the Software Collections (SCL) repository to be in compliance with your OS.

Install PHP 5.4 modules on RHEL 6 systems

$ sudo subscription-manager repos --enable rhel-server-rhscl-6-eus-rpms
$ sudo yum install -y php54 php54-php php54-php-gd php54-php-mbstring php54-php-mysqlnd php54-php-pdo php54-php-json php54-php-xml php54-php-zip curl php54-php-curl php54-php-mcrypt php54-php-pear
$ sudo mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off
$ sudo service httpd restart

Install PHP 5.4 modules on CentOS 6 systems

$ sudo yum install centos-release-SCL
$ sudo yum install -y php54 php54-php php54-php-gd php54-php-mbstring php54-php-mysqlnd php54-php-pdo php54-php-json php54-php-xml php54-php-zip curl php54-php-curl php54-php-mcrypt php54-php-pear
$ sudo mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off
$ sudo service httpd restart

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...