且构网

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

Windows安装上的cUrl:“无法找到指定的模块。”

更新时间:2022-12-08 11:22:38

dkurth写道:




我正在使用IIS 5在Windows 2000 Server上运行PHP 5.2.3。我正在尝试

到得到cUrl工作,所以在我的php.ini文件中,我有这一行:


extension_dir =" F:\PHP \ _ext"


后来,我有:


extension = php_curl.dll


文件F:\PHP \ extrax \\ _ \\ nphp_curl.dll存在,但是当我尝试运行任何PHP

脚本时,我在错误日志中得到了这个:


PHP警告:PHP启动:无法加载动态库''F:\PHP \ text

\ php_curl.dll'' - 无法找到指定的模块。

in Unknown on第0行


谷歌搜索没有帮助;你有什么想法?我不知道我应该测试什么来调试这个。谢谢!


Derek



Derek,


你有libcurl版本吗?系统上安装了7.10.5或更高版本?

IIS用户是否可以访问(即在PATH语句中,

权限设置正确等)?


-

==================

删除 X"来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


您的系统上是否安装了libcurl版本7.10.5或更高版本?

IIS用户是否可以访问(即在PATH语句中,

权限设置正确等)?



我不知道怎么说(如果已安装,或者,如果是这样,我会用什么版本的b
) 。我假设libcurl附带了Windows PHP安装,但

当我运行phpinfo()时它没有列出;应该是吗?


谢谢,

Derek


不,它不会来用Windows。你需要自己安装它。

这与OpenSSL不同 - 它们是两种不同的产品。


而且它不是php_curl .dll我在问这个版本 - 它是libcurl。



足够公平。要安装libcurl,我用google搜索:安装libcurl

windows。


第一个结果是: http://curl.haxx.se/libcurl/php/install.html


向下滚动到安装说明的Windows部分,我看到安装PHP / CURL for Windows *应该是一件简单的事情

删除这行中的分号来自我的php.ini:


; extension = php_curl.dll


它说当分号时被删除,libcurl是静态地

链接在 - 我从中得到它(1)libcurl和

php_curl.dll是一回事,或者(2)php_curl.dll包含或链接

到libcurl在某种程度上。


(接着说我需要把libeay32.dll和ssleay32.dll放在

c:\ winnt \\ \\ system32目录,我做了。)


无论如何,所有这一切:我显然不知道libcurl是什么或如何安装

如果以上不正确!我怎样才能知道它是否已经安装了b $ b和什么版本?


再次感谢!

Derek >


Hi,

I''m running PHP 5.2.3 on Windows 2000 Server with IIS 5. I''m trying
to get cUrl working, so in my php.ini file, I have this line:

extension_dir ="F:\PHP\ext"

And later, I have:

extension=php_curl.dll

The file F:\PHP\ext\php_curl.dll exists, but when I try to run any PHP
script, I get this in the error log:

PHP Warning: PHP Startup: Unable to load dynamic library ''F:\PHP\ext
\php_curl.dll'' - The specified module could not be found.
in Unknown on line 0

Googling hasn''t helped; do you have any ideas? I don''t know what I
should test to debug this one. Thanks!

Derek

dkurth wrote:
Hi,

I''m running PHP 5.2.3 on Windows 2000 Server with IIS 5. I''m trying
to get cUrl working, so in my php.ini file, I have this line:

extension_dir ="F:\PHP\ext"

And later, I have:

extension=php_curl.dll

The file F:\PHP\ext\php_curl.dll exists, but when I try to run any PHP
script, I get this in the error log:

PHP Warning: PHP Startup: Unable to load dynamic library ''F:\PHP\ext
\php_curl.dll'' - The specified module could not be found.
in Unknown on line 0

Googling hasn''t helped; do you have any ideas? I don''t know what I
should test to debug this one. Thanks!

Derek

Derek,

Do you have libcurl version 7.10.5 or higher installed on your system?
Is it accessible to the IIS user (i.e. in the PATH statement,
permissions set properly, etc.)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Do you have libcurl version 7.10.5 or higher installed on your system?
Is it accessible to the IIS user (i.e. in the PATH statement,
permissions set properly, etc.)?

I''m not sure how to tell (if it''s installed or, if so, what version I
have). I assumed that libcurl comes with the Windows PHP install, but
it''s not listed when I run phpinfo(); should it be?

Thanks,
Derek


No, it doesn''t come with Windows. You need to install it yourself.
This is not the same as OpenSSL - they are two different products.

And it''s not the php_curl.dll I''m asking about the version - it''s libcurl.

Fair enough. To install libcurl, I googled for: install libcurl
windows.

The first result was: http://curl.haxx.se/libcurl/php/install.html

Scrolling down to the Windows section of the install instructions, I
see that installing PHP/CURL for Windows *should* be a simple matter
of removing the semi-colon in this line from my php.ini:

;extension=php_curl.dll

It says that when that semi-colon is removed, "libcurl is statically
linked in" -- I take it from this that either (1) libcurl and
php_curl.dll are the same thing, or (2) php_curl.dll contains or links
to libcurl in some way.

(It goes on to say that I need to put libeay32.dll and ssleay32.dll in
the c:\winnt\system32 directory, which I did.)

Anyway, all that to say: I clearly don''t know what libcurl is or how
to install it if the above is not correct! How can I find out if it''s
installed and what version?

Thanks again!
Derek