前提・実現したいこと
HTTP2に対応させるためにcURLをバージョンアップして入れ直したのですが、
新しいcURLをインストール後にphpinfoを見ても古いバージョンのままになってしまっています。
コマンドラインからcurl --versionを見てみると新しいバージョンがインストールできているのは
間違いないのでこれが使用されるようにすればいいんだと思いますが、
いろいろ試してみても解決できないため、なにかアドバイスがあればお願いいたします。
発生している問題・エラーメッセージ
問題の発生している環境は下記の環境になります
GAEのFlexible環境/Php7.1を使用 * GAE独自のDockerImage使用? Debian 4.9 * Linux 64599e21fa52 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 nginx * nginx version: nginx/1.10.3 (Ubuntu)
cURLのバージョンアップ手順は下記の手順で行いました。
cURL7.47から7.61へのバージョンアップです。
apt-get update apt-get install -y g++ make binutils autoconf automake autotools-dev libtool pkg-config \ zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libc-ares-dev libjemalloc-dev libsystemd-dev \ cython python3-dev python-setuptools RUN cd ~ \ && git clone https://github.com/tatsuhiro-t/nghttp2.git \ && cd nghttp2 \ && autoreconf -i \ && autoconf \ && ./configure --enable-apps \ && make \ && make install apt-get install -y wget cd ~ && \ wget http://curl.haxx.se/download/curl-7.61.1.tar.bz2 && \ tar -xvjf curl-7.61.1.tar.bz2 && \ cd curl-7.61.1 && \ ./configure --with-nghttp2 --with-ssl && \ make && \ make install && \ ldconfig mv /usr/bin/curl /usr/bin/curl.bak cp /usr/local/bin/curl /usr/bin/curl ldconfig -v
こちらの手順で実施したものの、実際にphpから実行されるcurlが変わったか確認するためにphpinfoを見てみると、以前と変わらず7.47となっています。
/opt/php/sbin/php-fpm -i curl cURL support => enabled cURL Information => 7.47.0 〜省略〜
しかし、curlのバージョンをコマンドで見て見ると、確かに7.61となっています。
root@64599e21fa52:/app# curl --version curl 7.61.1 (x86_64-pc-linux-gnu) libcurl/7.61.1 OpenSSL/1.0.2g zlib/1.2.8 nghttp2/1.35.0-DEV Release-Date: 2018-09-05 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy
サーバー再起動しないとだめだと思ったので、Dockerコンテナをrestartしてみましたが、
他の設定の変更は反映されるのですがcurlのバージョンは変わってくれません。
大変お手数ですがなにかわかる方いらっしゃいましたら
アドバイスいただければ幸いです。
よろしくお願い致します。
追記1
php.iniのextension_dirを見てみるとまるごと空欄です。
root@64599e21fa52:/app# vim /opt/php71/lib/php.ini ; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: ; extension_dir = "ext"