preface
Has been mainly use baidu cloud network backup and other micro cloud what collocation is used, what why, convenient to use personal data to put their own can not find, have seen set personal network backup before but have not been to before, this time thinking about take time to have a personal network location to use, by the way, could you write down your build process.
Framework to choose
Reasons for choosing NextCloud:
- Each platform has a corresponding client, convenient.
- Open source, you can do it yourself.
- The function is relatively perfect.
NextCloud website
The server
I have checked the following and found that UCloud is doing activities recently, which is relatively cheap.
Register link
To register
Coupon redemption connecting
To the coupon redemption
System version
When I buy, I directly follow the default, the default system is CentOS 8.
The installation
Install the DNF
yum install dnf
dnf update -y
Copy the code
Install the Apache
DNF install -y HTTPD // start systemctlenable httpd.service
systemctl start httpd.service
Copy the code
Installing PHP
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm dnf install yum-utils dnf module reset php dnf module install PHP :remi-7.4 DNF install -y PHP php-gd php-mbstring php-intl php-pecl-apcu php-mysqlnd php-opcache php-json php-zip PHP :remi-7.4 DNF install -y PHP php-gd php-mbstring php-intl php-pecl-apcu php-mysqlnd php-opcache php-json php-zip php-domCopy the code
Installing the Database
DNF install -y mariadb mariadb-server // start systemctlenableMariadb. service systemctl start mariadb.service // Configure the password mysql_secure_installationCopy the code
Install nextcloud
Wget HTTP: / / https://download.nextcloud.com/server/releases/nextcloud-18.0.3.zip / / unzip nextcloud - *. Zip/cp/copy to the Apache directory - R nextcloud / / var/WWW/HTML / / / create a data directory mkdir/var/WWW/HTML/nextcloud/data / / set the permissions and restart chown -r apache: apache /var/ WWW/HTML/nextCloud systemctl restart httpd.service // If you are SELinux, run semanage fcontext-a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/data(/.*)? '
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/config(/.*)? '
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/apps(/.*)? '
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/.htaccess'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/.user.ini'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)? '
restorecon -R '/var/www/html/nextcloud/'
setsebool -P httpd_can_network_connect on
Copy the code
Once all deployed, you can access the page configuration
http://yourdomain/nextcloud
Copy the code
Fill in your administrator account password here
The client message can be downloaded from the official website mentioned above.
Domain name visit
Through the domain name http://yourdomain/nextcloud, need to open the nextcloud/config/config. PHP, find trusted_domains, add in the array.
Domestic word website still needs to put on record!