服务器环境为LNMP+OSS

安装流程如普通建站


提示:

  • HTTP 严格传输安全(Strict-Transport-Security)报头未配置到至少“15552000”秒。处于增强安全性考虑,我们推荐按照安全提示启用 HSTS。

的破解方法


再nginx的配置文件中的Server段加入


add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";


开启memcached

配置ownCloud。打开/owncloud/config/config.php,在文件末尾”);”之前,即$CONFIG=array()内加入以下的配置信息。


  'memcache.local' => '\OC\Memcache\Memcached',
  'memcached' => array(
    'host' => 'localhost',
    'port' => 11211,
    ),



  • PHP 似乎没有设置好查询的系统环境变量。 用 getenv(\"PATH\") 测试只返回一个空值。
    请检查 PHP 配置说明和服务器的 PHP 配置 安装文档 ↗,使用 PHP-FPM 时尤其注意。

getenv问题:在php-fpm.conf 中加上 env[PATH] = /usr/local/bin:/usr/bin:/bin:/usr/local/php/bin重启一下php-fpm就可以了



OSSFS挂载权限问题,使用以下挂载方式



ossfs im911-saefiles /data/oss_im911_saefile -ourl=http://oss-cn-hangzhou-internal.aliyuncs.com -ouid=500 -ogid=500 -o allow_other -o umask=007


'redis' => [
'host' => 'localhost', // Can also be a unix domain socket => '/tmp/redis.sock'
'port' => 6379,
'timeout' => 0,
'password' => '', // Optional, if not defined no password will be used.
'dbindex' => 0 // Optional, if undefined SELECT will not run and will
// use Redis Server's default DB Index.
],

最后修改:2018 年 12 月 18 日
如果觉得我的文章对你有用,请随意赞赏