2 Replies Latest reply: Apr 8, 2010 7:08 AM by 763926 RSS

    Error with php_oci8.dll

    746241
      Hi everyone.

      I have the following error with the php_oci8.dll (apache error log):

      PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files (x86)\\PHP\\ext\\php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0

      There are the current configuration:

      php.ini:

      [PHP_OCI8]
      extension=php_oci8.dll

      Set:

      ALLUSERSPROFILE=C:\ProgramData
      APPDATA=C:\Users\saud.gonzalez\AppData\Roaming
      CLIENTNAME=BOGGONZAS01P1
      CommonProgramFiles=C:\Program Files\Common Files
      CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
      COMPUTERNAME=CT1APLMICURAR01
      ComSpec=C:\Windows\system32\cmd.exe
      DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
      FP_NO_HOST_CHECK=NO
      HOMEDRIVE=C:
      HOMEPATH=\Users\saud.gonzalez
      JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_02\bin
      LD_LIBRARY_PATH=C:\oracle\client\11.1.0\instantclient
      lib=C:\Program Files\SQLXML 4.0\bin\
      LOCALAPPDATA=C:\Users\saud.gonzalez\AppData\Local
      LOGONSERVER=\\CT1APMICSENDC1
      NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
      NUMBER_OF_PROCESSORS=4
      OS=Windows_NT
      Path=C:\oracle\client\11.1.0\instantclient;C:\Program Files (x86)\PHP\;C:\oracle
      \client\11.1.0\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Pr
      ogram Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft
      SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\
      binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files
      (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (
      x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;c:\Program Files\M
      icrosoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Java\jdk1.6.0_02\bin
      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
      PHPRC=C:\Program Files (x86)\PHP\
      PROCESSOR_ARCHITECTURE=AMD64
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=170a
      ProgramData=C:\ProgramData
      ProgramFiles=C:\Program Files
      ProgramFiles(x86)=C:\Program Files (x86)
      PROMPT=$P$G
      PUBLIC=C:\Users\Public
      SESSIONNAME=RDP-Tcp#0
      SystemDrive=C:
      SystemRoot=C:\Windows
      TEMP=C:\Users\SAUD~1.GON\AppData\Local\Temp\1
      TMP=C:\Users\SAUD~1.GON\AppData\Local\Temp\1
      USERDNSDOMAIN=DATACENTER.LOC
      USERDOMAIN=DATACENTER
      USERNAME=xxxx
      USERPROFILE=C:\Users\xxxx
      VISUALSVN_SERVER=C:\Program Files (x86)\VisualSVN Server\
      VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
      windir=C:\Windows


      The current config:

      IBM x3650
      Windows 2008 Server Standard
      Apache 2.2.4
      PHP 5.2.10
      Oracle Client


      Thanks in advance.
        • 1. Re: Error with php_oci8.dll
          dvohra21
          PHP Warning: PHP Startup: Unable to load dynamic library 'C:
          Program Files (x86)\\PHP\\ext
          php_oci8.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0

          is not an error message, but a warning.

          Does OCI 8 dll get listed with the following script?

          <?php
          phpinfo();
          ?>
          • 2. Re: Error with php_oci8.dll
            763926
            Hey,
            I'm French so i'll try to explain in my best english.

            I had the same problem. And i solved it.

            In fact i change the dll because the one which php install give us is not compatible.
            I choose the one which is provides with wampserver 2.0i.
            php_oci8_11g.dll
            with instantclient_11_1g

            Next i'll create environnement variables
            NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
            TNS_ADMIN=d:\oracle

            and in path variable add the way to the instantclient11_1
            D:\oracle\instantclient_11_1

            Then i restart the server and lucky all services start and run perfectly.