Page 1 of 1

Unable to load extensions

Posted: Thu Jun 02, 2005 3:29 pm
by skypanther
I think I botched my install. Way back when, I installed PHP 4.3.6 using the installer. Of course, that means I didn't get any extensions. I need curl. So, I tried doing a manual install of 4.3.11 by simply copying the new files into the C:\php folder. I checked my IIS config and the ISAPI stuff is set correctly.

General PHP works, but I get an error that it's unable to load the curl extension dll--it says it can't find the file, but the file is there.

Check out this screenshot:

Image

You can see the file right there above the error dialog and see that it's in the correct path by looking at the address bar.

This is part of my php.ini:
; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\php\extensions
...
;Windows Extensions
extension=php_curl.dll
...

I've rebooted, restarted the WWW service, tried many variations on the php.ini syntax, like
extension_dir = C:\php\extensions\
extension_dir = c:\php\extensions
extension_dir = C:\PHP\extensions
extension_dir = C:\\php\\extensions\\
...etc.

I've added c:\php\extensions to my Windows PATH and added the PHPRC environment variable pointing to c:\php.

Suggestions?

Thanks,
Tim

Posted: Thu Jun 02, 2005 3:54 pm
by timvw
Some extensions need some other .dll files... They are in the main php directory...

I solved this by adding c:\php to my PATH environment variable.

Posted: Thu Jun 02, 2005 4:04 pm
by skypanther
Thanks for the suggestion. I just tried adding c:\php to my PATH and I'm afraid it didn't help. I get the same error.

Tim

Posted: Fri Jun 03, 2005 3:39 am
by phpScott
silly question, do other extensions load like php_gd2.dll?

Posted: Fri Jun 03, 2005 7:12 am
by skypanther
Some do, some don't. For example, php_exif and php_openssl give the same "can't be found" error, but php_gd2, php_zip, and php_pdf all load fine -- at least they don't throw up an error and they show up in a phpinfo() call. But, I haven't actually tried any code that uses them.

Tim

Posted: Fri Jun 03, 2005 7:36 am
by Chris Corbyn
Are you using the correct versions?

I seems to remember running into the same problem way back as a n00b when trying to load the gd2 extension.

Try getting a different version of the extension (if there is one?) and see what happens.

Posted: Fri Jun 03, 2005 9:23 am
by skypanther
I had no extensions installed when I started--many moons ago I installed from the 4.3.6 Windows installer version.

Yesterday, I downloaded the 4.3.11 manual install zip (it includes the extensions) and tried to "upgrade" my 4.3.6. I renamed the old c:\php directory to c:\old_php and copied the new files to a new c:\php directory.

Today, I downloaded the 4.3.11 Windows installer version. I ran it, thinking there might have been something left over from 4.3.6 in my system. Still, I was getting the same error.

So, I just uninstalled PHP from my system...there was a listing for 4.3.6 in the control panel/add-remove programs for it. Then, I reinstalled 4.3.11 using the installer. I put the extensions and other support files from the manual install zip into the c:\php folder.

Still, I get the same error. At this point, I'm pretty sure I'm using the correct versions.

Tim

Posted: Mon Jun 06, 2005 7:52 am
by skypanther
Any other thoughts or I'm I just dead in the water?