English 中文(简体)
how to install oracle instant client for xampp
原标题:
  • 时间:2010-12-01 11:24:03
  •  标签:
  • php
  • oci8

I have XAMPP for Windows 1.7.3 installed.

I m using Zend Framework and need to use the pdo_oci8 extension. I ve enabled the extension - but now getting the error that it can t find the oci.dll file.

I ve downloaded the instantclient_11_2 zip file from oracle. Unzipped it. It contains a bunch of dll files.

How do I install this on windows? Do I need to run a cmd prompt or move it to a specific folder under xampp?

最佳回答

I unzipped the file into a directory.

That directory I placed in c:xampp, e.g. c:xamppintanstclient_11_2

Then I added that to my windows path variable.

Quite simple really in the end.

问题回答

Below you will find the instructions on how to configure/install and enable the Oracle Instant Client for XAMPP v7, v5.5 and v5.6.

  1. Download and install XAMPP
  2. Modify the php.ini in "C:xamppphp"
    • Uncomment the following line ";extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client"
    • Restart Apache
  3. Download the 32 bit (PHP is 32 bit so no need to 64) Oracle Instant Client
    • You need both Instant Client Package - Basic and Instant Client Package - SDK
    • Unzip both in "C:php-sdkoraclex86instantclient_12_1" and "c:php-sdkoraclex86instantclient_12_1sdk" respectivly
  4. Add the directory "C:php-sdkoraclex86instantclient_12_1" to the windows path veritable
    • Under system Properties click Environment Variables
    • Edit the Path variable
    • You need to reboot windows
  5. (Optional) If you want to specify the oracle connections in the tnsnames.ora file:

Thats it :)

instruction where taken from here: http://www.gi-architects.co.uk/2016/11/how-to-install-oracle-instant-client-v12-for-xampp-v7-v5-5-v5-6-windows/

Google gave me this topic when I searched the problem, but I have not found solution here.

But I found here: http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html

My problem was that I downloaded the 64 version of Oracle instant client, and php seems to be working only with the 32-bit.

My issue was solved when I added path variable like "c:instantclient_12_2" .





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签