owncloudを8.1?にしたらいろいろ出た

Pocket

セキュリティ&セットアップ警告

環境

[astel@tk2-234-26965 ~]$ cat /etc/redhat-release 
CentOS release 6.7 (Final)
[astel@tk2-234-26965 ~]$ uname -r
2.6.32-573.3.1.el6.x86_64
[astel@tk2-234-26965 ~]$ php --version
PHP 5.4.44 (cli) (built: Aug  6 2015 07:41:49) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[astel@tk2-234-26965 ~]$ nginx -V
nginx version: nginx/1.8.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 
built with OpenSSL 1.0.1e-fips 11 Feb 2013

ずらずらとでてきた

php does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.
Please check the installation documentation for php configuration notes and the php configuration of your server, especially when using php-fpm.
このサーバーはインターネットに接続されていません。この場合、外部ストレージのマウント、更新の通知やサードパーティ製のアプリ、といったいくつかの機能が使えません。また、リモート接続でのファイルアクセス、通知メールの送信のような機能も利用できない可能性があります。全ての機能を利用するためには、このサーバーからインターネットに接続できるようにすることをお勧めします。
メモリキャッシュが設定されていません。パフォーマンスを向上するために、可能であれば memcache を設定してください。 より詳しい情報については、documentation を参照してください。
cURL is using an outdated NSS version (NSS/3.19.1 Basic ECC). Please update your operating system or features such as installing and updating apps via the app store or Federated Cloud Sharing will not work reliably.
You are accessing this site via HTTP. We strongly suggest you configure your server to require using HTTPS instead as described in our security tips.
Please double check the installation guides ↗, and check for any errors or warnings in the log.

まずこれ

php does not seem to be setup properly to query system environment variables. 
The test with getenv("PATH") only returns an empty response.
Please check the installation documentation for php configuration notes and the php configuration of your server,
 especially when using php-fpm.

参考
<a href="https://mistymagich.wordpress.com/2015/08/11/owncloud8%E3%82%92%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%97%E3%81%9F%E3%82%89%E3%80%81%E7%AE%A1%E7%90%86%E7%94%BB%E9%9D%A2%E3%81%ABthe-test-with-getenvpath-only-returns-a/">OWNCLOUD8をアップデートしたら、管理画面に”THE TEST WITH GETENV(“PATH”) ONLY RETURNS AN EMPTY RESPONSE.”と表示されたとき</a>

<a href="http://php.net/manual/ja/install.fpm.configuration.php">php-fpm.conf のグローバル設定項目</a>
clear_env boolean
FPM ワーカー内の環境をクリアする。 任意の環境変数が FPM ワーカープロセスに到達してしまうことを防ぐために、 ワーカー内の環境をいったんクリアしてから、このプールの設定で指定された環境変数を追加します。 PHP 5.4.27、PHP 5.5.11、PHP 5.6.0 以降で利用可能です。 デフォルト値: Yes

これをnoにする

/etc/php-fpm.d/www.conf に
clear_env = no
と追記する

<strong>解決</strong>

このサーバーはインターネットに接続されていません。
この場合、外部ストレージのマウント、更新の通知やサードパーティ製のアプリ、といったいくつかの機能が使えません。
また、リモート接続でのファイルアクセス、通知メールの送信のような機能も利用できない可能性があります。
全ての機能を利用するためには、このサーバーからインターネットに接続できるようにすることをお勧めします。

<a href="https://github.com/owncloud/core/issues/16255#issuecomment-119531656">Error: server is not connected to the internet message – but I am, or so I think … #16255</a>

コメント通りにやる。

[astel@tk2-234-26965 ~]$  curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 
[astel@tk2-234-26965 ~]$ sudo yum install libcurl
読み込んだプラグイン:fastestmirror, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * epel: ftp.iij.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * remi-safe: mirrors.thzhost.com
 * rpmforge: ftp.riken.jp
 * updates: ftp.tsukuba.wide.ad.jp
パッケージ libcurl-7.19.7-46.el6.x86_64 はインストール済みか最新バージョンです
何もしません
[astel@tk2-234-26965 ~]$ rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm を取得中
警告: /var/tmp/rpm-tmp.8r2TlF: ヘッダ V3 DSA/SHA1 Signature, key ID b56a8bac: NOKEY
エラー: can't create transaction lock on /var/lib/rpm/.rpm.lock (許可がありません)
[astel@tk2-234-26965 ~]$ sudo rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm を取得中
警告: /var/tmp/rpm-tmp.kA7zpw: ヘッダ V3 DSA/SHA1 Signature, key ID b56a8bac: NOKEY
準備中...                ########################################### [100%]
   1:city-fan.org-release   ########################################### [100%]
[astel@tk2-234-26965 ~]$ sudo yum install libcurl
読み込んだプラグイン:fastestmirror, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * city-fan.org: www.city-fan.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * remi-safe: remi.kazukioishi.net
 * rpmforge: ftp.riken.jp
 * updates: ftp.tsukuba.wide.ad.jp
city-fan.org                                                                                                              | 2.9 kB     00:00     
city-fan.org/primary_db                                                                                                   | 439 kB     00:01     
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> Package libcurl.x86_64 0:7.19.7-46.el6 will be 更新
--> 依存性の処理をしています: libcurl = 7.19.7-46.el6 のパッケージ: libcurl-devel-7.19.7-46.el6.x86_64
--> 依存性の処理をしています: libcurl = 7.19.7-46.el6 のパッケージ: curl-7.19.7-46.el6.x86_64
---> Package libcurl.x86_64 0:7.44.0-1.0.cf.rhel6 will be an update
--> 依存性の処理をしています: libssh2(x86-64) >= 1.6.0 のパッケージ: libcurl-7.44.0-1.0.cf.rhel6.x86_64
--> 依存性の処理をしています: c-ares(x86-64) >= 1.10.0 のパッケージ: libcurl-7.44.0-1.0.cf.rhel6.x86_64
--> 依存性の処理をしています: libcares.so.2()(64bit) のパッケージ: libcurl-7.44.0-1.0.cf.rhel6.x86_64
--> トランザクションの確認を実行しています。
---> Package c-ares.x86_64 0:1.10.0-5.0.cf.rhel6 will be インストール
---> Package curl.x86_64 0:7.19.7-46.el6 will be 更新
---> Package curl.x86_64 0:7.44.0-1.0.cf.rhel6 will be an update
--> 依存性の処理をしています: libmetalink.so.3()(64bit) のパッケージ: curl-7.44.0-1.0.cf.rhel6.x86_64
---> Package libcurl-devel.x86_64 0:7.19.7-46.el6 will be 更新
---> Package libcurl-devel.x86_64 0:7.44.0-1.0.cf.rhel6 will be an update
city-fan.org/filelists_db                                                                                                 | 315 kB     00:00     
--> 依存性の処理をしています: libssh2-devel のパッケージ: libcurl-devel-7.44.0-1.0.cf.rhel6.x86_64
---> Package libssh2.x86_64 0:1.4.2-1.el6_6.1 will be 更新
---> Package libssh2.x86_64 0:1.6.0-2.0.cf.rhel6 will be an update
--> トランザクションの確認を実行しています。
---> Package libmetalink.x86_64 0:0.1.2-8.rhel6 will be インストール
---> Package libssh2-devel.x86_64 0:1.6.0-2.0.cf.rhel6 will be インストール
--> 依存性解決を終了しました。

依存性を解決しました

=================================================================================================================================================
 パッケージ                         アーキテクチャ              バージョン                               リポジトリー                       容量
=================================================================================================================================================
更新:
 libcurl                            x86_64                      7.44.0-1.0.cf.rhel6                      city-fan.org                      324 k
依存性関連でのインストールをします。:
 c-ares                             x86_64                      1.10.0-5.0.cf.rhel6                      city-fan.org                       80 k
 libmetalink                        x86_64                      0.1.2-8.rhel6                            city-fan.org                       23 k
 libssh2-devel                      x86_64                      1.6.0-2.0.cf.rhel6                       city-fan.org                       68 k
依存性関連での更新をします。:
 curl                               x86_64                      7.44.0-1.0.cf.rhel6                      city-fan.org                      372 k
 libcurl-devel                      x86_64                      7.44.0-1.0.cf.rhel6                      city-fan.org                      691 k
 libssh2                            x86_64                      1.6.0-2.0.cf.rhel6                       city-fan.org                      150 k

トランザクションの要約
=================================================================================================================================================
インストール         3 パッケージ
アップグレード       4 パッケージ

総ダウンロード容量: 1.7 M
これでいいですか? [y/N]y
パッケージをダウンロードしています:
(1/7): c-ares-1.10.0-5.0.cf.rhel6.x86_64.rpm                                                                              |  80 kB     00:00     
(2/7): curl-7.44.0-1.0.cf.rhel6.x86_64.rpm                                                                                | 372 kB     00:00     
(3/7): libcurl-7.44.0-1.0.cf.rhel6.x86_64.rpm                                                                             | 324 kB     00:00     
(4/7): libcurl-devel-7.44.0-1.0.cf.rhel6.x86_64.rpm                                                                       | 691 kB     00:00     
(5/7): libmetalink-0.1.2-8.rhel6.x86_64.rpm                                                                               |  23 kB     00:00     
(6/7): libssh2-1.6.0-2.0.cf.rhel6.x86_64.rpm                                                                              | 150 kB     00:00     
(7/7): libssh2-devel-1.6.0-2.0.cf.rhel6.x86_64.rpm                                                                        |  68 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------
合計                                                                                                             327 kB/s | 1.7 MB     00:05     
警告: rpmts_HdrFromFdno: ヘッダ V3 DSA/SHA1 Signature, key ID b56a8bac: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org
Importing GPG key 0xB56A8BAC:
 Userid : city-fan.org software librarian <software@city-fan.org>
 Package: city-fan.org-release-1-13.rhel6.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org
これでいいですか? [y/N]y
rpm_check_debug を実行しています
トランザクションのテストを実行しています
トランザクションのテストを成功しました
トランザクションを実行しています
警告: RPMDB は yum 以外で変更されました。
  更新                    : libssh2-1.6.0-2.0.cf.rhel6.x86_64                                                                               1/11 
  インストールしています  : libssh2-devel-1.6.0-2.0.cf.rhel6.x86_64                                                                         2/11 
  インストールしています  : c-ares-1.10.0-5.0.cf.rhel6.x86_64                                                                               3/11 
  更新                    : libcurl-7.44.0-1.0.cf.rhel6.x86_64                                                                              4/11 
  インストールしています  : libmetalink-0.1.2-8.rhel6.x86_64                                                                                5/11 
  更新                    : curl-7.44.0-1.0.cf.rhel6.x86_64                                                                                 6/11 
  更新                    : libcurl-devel-7.44.0-1.0.cf.rhel6.x86_64                                                                        7/11 
  整理中                  : libcurl-devel-7.19.7-46.el6.x86_64                                                                              8/11 
  整理中                  : curl-7.19.7-46.el6.x86_64                                                                                       9/11 
  整理中                  : libcurl-7.19.7-46.el6.x86_64                                                                                   10/11 
  整理中                  : libssh2-1.4.2-1.el6_6.1.x86_64                                                                                 11/11 
  Verifying               : libmetalink-0.1.2-8.rhel6.x86_64                                                                                1/11 
  Verifying               : libcurl-devel-7.44.0-1.0.cf.rhel6.x86_64                                                                        2/11 
  Verifying               : libssh2-1.6.0-2.0.cf.rhel6.x86_64                                                                               3/11 
  Verifying               : libssh2-devel-1.6.0-2.0.cf.rhel6.x86_64                                                                         4/11 
  Verifying               : libcurl-7.44.0-1.0.cf.rhel6.x86_64                                                                              5/11 
  Verifying               : c-ares-1.10.0-5.0.cf.rhel6.x86_64                                                                               6/11 
  Verifying               : curl-7.44.0-1.0.cf.rhel6.x86_64                                                                                 7/11 
  Verifying               : libssh2-1.4.2-1.el6_6.1.x86_64                                                                                  8/11 
  Verifying               : curl-7.19.7-46.el6.x86_64                                                                                       9/11 
  Verifying               : libcurl-7.19.7-46.el6.x86_64                                                                                   10/11 
  Verifying               : libcurl-devel-7.19.7-46.el6.x86_64                                                                             11/11 

依存性関連をインストールしました:
  c-ares.x86_64 0:1.10.0-5.0.cf.rhel6           libmetalink.x86_64 0:0.1.2-8.rhel6           libssh2-devel.x86_64 0:1.6.0-2.0.cf.rhel6          

更新:
  libcurl.x86_64 0:7.44.0-1.0.cf.rhel6                                                                                                           

依存性を更新しました:
  curl.x86_64 0:7.44.0-1.0.cf.rhel6           libcurl-devel.x86_64 0:7.44.0-1.0.cf.rhel6           libssh2.x86_64 0:1.6.0-2.0.cf.rhel6          

完了しました!
[astel@tk2-234-26965 ~]$ curl --version
curl 7.44.0 (x86_64-redhat-linux-gnu) libcurl/7.44.0 OpenSSL/1.0.1e zlib/1.2.3 c-ares/1.10.0 libidn/1.18 libssh2/1.6.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets Metalink 
[astel@tk2-234-26965 ~]$ 

解決せず

多分何かをrestartする?必要があるのかと思いrebootしたらでなくなった

<strong>解決</strong>

メモリキャッシュが設定されていません。
パフォーマンスを向上するために、可能であれば memcache を設定してください。 
より詳しい情報については、documentation を参照してください。

documentationのところはurlになっており
<a href="https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html">https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html</a>

<a href="https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#caching">https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#caching</a>
のところをみてみると
php-pecl-apcというのを使えという感じだったのでとりあえずインストール

自分のサーバの環境上remiを指定。

sudo yum install php-pecl-apc --enablerepo=remi

php-pecl-apcについて調べた
参考
<a href="http://havelog.ayumusato.com/develop/php/e167-php-apc-install.html">いまさらAPCをインストールして、PHPの実行を高速化してみた</a>

このサイトの通りにphpinfoでapcがあることを確認して
cp /usr/share/doc/php-pecl-apc-3.1.15/apc.php /var/www/html/
でブラウザで動作を確認できるっぽい

owncloudの
/var/www/html/owncloud/config/config.php
に 'memcache.local' => '\OC\Memcache\APC',を追記する。

(略)
  'installed' => true,
  'memcache.local' => '\OC\Memcache\APC',
);

<strong>解決</strong>

最後

You are accessing this site via HTTP. 
We strongly suggest you configure your server to require using HTTPS instead as described in our security tips.
Please double check the installation guides ↗,
and check for any errors or warnings in the log.

httpsにしろってことね
これは俺俺認証でもいいからすればいいのかな
でも認証を許可したり使う時が面倒なのでこれは保留ということで

いつのまにか

cURL is using an outdated NSS version (NSS/3.19.1 Basic ECC). 
Please update your operating system or features such as installing 
and updating apps via the app store or Federated Cloud Sharing will not work reliably.

は消えてた
多分rebootした時の作業で消えたんだと思う。

One Reply to “owncloudを8.1?にしたらいろいろ出た”

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください