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