LoginSignup
7
6

More than 5 years have passed since last update.

Windows10 + PHP7.2+Apache2.4でcurlを有効にする

Last updated at Posted at 2018-06-21

Windows10 + PHP7.2+Apache2.4でcurlを有効にする方法、結構ハマったので書いておきます。

ネットを探すとcurlが動かない時の対処法がいろいろ見つかりますが古いphp5時代のものだったりして混乱しました。

まず、php7.2の64ビット版にはlibeay32.dllとかssleau32.dllはありません。

64ビット版のphp_curl.dllの依存関係を確認してみます。

deplister ext/php_curl.dll

20180622_apache php curl.jpg

ここで、NOTFOUNDのapi-ms-win-crt-シリーズが原因なのかと思ってしまってハマる。

色々やった結果、次のファイルだけをapacheのbinに入れてやるとうまくいきました。

libssh2.dll
nghttp2.dll
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll

元記事:https://ameblo.jp/ryujimiya/entry-12357363197.html

7
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6