Record every new journey

Install Nextcloud on CentOS 7 Include SSL

0 520

Install Nextcloud on CentOS 7 – This guide will walk you through the installation of Nextcloud on CentOS 7 with PHP 7.3, Apache and MariaDB 10.4. You can optionally configure SSL encryption with Let’s Encrypt to ensure that access and data is being transferred through a secure tunnel. Nextcloud is an open-source seft-hosted syncing and file sharing server forked from ownCloud. It is written in PHP and JavaScript and has support for MySQL, PostgreSQL, SQLite and Oracle Database.

Install Nextcloud on CentOS 7 Include SSL (Let’s Encrypt)

Disable SELinux or Put in in Permissive mode

Disabling SELinux for smooth operations:

Install PHP and httpd

Disable default PHP 5.x enabled repository and enable one for PHP 7.3:

Install and Configure MariaDB / MySQL

Install MariaDB / MySQL database server on CentOS 7 using our previous guides. Choose one, recommended is MariaDB.

After the installation, login as a root user to MySQL console and create a new database for Nextcloud.

Download and Install Nextcloud on CentOS 7

Unzip the downloaded file & remove source file:

Move the resulting nextcloud folder to /var/www/html directory

Create data directory to store Nextcloud uploaded files. This can be any path e.g NFS mount point, SAN mount point e.t.c.

Give apache user and group the ownership of nextcloud folder.

Read Also >>

Configure Apache VirtualHost – Without SSL

Create an Apache configuration file for Nextcloud

Paste code below to file

Set correct ServerName and change other settings to suit your use.

When done, save the file and start httpd service.

If you have an active firewalld service, allow http and https ports.

Configure Apache With Let’s Encrypt SSL

To use Let’s Encrypt SSL certificate, first install certbot

Install Nextcloud on CentOS 7

Request for SSL certificate.

Install Nextcloud on CentOS 7

Don’t forget to change domain name & email above with yours

Modify your VirtualHost configuration file to look like below.

Access Nextcloud UI and finish installation

Open your nextcloud server URL as configured on Apache: http://files.example.com

Setup admin password

Setup Database, don’t forget to using MariaDB and set credentials

When done click the “Finish Setup” button. You should get the Files dashboard of Nextcloud. Now install Nextcloud Agent on your end device to start syncing files.

Thanks for using our guide to Install Nextcloud on CentOS 7.

You might also like
Leave A Reply

Your email address will not be published.