473,395 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

cUrl on Windows install: "The specified module could not be found."

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
Aug 11 '08 #1
12 7393
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
==================

Aug 11 '08 #2
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
Aug 11 '08 #3
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
Aug 11 '08 #4
dkurth wrote:
>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
No, libcurl is NOT the same as php_curl. php_curl is a link between the
PHP code and the curl libraries.

I installed libcurl several releases ago, and at that time php_curl did
not include libcurl. And I still don't think it does.

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

Aug 11 '08 #5
Do you know how I can find out if libcurl is installed and (if so)
what version I have?
Aug 12 '08 #6
dkurth wrote:
Do you know how I can find out if libcurl is installed and (if so)
what version I have?
Did you install it? If not, it won't be there.

Of course, you could always search your disk for libcurl.dll.

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

Aug 12 '08 #7
Okay, then I do not have libcurl installed. Where can I get it / how
can I install it?

Thanks,
Derek
Aug 13 '08 #8
dkurth wrote:
Okay, then I do not have libcurl installed. Where can I get it / how
can I install it?

Thanks,
Derek
Did you google for it?

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

Aug 13 '08 #9
Did you google for it?

Yes:

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

But that didn't work.
Aug 13 '08 #10
Problem solved!

To recap, the error message was: Unable to load dynamic library 'F:\PHP
\ext\php_curl.dll' - The specified module could not be found.

This is a little misleading -- it's NOT that it couldn't find
php_curl.dll, but rather it couldn't find a module that php_curl.dll
required. The 2 DLLs it requires are libeay32.dll SSLeay32.dll.

So, you have to put those 2 DLLs somewhere in your PATH (e.g., C:
\Windows\system32). That's all there is to it.

HOWEVER, even that did not work for me initially. So I downloaded the
Windows zip of the latest version of PHP, which includes all the
necessary DLLs. I didn't reinstall PHP, I just copied all of the DLLs
in the "ext" folder to my PHP extensions folder (as specified in the
extension_dir variable in php.ini), and I copied the versions of
libeay32.dll and SSLeay32.dll from the PHP download into my System32
directory.

I also did an iisreset, but I don't know if that was necessary.

Thanks, Jerry, for your input.
Aug 13 '08 #11
dkurth wrote:
>Did you google for it?

Yes:

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

But that didn't work.
My mistake - sorry. You're on Windows, so you don't need libcurl.dll.
You only need libeay32.dll and ssleay32.dll, which you have.

Ensure your extension directory is set properly to point to the php
extension files. Also, the extensions and above two dll's must be
readable (and executable) by the web server's user (usually something
like IUSR_(machine_name).

phpinfo() will show you the extension directory as well as the location
of the php.ini file it's using.

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

Aug 13 '08 #12
Interesting, I'd never heard of a .dll file for a non-Windows
operating system. Linked library (aka "shared object") files normally
have the .so extension in Linux/UNIX.

Thanks again,
Derek
Aug 14 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pino | last post by:
Hi to all. I would like to run .NET application without install the framework on my computer. This is a requirement for my application because it will downloaded from the internet. I know...
0
by: rajshekar | last post by:
Hi, I have one query plz solve out. I want to intall the dotNetFramework during the installation of my WebSetup. My second requirement is Installation sheild should pop up custom screen which...
3
by: Robin Tucker | last post by:
Hiya, Just a quick question for you - if I create a Setup project for my VB.NET application, is it possible to configure the setup project to automatically install the .NET runtime if it isn't...
5
by: funkyj | last post by:
I love pexpect because it means I may never have to use expect again (I don't do any heavy expect lifting -- I just need simple tty control)! As a python advocate I find it embarassing how...
0
by: djc | last post by:
Do I really have to install the SDK (on all my client machines) just to use the GUI config for the 2.0 framework? Can I just get the mscorcfg.msc file from one machine and use it on others? I...
2
by: djoefish | last post by:
sequel to the topic "install patch on windows"..... I am currently running Python2.3 with Enthought on a windows PC. I have been running into a memory problem (see...
12
by: vidishasharma | last post by:
Hi, I want to get the location which user selects for installaion of program using msi installer. I require this to do kind of cleanup activity if something goes wrong with the installation. ...
1
by: tedpottel | last post by:
Hi, I am trying to install the mechanize lib so I can use python to do webbrowseing. First I set up easy_install When I ran the script, it download the files ok, then I got these error...
0
mickyk
by: mickyk | last post by:
Hi all, I have written a .Net Winforms application that creates a Jar applet, which will be copied to a mobile phone. The output is a Jar applet that is created by the Jar utility, which is a part...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.