Unable to load extensions

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
skypanther
Forum Newbie
Posts: 7
Joined: Thu Jun 02, 2005 3:19 pm

Unable to load extensions

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
skypanther
Forum Newbie
Posts: 7
Joined: Thu Jun 02, 2005 3:19 pm

Post 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
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

silly question, do other extensions load like php_gd2.dll?
skypanther
Forum Newbie
Posts: 7
Joined: Thu Jun 02, 2005 3:19 pm

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
skypanther
Forum Newbie
Posts: 7
Joined: Thu Jun 02, 2005 3:19 pm

Post 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
skypanther
Forum Newbie
Posts: 7
Joined: Thu Jun 02, 2005 3:19 pm

Post by skypanther »

Any other thoughts or I'm I just dead in the water?
Post Reply