banner
云野阁

云野阁

闲云野鹤,八方逍遥

Implement Nextcloud Private Cloud Storage

Task Objectives#

  1. Complete the setup of Nextcloud private cloud storage

Deployment Guide#

Basic Environment Preparation#

Configure firewall policies

firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload

Configure SELinux policies

Set SELinux to permissive or disabled.

#Modify
setenforce 0
sudo sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
#or
setenforce 0
sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config

Install Apache#

yum -y install httpd

Install PHP#

yum -y install php
#Install PHP module dependencies
yum -y install php-zip php-dom php-xml php-mbstring php-pdo php-gd

Add Nextcloud Site Configuration File#

mkdir /var/www/html/nextcloud/
chmod 777 /var/www/html/nextcloud/
#Create file
vi /etc/httpd/conf.d/nextcloud.conf
<VirtualHost *:80>
  DocumentRoot /var/www/html/nextcloud/
  ServerName  your.server.com

  <Directory /var/www/html/nextcloud/>
    Require all granted
    AllowOverride All
    Options FollowSymLinks MultiViews

    <IfModule mod_dav.c>
      Dav off
    </IfModule>

  </Directory>
</VirtualHost>

Download Nextcloud Installation File#

wget -P /var/www/html/nextcloud/ https://download.nextcloud.com/server/installer/setup-nextcloud.php

Start Services#

systemctl start httpd
systemctl enable httpd

Access via Browser#

Enter http://172.20.1.51/setup-nextcloud.php in the browser and follow the prompts to set up. As shown in the image below.

2

Set the username and password, install the database as shown in the image below.

4

Successfully enter the content interface, deployment completed, as shown in the image below.

3

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.