[英]installing php cURL on IIS
I cannot install PHP-CURL on IIS. 我无法在IIS上安装PHP-CURL。 I think I have tried everything.
我想我已经尽力了。
My phpinfo() output does not list cURL as available. 我的phpinfo()输出未列出可用的cURL。 I have C:\\PHP in my path and working correctly.
我的路径中有C:\\ PHP并且可以正常工作。 I have edited the registry to read from C:\\PHP\\php.ini.
我已经编辑了注册表以读取C:\\ PHP \\ php.ini。 phpinfo() output shows the correct .ini path loaded.
phpinfo()输出显示正确加载的.ini路径。 I have uncommented 'extension=php_curl.dll' I have ssleay32.dll and libeay32.dll availble in C:\\PHP
我没有注释'extension = php_curl.dll',我在C:\\ PHP中有ssleay32.dll和libeay32.dll
Try running: 尝试运行:
php-cgi.exe -v
and see if any errors come up. 看看是否有任何错误。
Also make sure the php is correctly in your path by going to the command line and typing: 还可以通过转到命令行并输入以下命令来确保php正确地位于您的路径中:
echo %PATH%
As well make sure the php_curl.dll is in the correct directory and that ssleay32.dll and libeay32.dll are the same versions. 还要确保php_curl.dll在正确的目录中,并且ssleay32.dll和libeay32.dll是相同的版本。
If all else fails try reinstalling PHP as I remember there being some issues a while back with the Curl Module not working on 5.1.4. 如果所有其他方法均失败,请尝试重新安装PHP,因为我记得Curl模块在5.1.4上无法正常工作。
As well someone else mentioned installing the thread safe PHP package versus the non-thread package resolving a similar issue. 同样,还有其他人提到安装线程安全的PHP软件包而不是非线程软件包,以解决类似的问题。
Did you definitely put php_curl.dll in the directory that PHP reads extensions from? 您是否确实将php_curl.dll放入PHP读取扩展名的目录中? Are the file permissions on it ok?
文件权限可以吗? And the big question: where did you get the php_curl.dll from?
还有一个大问题:您从哪里获得php_curl.dll? If you got a precompiled one it might be compiled for a different version of PHP than you are running.
如果您有一个预编译的版本,则可能会针对与运行版本不同的PHP版本进行编译。 Check your webserver logs and see what comes up from PHP when you restart the server/container/whatever.
检查您的网络服务器日志,并查看重新启动服务器/容器/其他组件时PHP产生了什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.