Category Archives: Nextcloud

我的系统是centos7.6,安装php8.3时,先直接yum remove php* 移除原有的php组件,然后按照以下攻略安装当前最新的php8.3版本 https://medium.com/@nothanjack/mastering-the-installation-of-php-8-3-on-centos-7-easy-steps-1118ed651522 我把php8.3所需的扩展组件汇总,你可以直接yum install -y,当然你得先把仓库安装好 sudo yum install epel-release sudo yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 然后 yun install以下 php83 php-bcmath php83-php-bcmath php83-php-cli php83-php-common php83-php-devel php83-php-fpm php83-php-gd php83-php-gmp php83-php-intl php83-php-mbstring php83-php-mysqlnd php83-php-opcache php83-php-pdo php83-php-pdo-dblib php83-php-pecl-apcu php83-php-pecl-apcu-devel php83-php-pecl-igbinary php83-php-pecl-imagick-im6 php83-php-pecl-msgpack php83-php-pecl-redis6 php83-php-pecl-zip … Continue reading

Posted on by fencatn | Leave a comment

宝塔面板部署NextCloud逐一解决后台安全及设置警告

这个博主有很多关于nextcloud的资料,我只是转载一下: 宝塔面板部署NextCloud逐一解决后台安全及设置警告

Posted in Nextcloud | Tagged | Leave a comment

centos/php7.2以上版本安装mcrypt模块

php7.2本身已经移除了mcrypt,但是nextcloud还在用这个模块,总不至于为了这个模块我装php7.1,无奈网上搜了一下,还是找到了答案,就是自己下载mcrypt源码包,编译安装之后,在php.ini中启用这个模块就行了 环境:centos 7.5 php7.2 yum 安装依赖包: yum install libmcrypt libmcrypt-devel mcrypt mhash 在 php 官网下载 mcrypt 包,php 扩展官网   # wget  http://pecl.php.net/get/mcrypt-1.0.1.tgz   # tar xf mcrypt-1.0.1.tgz   # cd mcrypt-1.0.1 编译安装 mcrypt   # /usr/local/php/bin/phpize   # ./configure –with-php-config=/usr/local/php/bin/php-config  … Continue reading

Posted in Nextcloud | Tagged | Leave a comment

Nextcloud安全检查时报错” HTTP header is not set to “no-referrer””解决方法

Nextcloud安全检查时报错 The “Referrer-Policy” HTTP header is not set to “no-referrer”, “no-referrer-when-downgrade”, “strict-origin” or “strict-origin-when-cross-origin”. This can leak referer information. 这个是NextCloud新版本提升了安全要求,解决方法就是添加对应的标记 server { # Configuration add_header Referrer-Policy no-referrer always; } 完成之后重启nginx,问题解决。 这个官方论坛上有说明,多去看看 https://help.nextcloud.com/t/the-referrer-policy-http-header-is-not-set-to-no-referrer/36613

Posted in Nextcloud | Tagged | Leave a comment

Nextcloud报错”You are using a fallback implementation of the intl extension.“解决方法

NextCloud安装最新的14版本报错 You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /usr/share/nginx/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18 原因是因为php缺组件intl,装上就可以了 [root@fencatn conf.d]# yum install -y php71w-intl Loaded plugins: fastestmirror base | 3.6 kB 00:00 epel/x86_64/metalink | 8.9 kB … Continue reading

Posted in Nextcloud | Tagged | 2 Comments

NextCloud的调优及安全配置

一、添加缓存 缓存你可以选择memcached或者redis,注意选择一种就可以,不是大型实例,多了也没什么用 1、添加memcached [root@fencatn ~]# yum install -y memcached Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cqu.edu.cn * epel: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com * webtatic: uk.repo.webtatic.com Resolving Dependencies –> Running transaction check —> … Continue reading

Posted in Nextcloud | Tagged | Leave a comment

Nextcloud(CentOS 7)安装与配置(LNMP平台)

这篇文章主要介绍CentOS 7  LNMP平台上部署nextcloud的方法,具体的调优和内网穿透,请参照后面的文章 一、环境准备 1、准备Yum源 先安装必须的yum源,centos自带的BASE/EXTRAS/UPDATES必须齐全,同时安装fedora的epel,源不够的自行百度装好。 [root@ftpserver ~]# yum install -y epel* Loaded plugins: fastestmirror base | 3.6 kB 00:00 epel/x86_64/metalink | 8.9 kB 00:00 epel | 3.2 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 … Continue reading

Posted in Nextcloud | Tagged | Leave a comment

NextCloud(CentOS7)官方安装手册

来源于https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html# Installation on Linux If there are no packages for your Linux distribution, you have the option to install Snap Packages. See Installing via Snap packages In case you prefer installing from the source tarball, you can setup Nextcloud from scratch using … Continue reading

Posted in Nextcloud | Tagged | Leave a comment

NextCloud(Nginx)官方配置文件

来源于https://docs.nextcloud.com/server/14/admin_manual/installation/nginx.html Nginx configuration This page covers example Nginx configurations to use with running an Nextcloud server. This page is community-maintained. (Thank you, contributors!) You need to insert the following code into your Nginx configuration file. Adjust server_name, root, ssl_certificate and ssl_certificate_key to suit your needs. Make sure … Continue reading

Posted in Nextcloud | Tagged | Leave a comment

Nextcloud/ownCloud上传大于512MB的文件的相关配置

在正常情况下,Nextcloud的默认的最大上传限制为512MB,在你的的文件系统和操作系统允许的前提下,你可以提升这一限制。换一种说法,能上传的最大文件的大小还取决于你的浏览器和操作系统: 32位系统可上传小于2GB的文件 IE6~IE8可上传小于2GB的文件 IE9~IE11可上传小于4GB的文件 在64位系统中允许上传更大的文件,具体能上传多大仍然取决于你的操作系统的版本。 使用Nextcloud sync 客户端可以无视这个上传限制,因为这个客户端会将文件切分后上传。 系统设置 确保所安装的PHP的版本在5.6.6以上,推荐使用最新版本的PHP 禁用用户配额:将所有用户的配额设置为“无限制” 对服务器的要求:临时文件空间(/tmp目录)和分区必须足够大以承载多个用户的多个并行上传,如果最大上传的限制为10GB,而约有100个用户(一般达不到这个数量)同时上传文件,那么至少要有100×10GB的空间来容纳临时文件(这儿牵涉到Linux的临时文件的分区) 配置你的网站服务器 Nextcloud利用其程序根目录下的的.htaccess文件来控制上传限制。因为php-fpm无法读取.htaccess文件,所以相关的PHP设置必须要设置在 nextcloud/.user.ini 中。 在.htaccess文件中中设置以下参数,可将上传文件大小限制设置为16GB: php_value upload_max_filesize = 16G php_value post_max_size = 16G 当然,具体要设置为多少取决于你的需求。 而另一个限制了大文件的上传的因素是PHP的超时(timeout),如果你在日志中看到超时的记录,可以将PHP的超时的数值调得大一些: php_value max_input_time 3600 php_value max_execution_time 3600 说到timeout,不仅PHP会有timeout,HTTP服务器也会有。例如Apache的 mod_reqtimeout 模块,它也可能会导致大文件上传的失败。如果你在使用这个模块并且遇到了超时的问题,那么可以考虑在Apache配置中禁用它: 使用命令禁用: a2dismod reqtimeout service … Continue reading

Posted in Nextcloud | Tagged | Leave a comment