Home>Article>Topics> Teach you how to build your own network disk based on Pagoda Panel and nextcloud

Teach you how to build your own network disk based on Pagoda Panel and nextcloud

藏色散人
藏色散人 forward
2020-06-19 13:23:31 12639browse

The following tutorial column ofPagoda Installationwill introduce to you how to build your own network disk based on the Pagoda panel and nextcloud. I hope it will be helpful to friends in need!

Teach you how to build your own network disk based on Pagoda Panel and nextcloud

1. InstallationPagodaControl Panel and LNMP Environment

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

It takes a long time to install. After the installation is completed, you can see the login information below , and then just log in with the browser

After the Pagoda panel is installed, use the above account and password information to log in to the panel and the installation interface will appear. Select the ngnix to be installed. It can be installed automatically

After the installation is completed, you can add the website database in this interface

We click Add, and then enter the domain name database password of the website, and it will Automatically create a website directory.

A prompt will pop up after the creation is complete

Download the NextCloud installation package

We go to the website below to download NextCloud

https://nextcloud.com/install/#

We select the file, enter the website directory, and then click remote download

After clicking remote download , enter the nextcloud installation package download address in the pop-up URL address bar

https://download.nextcloud.com/server/releases/nextcloud-14.0.4.zip

After the download is completed, click "Unzip" on the right

Extract to the installation directory of nextcloud

After completion, you can see that there is a nextcloud folder. After we enter it, copy the files inside to the home directory. , these can be completed in the web page, no need to log in to the backend server

#The method is to enter the directory and select all these files, then cut and paste to the previous directory

Then go back to the previous directory and click to paste all

After the pasting is completed, the file structure of the installation directory is as follows Picture:

After completion, you can open the domain name of the network disk, create an administrator account directly here, and set up the sql database

Enter the user name, password, database information, etc., click Installation Complete, it will be installed automatically. After the installation is completed, you will enter the network disk background interface, as follows

Complete the installation, we can download the app or computer Use the software on

Configure NextCloud

After entering the website, I saw that there was a problem with the above display and found an error message:

Install fileinfo

Enter the software management of the Pagoda panel, find php 7.1 and then go in and install this module, click Install

getenv("PATH")为空

PHP 的设置似乎有问题, 无法获取系统环境变量. 使用 getenv("PATH") 测试时仅返回空结果.

编辑php-fpm.conf

/www/server/php/71/etc/php-fpm.conf

粘贴

env[PATH] = /usr/local/bin:/usr/bin:/bin:/usr/local/php/bin

重启下服务

service php-fpm-71 restart

❀Some files have not passed the integrity check.

这句是文件完整性检查,然后后面有个list,点击下可以看到哪些文件有问题,由于宝塔创建好网站默认会有404和user页面,这样nextcloud的文件的原始这个页面没法复制,我们只要把默认的user文件删了,重新替换即可。

The .htaccess file is not working

打开在宝塔的伪静态中添加下面的内容

location ~ ^/(data|config|.ht|db_structure.xml|README) { deny all; }

You are accessing this site via HTTP

宝塔上默认有申请ssl证书,免费的点下就ok了

注:你必须在公网上有DNS解析,否则没法申请

安装opcahe

Opcache是PHP代码的缓存

替换下面的代码到php配置里,然后重启下php服务

opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1

到此我们的nextcloud就安装完成了,后面就可以自己去下载客户端来正常使用了

The above is the detailed content of Teach you how to build your own network disk based on Pagoda Panel and nextcloud. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete