Can't load extension: "specified module could not be fo

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
LiquidEyes
Forum Newbie
Posts: 12
Joined: Fri Oct 06, 2006 6:02 am

Can't load extension: "specified module could not be fo

Post by LiquidEyes »

I want to use a particular PHP extension (php_curl.dll). I have tried to enable it by uncommenting the following line in php.ini:

Code: Select all

extension=php_curl.dll
then restarting the Apache server.

Unfortunately I get the following message in error.log:

Code: Select all

PHP Warning:  Unknown(): Unable to load dynamic library 'C:\\Program Files\\php-4.4.6-Win32\\extensions\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
I get the same problem with some other extensions as well -- not just cURL. E.g. I have tried enabling these for comparison:

Code: Select all

extension=php_iconv.dll
extension=php_ifx.dll
These give the same error message (apart from the DLL name of course).

However, several other extensions seem to load without error, e.g.:

Code: Select all

extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_db.dll
extension=php_hyperwave.dll
The extensions path is definitely there in php.ini:

Code: Select all

extension_dir = "C:\Program Files\php-4.4.6-Win32\extensions"
(I've tried it with and without quotes; forward slashes and backslashes; both with and without a trailing slash. Anyway I'm pretty confident PHP is looking in the right folder -- see below.)

* The DLLs are definitely all there in the extensions folder -- I can see them in Windows Explorer!
* I've tried using a different extensions folder (e.g. c:\php). Made no difference.
* I know that, generally, PHP *can* see the DLLs in the extensions folder. For example, if I enable the php_bz2 extension but rename the DLL, it gives an error, as one would expect. If I then fix the filename, it works again.
* I've checked the permissions on the DLLs. There's nothing conspicuous about the problematic ones.
* I've tried copying php_curl.dll to C:\Windows\System32, as people have suggested in various posts on the internet. No difference.

I'm running Apache 2 with PHP 4.4.6 on Windows XP.

Other than this particular problem, everything seems to be fine with my configuration. I'm teaching myself PHP and my scripts are working as expected. I just can't get this darn extension to load! :? Suggestions highly welcome!

Thanks in advance. :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Are libeay32.dll and ssleay32.dll in your path?
LiquidEyes
Forum Newbie
Posts: 12
Joined: Fri Oct 06, 2006 6:02 am

Post by LiquidEyes »

They weren't, but they are now. :) Thanks for the suggestion.

It hasn't made any difference though. I restarted Apache but I still get the same error. Any other ideas?
Post Reply