Hitman123 Posted December 29, 2006 Share Posted December 29, 2006 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\extConfigs I've tried:./ext.\ext./ext/.\ext\C:\php\extC:/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 0That 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.! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 29, 2006 Share Posted December 29, 2006 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.dllCopy 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. Quote Link to comment Share on other sites More sharing options...
Hitman123 Posted December 30, 2006 Author Share Posted December 30, 2006 nothing worked. still wont load the modules...every time i put a \ it logs it as \\, and when i use / it never finds it.. Quote Link to comment Share on other sites More sharing options...
Hitman123 Posted December 30, 2006 Author Share Posted December 30, 2006 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.jpghttp://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot005.jpghttp://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot004.jpghttp://i54.photobucket.com/albums/g92/hitmanpl46/Screenshot003.jpgPlease help - and thanks. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 30, 2006 Share Posted December 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
Hitman123 Posted December 30, 2006 Author Share Posted December 30, 2006 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 0I 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. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 30, 2006 Share Posted December 30, 2006 [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.dllThe sqlite extension should now load. Quote Link to comment Share on other sites More sharing options...
Hitman123 Posted December 30, 2006 Author Share Posted December 30, 2006 Hmm. well I dont think I really need it but im really interested in why last time i installed i didnt have to do any of this and all extensions worked. Thanks a lot though - all the extensions now work and my site works. thanks.! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.