Nextcloud is a powerful open-source cloud storage and collaboration platform that allows you to store, access, sync, and share your files, calendars, contacts, and more. It provides a secure and private way to access your data from anywhere, using any device. Nextcloud offers features like file versioning, file sharing, real-time collaboration, and end-to-end encryption.
To install Nextcloud on CentOS 7, follow the steps below:
sudo yum install epel-release
	
sudo yum install httpd
	
sudo yum install php php-mysql php-gd php-xml php-mbstring php-intl
	
sudo systemctl start httpd sudo systemctl enable httpd
	
sudo vi /etc/php.ini
	Set the following values:
	
sudo yum install mariadb-server mariadb sudo systemctl start mariadb sudo mysql_secure_installation
	
sudo mysql -u root -p CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud_user'@'localhost' IDENTIFIED BY 'your_password'; FLUSH PRIVILEGES; EXIT;
	
sudo mkdir /var/www/html/nextcloud cd /var/www/html sudo curl -sS https://download.nextcloud.com/server/releases/latest.tar.bz2 | sudo tar -xjC /var/www/html
	
sudo chown -R apache:apache /var/www/html/nextcloud sudo chmod 750 /var/www/html/nextcloud
	
sudo vi /etc/httpd/conf.d/nextcloud.conf
	Add the following content:
	
   ServerName cloud.example.com   DocumentRoot /var/www/html/nextcloud         Options +FollowSymlinks     AllowOverride All     Require all granted            Dav off          SetEnv HOME /var/www/html/nextcloud     SetEnv HTTP_HOME /var/www/html/nextcloud       ErrorLog /var/log/httpd/nextcloud_error.log   CustomLog /var/log/httpd/nextcloud_access.log combined 
	
sudo systemctl restart httpd
	Congratulations! You have successfully installed Nextcloud on CentOS 7. You can now start using Nextcloud to store, access, and collaborate on your files and data.
What our customers say about us
Create your free account today.