问题描述
通过XAMPP启动Apache服务器时,我面临一些问题。我已经安装了XAMPP版本5.6.3。当我从xampp控制面板启动Apache服务器时,会显示如下所示的错误消息:
单击确定按钮,将显示另一个对话框,如图所示:
事情是我想使用OCI而不是mysql。所以我已经注释掉了mysql扩展,并取消了 php.ini 文件中的OCI扩展名。
php_oci8_12c.dll 文件是唯一的文件在xampp中的php的extensions(ext)文件夹中可用。因此,我在php.ini中包含了一行,如上图所示。
从那时起,我收到这个错误。
我也安装了即时客户端12.1,但没有运气。我也尝试从instantclient_12_1复制OCI.dll并将其粘贴到c:/ xampp / php和c:/ xampp / apache / bin中。错误仍然存在。
需要帮助..
更新:环境变量的PATH中的其他oracle路径,只保留instantclient路径。现在我得到这个错误..
我解决了这个问题。问题是我试图在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
这篇关于如何在xampp 5.6.3中启用oci?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!