Windows7 PHP installation OCI extension

Source: Internet
Author: User
Tags php download
This article introduces the content is about Windows7 PHP installation OCI extension, has a certain reference value, now share to everyone, the need for friends can refer to

1, the first step to download the OCI extension

First go to download Oci8 expansion pack, https://pecl.php.net/package/oci8 go to download



On the left to select the version you need to download, window needs to download the DLL version, click the DLL into the download selection,oci8 extension needs to be consistent with the number of PHP system , download need to choose their own PHP version or the following OCI8 expansion pack Compressed packages are thread-safe and non-thread safe, PHP is thread-safe by default, so download thread-safe versions

I use the 32-bit PHP download DLL list for 5.6 Thread Safe (TS) X86 version


After the download completes the decompression, the following three files are placed in the PHP ext extension directory, for example: E:/php/ext;

At the same time, the three directories are placed under the C-disk window/system32;

2, the second step to download Oracle timely client
Download Address: http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092699-zhs.html

Timely client needs the same number of digits as the computer

Note: A lot of information requires the installation of Oracle client, in fact, if you just install the oci8 extension under PHP, you can not install the Oracle clients instant Client
If you need to connect to the Oracle client, then you have to download two compressed packages, after the download is completed, two compressed packets together,
If you just need to open the PHP oci8 extension, you just need to unzip the folder into the Oci.dll
Put it in your C drive under the Window/system32, if you are a 64-bit system, you need to copy the file to the C-drive window/syswow64 below

Oracle clients Instant client Windows only supports 32-bit and does not support 64-bit

I use the windows7 system in the download instant client download used for the 32-bit Oci.dll




3, the third step to modify the php.ini configuration file, and restart Apache

Need to open php.ini file to php directory, search Oci8


PHP configuration file will have a default Php_oci8_12c.dll this configuration, this extension is a bit high, with the download of the Oci.dll file version may appear error
So you can add your own Extension=php_oci8.dll Extension=php_oci8_11c.dll just open one of the extensions, or all two open

Then restart Apache print phpinfo (), the following image content appears, the expansion opened successfully;


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.