Skip to content

Instantly share code, notes, and snippets.

@odan
Last active November 13, 2020 20:03
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save odan/4edb46a44721f2ef3bdefe2ea999e2e8 to your computer and use it in GitHub Desktop.
Save odan/4edb46a44721f2ef3bdefe2ea999e2e8 to your computer and use it in GitHub Desktop.
XAMPP - Oracle Driver Setup (v12)
@dahohawley
Copy link

thanks a lot. it works

@armyofda12mnkeys
Copy link

armyofda12mnkeys commented Oct 19, 2018

You say on a 64 bit computer, need to install both the 32 and 64 versions of instant-client...
If you unzip both the 32 and 64 bit instant-clients (so 2 different folders, one for 32, one for 64)...
and then try to copy the .dll's to the php/apache folders... I first copied the 32bit files, then tried the 64bit files...
but it asks to overwrite the oci.dll file (and a few other files)... Should I?
Maybe the 64bit client includes some needed 32bit files and i should only install that one and copy over those .dlls?
I mean like the 64bit client includes ociw32.dll alongside oci.dll

Right now Im running 64bit apache with 64bit php... so i copied the 64bit instant-client dll's over.
Also Im guessing this 'copy .dlls' step maybe doesn't need to happen if you just include the instant-client folder onto the windows PATH?
Going to try that later to see.

@adelcarpiofirteccom
Copy link

It is important to copy the *.dll files twice.

  1. To c:\xampp\php
  2. To c:\xampp\apache\bin

If it's still not working then try to install the Microsoft Visual C++ Redistributable for Visual Studio

PHP 5.6

  • The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

PHP 7.0.x, 7.1.x

  • The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

PHP 7.2.x

  • The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 x64 or x86 installed

@PhouvanhKCSV @tonlam

Thanks a lot!!!! Works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment