且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在xampp 5.6.3中启用oci?

更新时间:2023-02-24 13:32:15

我解决了这个问题。问题是我试图在32位PHP中使用64位DLL(php_oci8_12g.dll)。我下载了一个32位InstantClient,它现在可以工作! : - )



instantclient-basic-nt-12.1.0.2.0.zip


I am facing some issue while starting Apache server via XAMPP. I have installed XAMPP Version 5.6.3.

When I start the Apache server from xampp control panel, an error message is displayed as shown below:

On clicking 'OK' button, another dialog box is displayed as shown:

The thing is I wanted to use OCI instead of mysql. so I have commented out the mysql extensions and uncommented the OCI extension in php.ini file.

The php_oci8_12c.dll file is the only file available in the extensions (ext) folder of php in xampp. Hence I included the line in the php.ini as shown in the above image.

Since then I am getting this error.

I have installed instant client 12.1 as well but no luck. I also tried copying the OCI.dll from instantclient_12_1 and pasting it in c:/xampp/php and c:/xampp/apache/bin. The error still persists.

Need help..

UPDATE: I removed other oracle paths in PATH of environment variables, keeping only the instantclient path. Now I am getting this error..

I solved the issue. The problem was that I was trying to use a 64 bit DLL(php_oci8_12g.dll) in a 32 bit PHP. I downloaded a 32 bit instantClient and it works now! :-)

instantclient-basic-nt-12.1.0.2.0.zip