PHP5 on IIS 5.1 connecting to Oracle 8

Discussion in 'Software' started by Milty_Mada, Jun 12, 2006.

  1. Milty_Mada

    Milty_Mada Private E-2

    Good Day,

    I have a Win XP Pro machine with IIS 5.1 installed. I've installed PHP5, and confirmed that it is working with php_info(). Now, I would like to configure PHP so that I can connect to our Oracle 8 database, and am experiencing difficulties. In php.ini, I've uncommented the lines extension=php_oci8.dll and extension=php_oracle.dll, and ensured that extension_dir is pointing to the correct directory, c:\php\extensions. However, I still get the error:

    PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\extensions\php_oci8.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\extensions\php_oracle.dll' - The specified module could not be found. in Unknown on line 0

    when the page loads. Can anyone show me where I may have went wrong? I've made sure that IIS has permissions on the directory, and the oracle client seems to be installed correctly. TIA to anyone who can help!
     
  2. Mada_Milty

    Mada_Milty MajorGeek

    Update: I now believe that I had misconfigured my extension_dir command in PHP.INI

    Since this problem, I've uninstalled PHP and IIS, and reinstalled. Now, I am again experiencing an issue with php_oci8.dll. The exact error message is:

    PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0

    Now, I know that this isn't a problem with my PHP.ini file, because php_oracle.dll loads fine. So, I used Dependency Walker to profile the library, and I found that it called ANOTHER dll, OCI.DLL, and that THIS dll was having trouble with one of its functions. Maybe this is a shot in the dark, but can anyone help with this? Currently, I'm looking at search results for the function name at Microsoft...
     
  3. Mada_Milty

    Mada_Milty MajorGeek

    WOOO HOOOO!!!!! I DID IT! I figured this one out! As I suspected, the OCI.dll file was to blame. I had been misinformed that the file version I had was acceptable. I had uninstalled the Oracle client, and after suffering the problem I initially started this thread for (could not load EITHER extension), I re-installed IIS and PHP (again) to find that the problem was not corrected. I went and got the latest version of OCI.dll and replaced it, and after weeks of fighting, everything's beautiful now!

    Please forgive my gloating!
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds