How to Set Up NextCloud on CentOS 8

How to Set Up NextCloud on CentOS 8

How to Set Up NextCloud on CentOS 8

What Do I Need?

What is NextCloud?

NextCloud is one of the best self-hosted solutions for sharing and collaborating on documents, sending and receiving email, managing calendars, and having video chats without data leaks. As a fully on-premises solution, Nextcloud Hub provides the benefits of online collaboration without compliance and security risks. This is particularly useful if you’re running your own digital agency or web hosting company.

I personally recommend NextCloud over other open-source solutions, because of its large and passionate community and active development and support teams. Also, they regularly release updates and fixes. All things to be considered when choosing an appropriate platform solution for your particular use cases.

Install NextCloud

  1. Prepare your Webspace.

Before you can install and setup NextCloud you will need to ensure that you’ve done a couple of things first.

  • Create a database on your web server. If you’re using Plesk Onyx or cPanel you will be able to create a database in MySQL, with a phpmyAdmin control panel.
  • Ensure that you make a note of the database name, username and password used to create the database.
  • Install and enable SSL on your webspace.

  1. Download NextCloud Server Source.

Visit https://nextcloud.com/install/ and download the latest build script from their site. Don’t download it from anywhere except the Nextcloud domain.

How to Setup NextCloud on CentOS 8

  1. Unzip to NextCloud Server Source.

Unzip the contents NextCloud-20.0.1.zip, or whichever is the latest you downloaded at the time, to your computer hard drive.

  1. Upload NextCloud to Your Webspace.

Upload the contents of:

C:\Users\{Your User Profile}\Downloads\nextcloud-20.0.1\nextcloud\*.*

to your webspace. I’d recommend using WinSCP for the transfer. When connecting WinSCP always remember to ensure that you use SCP in preference to FTP or SFTP, it’s more efficient and secure. It’s highly recommended by the developers to upload the server source to a director outside of your webroot, ergo: outside of /var/www.

How to Setup NextCloud on CentOS 8

  1. Install NextCloud on Your Webspace.

  • Using your web browser visit:
http://{your web server address}/*.*

  • Enter your chosen administrator’s username and password.

How to Setup NextCloud on CentOS 8

  • Click the ‘Storage & database’ dropdown.
  • Enter the database name, username, and password used to create a database in step 1b.

How to Setup NextCloud on CentOS 8

  • Click ‘Finish setup’.
  • Once the installation is complete, just visit your domain and enjoy it because now you have the power of OneDrive and Google Drive running at your fingertips.

Next Steps

NextCloud is a complete solution; however, no solution is completely secure against human error or hackers. NextCloud is advanced enough to warn you in the administration interface if there are critical relevant options that are missing. It’s your personal responsibility as an ethical and conscientious web admin to monitor these issues, though.

For security and performance reasons, NextCloud uses the bcrypt algorithm. In the event of a DDoS Attack, and CPU demand increases exponentially, it only verifies the first seventy-two characters of the password. This includes user passwords, link share passwords, and external shares.

It’s recommended that you give PHP read access to /dev/urandom. In order to generate cryptographically secure pseudo-random numbers, an RFC 4086 (Randomness Requirements for Society) compliant mixer. This is used to request multiple random numbers from different sources and derives from these a final random number.

How to Provide Read Access to /dev/urandom.

  1. Using Putty find your php.ini file:
updatedb && locate php.ini
  1. Edit the php.ini file. Search in file for open_basedir = and replace it with:
open_basedir = /dev/urandom
  1. Restart apache:
sudo systemctl restart httpd.service

Conclusion

Following these easy-to-follow steps you should have your own cloud collaboration, sharing, and storage solution up and running in no time. Be sure to look out for articles coming out soon covering security and hardening your NextCloud solution. In the meantime, if you do experience issues or bugs, head over to the NextCloud Community Forums and either search or ask a question.

How to install Nextcloud 13 on Ubuntu 18

In this article, we will discuss step by step procedure to download and install
2 min read
Roman Frolov
Roman Frolov
Hosting Expert

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

NextCloud is one of the most popular open source file synchronization applicatio
2 min read
Kennedy Mbuvi
Kennedy Mbuvi
Author

How to Install and Setup CentOS 8

CentOS is a Linux operating system that provides an open-source, fully community
6 min read
JB Benjamin
JB Benjamin
Hosting Expert

How to Install mCrypt on CentOS 8

Essentially the mcrypt extension is a replacement for the classic Unix crypt com
2 min read
JB Benjamin
JB Benjamin
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