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