php - how to install oracle instant client for xampp -
i have xampp windows 1.7.3 installed.
i'm using zend framework , need use pdo_oci8 extension. i've enabled extension - getting error can't find oci.dll file.
i've downloaded instantclient_11_2 zip file oracle. unzipped it. contains bunch of dll files.
how install on windows? need run cmd prompt or move specific folder under xampp?
below find instructions on how configure/install , enable oracle instant client for xampp v7, v5.5 , v5.6.
- download , install xampp
- modify php.ini in "c:\xampp\php"
- uncomment following line ";extension=php_oci8_12c.dll ; use oracle database 12c instant client"
- restart apache
- download 32 bit (php 32 bit no need 64) oracle instant client
- you need both instant client package - basic and instant client package - sdk
- unzip both in "c:\php-sdk\oracle\x86\instantclient_12_1" , "c:\php-sdk\oracle\x86\instantclient_12_1\sdk" respectivly
- add directory "c:\php-sdk\oracle\x86\instantclient_12_1" windows path veritable
- under system properties click environment variables
- edit path variable
- you need reboot windows
- (optional) if want specify oracle connections in the tnsnames.ora file:
- create file called "tnsnames.ora" in "c:\php-sdk\oracle\x86\instantclient_12_1"
- add oracle connections file described here: https://docs.oracle.com/cd/b28359_01/network.111/b28317/tnsnames.htm#netrf007
- create new environmental variable called "tns_admin" value of "c:\php-sdk\oracle\x86\instantclient_12_1"
- reboot windows
thats :)
instruction taken here: http://www.gi-architects.co.uk/2016/11/how-to-install-oracle-instant-client-v12-for-xampp-v7-v5-5-v5-6-windows/
Comments
Post a Comment