Jump to content

PHP won't load extensions.


Recommended Posts

Umm Ive done this a few times before, and I didn't get this error. I have also uninstalled everything, but it wouldn't load.

Basiclly I read Apache's error log and it says that it can't load all the extensions. This is my problem...

Extensions folder = C:\php\ext
Configs I've tried:
./ext
.\ext
./ext/
.\ext\
C:\php\ext
C:/php/ext/
C:\php\ext\
C:/php/ext/

I've noticed this in my logs...
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0

That happened when I tried C:\php\ext\ (Whenever I put one \ it somehow reads it as \\. - that might be the problem.)

Thanks for the help.!
Link to comment
Share on other sites

C:\php\ext will be fine. Add it in quotes too.

Also make sure you meet the requirements set forth over at the [url=http://uk.php.net/manual/en/ref.curl.php]cURL manul[/url].

Check that your version of PHP comes with the following files:
libeay32.dll and ssleay32.dll

Copy those files to C:\WINDOWS restart Apache. Does the cURL library now load? I would recommend you to add your PHP folder to the Windows PATH variable. This can save a lot of trouble when getting extensions to load.
Link to comment
Share on other sites

Okay here is the best information I can give...

Here are 4 screenshots of what I have done...I don't think I have done anything wrong...

http://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot006.jpg
http://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot005.jpg
http://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot004.jpg
http://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot003.jpg

Please help - and thanks.
Link to comment
Share on other sites

Allways use the full path to the extension dir. Also the  extension you are loading require third party libraries, which (should) are located in the root of the PHP folder. If PHP cant find these then it wont be able to load the extension. To fix this I advise you to do the following:

Go to Start > Control Panel > System > Advanced Tab > click the Environment Variables button.

Scroll down to the System Variables box and scroll through the list of variables until you get to the PATH variable. Select this variable and then choose the edit button. Now press the key labelled [b]End[/b] (do not press any other key) on your keyboard. Now type the following:
;C:\php;
Click Ok and Ok for all the remaining Windows.

Make sure you have setup the extension dir in the php.ini to C:\php\ext now save the php.ini and restart your computer. Before you restart the computer. Make sure PHP is using the correct php.ini by running the phpinfo function and looking for the [b]Configuration File (php.ini) Path[/b] and then looking at the path it states to the right of that. Is that correct path? If it is you can continue restarting your PC.

If its not the correct path then add the following line to Apache config file (httpd.conf):
PHPIniDir = "C:/php"
save the httpd.conf and continue on with restarting your PC.

Once your PC is rebooted PHP should now be able to load up the extensions.
Link to comment
Share on other sites

Seems to have worked..

I still get PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_sqlite.dll' - The specified module could not be found.\r\n in Unknown on line 0

I was wondering - I just formatted my drives and I'm reinstalling everything now. I didn't have to do ANY of this before. I just set the extension root, uncommented my extensions and it worked! Why do I have to do all of this now?

Thank you.
Link to comment
Share on other sites

[quote]I was wondering - I just formatted my drives and I'm reinstalling everything now. I didn't have to do ANY of this before. I just set the extension root, uncommented my extensions and it worked! Why do I have to do all of this now?[/quote]
You might of installed PHP differently before or PHP was already added to the PATH. There is no set way to install PHP. PHP can be installed in many ways. I prefer to add the php folder to the path variable. That is the easiest way. Alot of people do some funky crap. Like copy the extension to the system32 and windows folder which is completely unnecessary.

Now to enable the sqlite extension you need to enable the pdo extension aslwell as sqlite extension relies on this.
add the following to the extension stack in the php.ini - add it in before extension=php_sqlite.dll:
extension=php_pdo.dll

The sqlite extension should now load.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.