Requirements for installation of Nextcloud on RHEL7 and CentOS7
1.Minimum of 512 MB RAM
2.Web Server: Apache (httpd) / Nginx
3.Database Server: MariaDB / MySQL / PostgreSQL
4.PHP 5.4 +
1.Setting up of Apache Web Server, PHP and other systems.
yum install 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
Launch and create service for Apache Web server’s using systemctl:
systemctl start httpd; systemctl enable httpd
2.Installation and setting up of MariaDB for Nextcloud
Execute command for MariaDB installation.
yum install -y mariadb-server mariadb
Launch and create MariaDB service.
systemctl start mariadb; systemctl enable mariadb
Execute the initial database configuration, set up a root password for MariaDB and other parameters. Delete a test database and remote root login.
Create a database called nextcloud_db. From the terminal, connect with the console mysql and execute commands.
mysql -u root -p
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database nextcloud_db;
Query OK, 1 row affected (0.00 sec)
Create a user nxtuser and give him all the privileges for the base nextcloud_db.
MariaDB [(none)]> grant all on nextcloud_db.* to 'nxtuser'@'localhost' identified by 'Nextcloud@123#';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
3.Downloading the latest version of Nextcloud
There’re two ways to download the latest version of Nextcloud.
1.To open Nextcloud official website https://download.nextcloud.com/server/releases/ and download the latest version.
2.To download Nextcloud directly to the server using wget.
Keep in mind: you should ensure that all the packages wget and bzip2 are installed on your server. If they aren’t set up, execute the following commands for their installation.
yum install wget bzip2 -y
Unwrap the downloaded Nextcloud repository tar.biz2 to root catalog of your webserver /var/www/html
tar -jxpvf nextcloud-9.0.53.tar.bz2 -C /var/www/html/
Install the necessary attributes for directory and files.
chown -R apache:apache nextcloud
4. Opening of necessary ports in firewall for Nextcloud
In case the firewalld is used as a main firewall, execute the following commands.
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
Switch selinux into permissive mode.
Сheck/change file /etc/sysconfig/selinux
5. Entering Nextcloud via web browser
In case Nextcloud was successfully installed, we get access via browser’s link and receive the invitation window.
In our case it’s IP 192.168.16.40
Insert a user name and admin password. Choose MariaDB data base type and fill in the fields with the name of database, user name and password. After filling in the fields, push “Finish” button.
6. Changing file upload limits in Nextcloud (upload file size)
By default, you can upload files up to 2 MB. If you need to upload files larger than 2 MB, change parameters in the file /etc/php.ini. For example, let’s set up 30 MB size.
post_max_size = 30M
upload_max_filesize = 30M
systemctl restart httpd
7. Setting up security configuration
Check the following in the file /var/www/owncloud/data/ :
deny from all
In the file /etc/httpd/httpd.conf (or in the file of your virtual Nextcloud host), check if the directives processing of .htaccess file is on.
8. Setting up WebDAV clients
If necessary, you can use WebDAV for connecting a network drive of your Nextcloud user.
For OS Linux
In Nautilus (the file browser), select File > Connect to … and select WebDAV. Enter the information you need, such as a host name, a directory, port and username. Check the box to create a bookmark, and you’ll find it in your Files and Folder lense and in the left pane in Nautilus.
You’ll be able to use your WebDAV share as if it were a local folder.
For Windows clients
Firstly, you need to amend register, make changes in data for processing authorization policy:
run -> regedit
A key: BasicAuthLevel, set up a value 2
Restart the system and connect a network drive:
Choose the necessary drive and indicate the way in the field “Folder”:
Unlike Linux connection, the indicated way should be a bit different.
Now you know how to add more room for your data using the possibilities of CentOS7. Give this a try and experience the benefits of Nextcloud local network storage.
You might find this interesting
Bosch Classic Cars - Digital Engagement Platform for 19K Vintage Car Owners
Liferay Portal Performance Tuning Services for a Major Online Gaming Software Supplier
Three Authentication Approaches to Keep Your Clients Safe
How to apply React Native while developing heavy cross-platform mobile apps
Reasons to believe in Ionic hybrid app
SEO Tips & Tricks for Single Page Web Applications
How to Secure Web Product Development — FREE eBook
Digital Transformation: the Philosopher’s Stone of Economic Growth
Angular 5 VS React.js – Who’s Going to Set the Tone in the Upcoming Year?
Agile and DevOps are Key Drivers of Digital Transformation
K&C insights: how to make your workflow work for you
GoLang: Features, Pros and Cons
Reference: Major producer of auto electronics and spare parts
Hybrid, SaaS+PaaS, IoT: Cloud Trends to Catch in 2018
Angular vs. React vs. Vue – Let the Fight Start!
DevOps with Puppet: Tips on Setting it up for Configuring Servers
JS Frameworks: The Trendiest Frameworks You Should Know
Micro-service Architecture for New AngularJS Application - Case Study
Native or Hybrid Apps: A Quick Comparison
Centralized Logging with Logstash, Elasticsearch & Kibana
A Guidance for Keeping Your Web Development Project Within the Budget: Three Key Pillars
Plan to Succeed: 4 Tips for Building Scalable Software
Microservices… when do we need them?
Debunking imaginary shortcomings of cross-platform frameworks
Portal Performance Tuning For Major German Travel Agency
Technologies that Foster Digital Transformation
How to Make Your Web Solution Rock: 7 Areas to Check
4 Time-Saving Ways to Test Your Cross Platform Mobile App
Angular 5.0.0 – A Better Version of Itself
Top Tools for Cost-Effective Web Development — eBook
A secret formula of an agile dream team
Cloud Deployment: Overview of Options
How to Motivate Your Dedicated Team to Work with Legacy Projects
White Label: A Customized Software Solution from a Business and Tech Perspective
Cost efficient technologies
Scaling software solutions - how it works
How to setup Kubernetes cluster on AWS
Docker: Virtualize Your Development Environment Right
When Microservices Help Make Future-Ready Products
How to Ramp up Your Team Wisely
How the QA Team Tests Your Project
How We Manage Our Infrastructure with Chef
Reformation of Deployment Cycle for Bosch Classic Cars Portal
Fast and Lightweight Mobile Application based on PhoneGap/ Cordova
Drivelog.de — Web Marketplace for Car Owners and Service Providers
Use case: how to build and run Docker containers with NVIDIA GPUs
How We Use Ansіble for Configuration of Our Environments
Angular 2.0 vs Angular 1.4. What fits you best?
Big Data: Why Your Business Needs it ASAP
How a Company Can Benefit from White Label: K&C experience
How to Build a Rancher & Docker Based Cloud
Setting Up: Traefik Balancer In Rancher Cloud
Determining Approaches to Mobile App Development
Dedicated Teams for Web Development: Choice Criteria to be Checked
Angular 4 vs React – what to choose in 2017
The BPM in the Microservice Environment
ROCKET.CHAT as an internal messaging system and helpdesk platform
Monolith, Microservices, Serverless... Are We in the Middle of the Way?
JQuery vs. Angular: Ad Astra per Aspera
How to start services on Linux
Advanced Technologies for Marketing Automation
Node.js vs. Angular.js – Two Sides of the Same Coin
AWS DevOps: A New Way to Run Business
Why It’s Better to Use Vue.js than Angular and React in 2018
Migration from Angular 1 to Angular 5
Information Security with AWS DevOps
Europe’s Big Payments Directive PSD2
The Platform Providing Event Organization
Golang vs. Node.js
VAIX - Fault tolerant infrastructure for 24/7 high-load machine learning service
Our case: Marketplace for gaming goods
Angular 6 Will Be A Hit
Web App Security 101: Keep Calm and Do Threat Modeling
All You Wanted to Know About Chatbot Platforms
What's New in React 16.3.0 - 16.4.2: Features Overview
ANGULAR 6 versus REACT 16.3
GDPR: Smart Practices
Fintech Apps - A Lucrative Solution for Customers and Businesses Alike
Swimming with Sharks
Node.js 10.0.0: Everyone’s Favorite Got Even Better
Rancher 2.0: A Quick Look at the New Version
How to Save Money Using Your Own Infrastructure
I’m Tired of Blockchain Hype, Are You?
Progressive Web Apps and Why You May Need Them
Don’t Treat Me Like a Fool: The worst thing you can do for your business
Web App Security 101: How to Defend Against a Brute Force Attack
How to Convert Your Business to an Amazon-Style Market Leader
Culture eats technology for breakfast
How to Control Agile Development: Progress and Costs
How to Become a Leader in Your Market
SSR or CSR for Progressive Web App
Angular 6 vs. Ember 3
Scaled Agile: Agile Approaches Extended Beyond The Team Level
Security in Kubernetes and How Companies Can Benefit from It
DevOps Becomes DevSecOps to Secure Your Application
JAMSTACK IS THE NEW FACE OF STATIC SITES
Hashicorp in Kubernetes: The short guide for Consul & Vault
What Is Quality Assurance and Why You Need It Immediately
Back-end,Amazon Web Services
AWS: Debugging Lambda Functions
The Power of the Holistic Business Analysis
Ember, jQuery, Angular, React, Vue: What to Choose?
Kubernetes backup with Heptio Ark
What to Choose: NFS or CEPH?
Web,Mobile,Back-end,Amazon Web Services
Serverless Architecture for Modern Apps: Stacks Providers & Caveats
Web,Mobile,Back-end,Amazon Web Services
Why Enterprises Choose Serverless Architecture