PHP5 Installing the Oci8 module

Source: Internet
Author: User

1. Copy the Php_oci8.dll to the System32 directory, and the test is invalid.


2. Add the PHP installation path to the environment variable path, using Phpinfo () to view, restart the computer will not become the new path settings, but unfortunately, after some toss, still invalid.


3.oarcle Client Lite issue, I replaced with the server -side installation using the same disk installed client, checked, invalid.


After querying a large amount of data, the following methods were obtained to solve the problem:


In order for PHP to be able to operate the Oracle database , it is not enough to simply open the php_oci8.dll extension of the php.ini file, because PHP's extension is also called Oracle's underlying API to work (included in the Oci.dll file). Therefore, you must also install the client library of Oracle.


to the URL

http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html Download Instantclient-basic-win32. Note that it is not instantclient-basiclite-win32 because Basiclite only supports English and Western European character sets. Instantclient-basic-win32 is currently version 11.1.0.7.0, which is the download file instantclient-basic-win32-11.1.0.7.0.zip.


Unzip the package, for example, into the D:\instantclient_11_1 folder, add this path to the system variable path, preferably added at the beginning of the path. Add a tns_admin variable inside the system variable, and the value is set to C:\instantclient_11_1. Finally, the php.ini inside the Extension=php_oci8.dll open, in order to support PDO, you can also open Extension=php_pdo_oci.dll and Extension=php_pdo_ Oci8.dll, remove the previous comment semicolon.


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.