安装完私有云ownCloud后,一直在检查代码的完整性的提示,有梗的人必会将它抹除。
这是解决后的图,https就不搞了,主要是内网用。
开始正题
1、安装owncloud时,data目录,记得选择非网站目录下,方便以后迁移
2、拷贝owncloud压缩包里的下面两个隐藏文件
.htaccess
.user.ini
到网站更目录下
3、配置redis缓存
安装redis
#yum install epel-release
#yum install redis
#systemctl start redis
配置redis
#wget http://pecl.php.net/get/redis-3.1.2.tgz
#tar xf redis-3.1.2.tgz
#cd redis-3.1.2
#/usr/local/php-7.2.7/bin/phpize
#./configure –with-php-config=/usr/local/php-7.2.7/bin/php-config
在php.ini里打开redis.so扩展
配置vim 网站根目录/config/config.php
…….省略配置
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ => array(
‘host’ => ‘localhost’,
‘port’ => 6379,
),
);