且构网

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

在PHP7 Windows10 64位Apache 2.4上启用cURL

更新时间:2023-02-24 15:51:35

以下是从获取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.