Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Oracle 11G integration with Xampp (PHP 7.

3)

To integrate XAMPP with PHP 7.3 or later with Oracle 11g using windows 10 (64 bit) you need to follow
steps.

Steps:
 Xampp (php 7.3.*): https://www.apachefriends.org/download.html

 Oracle 11g Client (32 bit): https://www.oracle.com/technetwork/database/enterprise-


edition/downloads/112010-win32soft-098987.html
 Oracle Instant Client 11 or 12.2 (32 bit) – Support Oracle 11g:
https://www.oracle.com/technetwork/database/database-technologies/instant-
client/downloads/index.html

 PHP OCI 2.2: https://pecl.php.net/package/oci8


How to do it:
 Install XAMPP, Open XAMPP Control Panel and Start the Apache
 Visit http://localhost/dashboard/phpinfo.php via your browser to see the thread safety mode of
the installed PHP.
 Now that we know Thread Safety is enabled we need to download OCI 2.2 with TS (Thread
Safety)
 Extract the file (php_oci8-2.2.0-7.3-ts-vc15-x86.zip) and you should find php_oci8_11g.dll move
it to the directory of xampp/php/ext

 Extract the Oracle Instant Client 12.2 (instantclient-basic-nt-12.2.0.1.0.zip) inside your Oracle
Client location
 Add the directory of instantClient_12_2 into environment variable under System Variable
 Edit php.ini from XAMPP Control Panel

 Add extension=php_oci8_11g.dll into php.ini


 Now restart the Apache and try to open phpinfo again, you should find OCI8 active there

You might also like