前提・実現したいこと
Windows10 x64上でnginx1.14.0、php7.2.7をセットアップしています。
phpでopensslを使用するためopensslをenabledにしたいです。
発生している問題・エラーメッセージ
phpinfo()を実行するとOpenSSL supportがdisabled (install ext/openssl)
と表示されます
該当のソースコード
試したこと
php.ini のextension=opensslのコメントをはずしています
php-cgiおよびnginxの再起動を行っています
コマンドプロンプトからoenssl version を実行するとインストール
済みのopensslのバージョンが表示されます
環境変数にopenssl.exeのPathを登録してOSを再起動しています
補足情報(FW/ツールのバージョンなど)
PHPは64bit版のNon Thread Safeです
nginx -v の実行結果は nginx version: nginx/1.14.0 です
また、同一のPCでApache2.4とPHP Thred Safeの組み合わせではopenssl
が問題なくenabledになりました
c:\nginx-1.14.0>nginx -V
nginx version: nginx/1.14.0
built by cl 16.00.40219.01 for 80x86
built with OpenSSL 1.0.2o 27 Mar 2018
TLS SNI support enabled
configure arguments: --with-cc=cl --builddir=objs.msvc8 --with-debug --prefix=
--conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log
--error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=t
emp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=t
emp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/
uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs.msvc8/lib/pcre-8.42 --with
-zlib=objs.msvc8/lib/zlib-1.2.11 --with-select_module --with-http_v2_module --with-
http_realip_module --with-http_addition_module --with-http_sub_module --with-http_
dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_
module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_
request_module --with-http_random_index_module --with-http_secure_link_module --with
-http_slice_module --with-mail --with-stream --with-openssl=objs.msvc8/lib/openssl-1.0.2o
--with-openssl-opt=no-asm --with-http_ssl_module --with-mail_ssl_module --with-stream_ssl_module
あなたの回答
tips
プレビュー