Can't load extension: "specified module could not be fo
Posted: Tue Mar 06, 2007 8:23 am
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:
then restarting the Apache server.
Unfortunately I get the following message in error.log:
I get the same problem with some other extensions as well -- not just cURL. E.g. I have tried enabling these for comparison:
These give the same error message (apart from the DLL name of course).
However, several other extensions seem to load without error, e.g.:
The extensions path is definitely there in php.ini:
(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.
Code: Select all
extension=php_curl.dllUnfortunately 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 0Code: Select all
extension=php_iconv.dll
extension=php_ifx.dllHowever, 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.dllCode: Select all
extension_dir = "C:\Program Files\php-4.4.6-Win32\extensions"* 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!
Thanks in advance.