Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PHP provides Oracle support and adds oci8 module

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Environment: CentOS7 x86o64

PHP 7.1.2 (installation path: / usr/local/php7.1.2)

Oracle 11G R2

1. Download the Oracle client: (http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)

Instantclient-basic-linux.x64-11.2.0.4.0.zip

Instantclient-sdk-linux.x64-11.2.0.4.0.zip

two。 Download the php oracle module

Wget http://pecl.php.net/get/oci8-2.1.4.tgz

3. Install dependency packages

Yum-y install autoconf automake gcc libaio-devel unzip

4. Installation

Cd ~ unzip instantclient-basic-linux.x64-11.2.0.4.0.zipunzip instantclient-sdk-linux.x64-11.2.0.4.0.zipcp instantclient_11_2/libclntsh.so.11.1 instantclient_11_2/libclntsh.sotar zxf oci8-2.1.4.tgzcd oci8-2.1.4/usr/local/php7.1.2/bin/phpize./configure-with-php-config=/usr/local/php7.1.2/bin/php-config-with-oci8=instantclient / instantclient_11_2 make & & make installecho 'extension = "oci8.so" > / usr/local/php7.1.2/etc/php.ini

5. test

/ usr/local/php7.1.2/bin/php-m | grep ocioci8

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report