<p>

<span style="font-size:24px;">服务器环境为LNMP+OSS</span> 

</p>
<p>

安装流程如普通建站

</p>
<p>

<br />

</p>
<p>

<span style="font-family:&quot;font-size:18px;">提示:</span> 

</p>

<p>

<span style="font-size:18px;font-family:&quot;">的破解方法</span> 

</p>
<p>

<span style="font-size:12.8px;"><br />

</span>
</p>
<p>

<span style="font-size:18px;font-family:&quot;">再nginx的配置文件中的Server段加入</span> 

</p>
<p>

<span style="font-size:12.8px;"><br />

</span>
</p>
<p>

<span style="font-size:12.8px;"> </span> 

</p>

add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
<p>
</p> <p> 开启memcached </p> <p> <span style="color:#555555;font-family:&quot;font-size:14px;background-color:#FFFFFF;">配置ownCloud。打开/owncloud/config/config.php,在文件末尾”);”之前,即$CONFIG=array()内加入以下的配置信息。</span> </p> <p>
</p>
  'memcache.local' => 'OCMemcacheMemcached',
  'memcached' => array(
    'host' => 'localhost',
    'port' => 11211,
    ),

<p>

<br />

</p>
<p>

<br />

</p>

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

getenv问题<span style="color:#1D4489;font-family:Helvetica, Arial, sans-serif;font-size:14px;background-color:#FFFFFF;">:在php-fpm.conf 中加上 env[PATH] = /usr/local/bin:/usr/bin:/bin:/usr/local/php/bin重启一下php-fpm就可以了</span>
<p>

<br />

</p>
<p>

<span style="color:#1D4489;font-family:Helvetica, Arial, sans-serif;font-size:14px;background-color:#FFFFFF;"><br />

</span>
</p>
<p>

<span style="font-size:16px;">OSSFS挂载权限问题,使用以下挂载方式</span> 

</p>
<p>

<br />

</p>
<p>

<br />

</p>

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

<p>

<br />

</p>
<p>

<span style="font-size:12.8px;"> </span> 

</p>

'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.

],

Last modification:December 18th, 2018 at 11:30 am