且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 PHP7 windows10 64 位 Apache 2.4 上启用 cURL

更新时间:2023-02-24 15:37:42

以下是从获取PHP到启用cURL的步骤:

Here are the steps from obtaining PHP to enabling cURL:

  1. 下载PHP(这些步骤在 7.1 中测试过)
  2. 将 PHP 文件夹添加到 PATH 环境变量
  3. 使用扩展目录的绝对路径更新 php.ini 文件并取消注释 php_curl.dll 和 php_openssl.dll 扩展
  4. 更新 httpd.conf(Apache 配置文件)以加载 PHP 文件夹中的 php7apache2_4.dll 模块并将 PHPIniDir 设置为 PHP 目录
  5. 将 libeay32.dll libssh2.dll 和 ssleay32.dll 复制到 apache/bin(替换现有)
  6. 重启 Apache.
  1. Download PHP (these steps tested with 7.1)
  2. Add PHP folder to PATH environment variable
  3. Update php.ini file with absolute path for extension directory and uncomment php_curl.dll and php_openssl.dll extensions
  4. Update httpd.conf (Apache config file) to load php7apache2_4.dll module in PHP folder and set PHPIniDir to PHP directory
  5. Copy libeay32.dll libssh2.dll and ssleay32.dll into apache/bin (replace existing)
  6. Restart Apache.