I have Windows XP and recently I installed wamp (apache-mysql-php) 32-bit. I tested the installation (connect to mysql database with php and apache) and everything was working fine.
Now i need to connect to an Oracle database so I tried to enable some extensions related to Oracle and oci8.
And I did:
1) I opened php.ini file and I removed the semicolons before the following lines:
before:
;extension=php_oci8.dll
;extension=php_oci8_11g.dll
after:
extension=php_oci8.dll
extension=php_oci8_11g.dll
2) I restarted apache and all Services and i get a
3) In php_error.log file I get:
**PHP Warning: PHP Startup: in Unknown on line 0**
So, i thought that it would be a good idea to check where my extension php folder is and if those dll files are there.
In php.ini my extension folder is located at:
extension_dir = "C:/wamp/bin/php/php5.4.16/ext/"
The folder exists and both of these libraries (php_oci8.dll php_oci8_11g.dll) are inside that folder.
4) I added in my 'Path' system variable in Windows the following:
C:\wamp\bin\php\php5.4.16\ext;
5) I copied both of these dll files in Apache's folder but again it didn't work!
C:\wamp\bin\apache\Apache2.4.4\bin
6) Also, I checked the phpinfo page and the only entry I get for "oci8" is the following:
Configure Command
"--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared"
Hm...the following folders do not exist in my system:
C:\php-sdk\oracle\instantclient10\sdk
C:\php-sdk\oracle\instantclient11\sdk
So, what am I supposed to do next in order to correctly enable the oci8 extensions?
thanks
[SOLVED]
I downloaded the Instant Client Package - Basic (version 10.2.0.5) and I extracted it.
Afterwards I copied all the files of that package in the following folders:
C:/wamp/bin/php/php5.4.16/ext/
C:/wamp/bin/apache/Apache2.4.4/bin
It worked for me in this way. After that the oci8 module was loaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With