Connect WAMP server with Oracle Database

Note:

Path enviornment variable should not contain any other oracle instant client
or php path . Install VC++ 2010,2012 and 2013 before installing wamp.(on 64 bit OS)

 

1- install wamp server ( 64 bit edition ) on directory ( download latest version from website )

C:\wamp

2- from wamp server control pannel , goto

php -> php extension -> enable (select) php_oci8_11g

3- stop all services of wamp

4- put wamp offline

5- download and install oracle instant client ( must be 32 bit) these two files in our case
as our database is oracle 11g release 2 64 bit , so files are

—- instantclient-basic-win32-11.2.0.1.0

and

—– instantclient-odbc-win32-11.2.0.1.0

6- copy extracted folder of oracle instant client to this location

— C:\wamp\tools\oracle\instantclient_11_2

creating a folder or directory : oracle

so copy the folder : instantclient_11_2

to this location :

C:\wamp\tools\oracle

 

7- add enviornment variable Path , to this ( confirm the php file version with your installed wamp , php version)

C:\wamp\bin\php\php5.5.12\ext;C:\wamp\tools\oracle\instantclient_11_2

 

8- restart system

 

9- start wamp server

10- start all services

11- put online

 

12- go to

http://localhost/