[thelist] [PHP] Apache cannot load curl?

Jay Blanchard jay.blanchard at niicommunications.com
Wed Aug 3 12:26:26 CDT 2005


[snip]
Just got a new notebook running Win XP, and I've just now setup Apache 2

and PHP 4.4 (not 5, because my work is using 4).  Everything seems to be

fine, except when I un-comment any of the dynamic extensions lines in 
php.ini, Apache gives me a "could not load" error.  The extensions path 
in php.ini looks like this:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\php\extensions"
This is indeed the correct path.  But when, for example, I attempt to 
enable curl by uncommenting so that I have this line:
extension=php_curl.dll
When restarting Apache, I get this error:
Unknown(): Unable to to load dynamic library 
'C:\php\extensions\php_curl.dll' - The specified module could not be
found.

Other than this, PHP seems to be working fine.  Can someone hit me 
upside the head with a trout and tell me what I've missed?

For the sake of completeness, my httpd.conf has these lines to enable
php:
########## PHP #############
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
[/snip]

*swinging trout*

Try this, add a slash at the end of extension_dir
extension_dir = "C:\php\extensions\"


More information about the thelist mailing list