djoshi Posted September 14, 2005 Share Posted September 14, 2005 Hi all, I am a newbie. I have installed PHP 5.0.4 on my Win2k server with IIS. The test page is working fine. The phpinfo() also works ok. However, I need to work with Oracle10g as the backend for my PHP apps. I tried to set the extension_dir directive in the php.ini file to ".\ext\" and also removed the semicolons on the two oracle related extensions viz. php_oci8.dll and php_oracle.dll. After setting these things, when I restart the IIS and execute the phpinfo() page, I receive the following warning message box: --------------------------- Warning --------------------------- PHP Startup: Unable to load dynamic library '.\ext\php_oci8.dll' - The specified procedure could not be found. --------------------------- OK --------------------------- For your reference, I am including the various phpinfo() details here: Configuration File (php.ini) Path => F:\PHP504\php.ini extension_dir => .\ext\ Path => F:\PHP504;D:\WINNT\system32;D:\WINNT; SERVER_SOFTWARE => Microsoft-IIS/5.0 SystemRoot => D:\WINNT SCRIPT_FILENAME => d:\inetpub\wwwroot\TestSite\tut_phpinfo.php Server API => CGI/FastCGI PHP API => 20031224 PHP Extension => 20041030 Zend Extension => 220040412 Also, in the Windows registry, I have set the following: [HKEY_LOCAL_MACHINE\SOFTWARE\PHP]:IniFilePath=F:\PHP504 Under this F:\PHP504 (which is the root PHP folder), I have the following folders: .\dev .\ext .\ErrorLogs (I created this to receive error logs) .\extras (this has three more folders underneath) .\Manual .\PEAR (this has one more folder underneath) I hope the above information is sufficient. Can someone please help me resolve this issue? I believe that until this is done, I will not be able to connect to the backend Oracle Database from my PHP scripts. Thanks for your time and advice. Regards. Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/ Share on other sites More sharing options...
sikofitt Posted September 27, 2005 Share Posted September 27, 2005 try adding the drive to \ext\ Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-8535 Share on other sites More sharing options...
neylitalo Posted September 27, 2005 Share Posted September 27, 2005 you need to use absolute paths. (I think that's what sikofitt's trying to say) ie: c:\php\ext Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-8542 Share on other sites More sharing options...
djoshi Posted September 28, 2005 Author Share Posted September 28, 2005 Hello again! Thanks for your reply. I have tried setting the extension_dir = "F:\PHP504\ext\" but it has not made any difference. The error continues in the same way. Please suggest a different remedy if one exists. Thanks again, and regards, DJoshi Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-8552 Share on other sites More sharing options...
tkv Posted September 28, 2005 Share Posted September 28, 2005 You have 2 options for it: 1. disable it open php.ini search php_oci8.dll put ; in the begging line 2. enable it search on the web the driver of it (oci8.dll) copy into %root%/system32 (of windows) you also have create the folder ext in the php directory within php_oci8.dll file good luck Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-8556 Share on other sites More sharing options...
permutations Posted October 19, 2005 Share Posted October 19, 2005 Hello again! Thanks for your reply. I have tried setting the extension_dir = "F:\PHP504\ext\" but it has not made any difference. The error continues in the same way. Please suggest a different remedy if one exists. Thanks again, and regards, DJoshi 300277[/snapback] Did you find the solution to this? It's driving me crazy, too. Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-8964 Share on other sites More sharing options...
turbosport Posted January 14, 2006 Share Posted January 14, 2006 [!--quoteo(post=308213:date=Oct 19 2005, 01:48 PM:name=permutations)--][div class=\'quotetop\']QUOTE(permutations @ Oct 19 2005, 01:48 PM) 308213[/snapback][/div][div class=\'quotemain\'][!--quotec--] Did you find the solution to this? It's driving me crazy, too. Make sure the IUSR_machinename account has read and execute rights to the folders and files Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-10891 Share on other sites More sharing options...
purplegecko Posted February 15, 2006 Share Posted February 15, 2006 I had this problem and it was annoying me for ages!! I found that the msvcr71.dll was missing. This is the Microsoft C++ Rutime libraries, which should be distributed with any package that needs them. It is not installed by Windows. You shouldn't put this file into the system directory (apparently) so just drop it into your PHP folder and all will be good! Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-11758 Share on other sites More sharing options...
snuzzolillo Posted September 4, 2006 Share Posted September 4, 2006 purplegecko: Your reply is very, very important. I had the same problem in one server of two, and comparing one whith other aparrently all was ok. except that detail. Your reply was very helpful.... Quote Link to comment https://forums.phpfreaks.com/topic/2502-extension_dir-not-setting/#findComment-86019 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.